pytomoatt.src_rec.SrcRec.select_by_distance¶
- SrcRec.select_by_distance(dist_min_max, recalc_dist=False, distance='dist_deg', **kwargs)[source]¶
Select source–receiver pairs in a range of distance.
Note
Absolute arrivals are retained when their epicentral distance is in range. Common-source and common-receiver records are retained only when both of their source–receiver distances are in range.
- Parameters:
dist_min_max (list or tuple) – Distance limits,
[dist_min, dist_max]. Their unit followsdistance.recalc_dist (bool) – Recalculate distance fields even when the selected field exists, defaults to
False.distance (str) – Distance field used for selection. Choose
"dist_deg"for degrees or"dist_km"for km, defaults to"dist_deg".