Commit 60ba210d authored by Sebastian Heimann's avatar Sebastian Heimann
Browse files

allow selection of receivers by depth range

parent e26191bd
......@@ -834,6 +834,8 @@ class TargetConfig(Object):
group = gf.StringID.T(optional=True)
distance_min = Float.T(optional=True)
distance_max = Float.T(optional=True)
depth_min = Float.T(optional=True)
depth_max = Float.T(optional=True)
limit = Int.T(optional=True)
channels = List.T(String.T())
inner_misfit_config = InnerMisfitConfig.T()
......@@ -869,6 +871,14 @@ class TargetConfig(Object):
target.distance_to(origin) > self.distance_max:
continue
if self.depth_min is not None and \
target.depth < self.depth_min:
continue
if self.depth_max is not None and \
target.depth > self.depth_max:
continue
azi, _ = target.azibazi_to(origin)
if cha == 'R':
target.azimuth = azi - 180.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment