You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
often there are multiple "duplicate" channels per station recording at different sample rates (see #69 for background).
for events the user is essentially ALWAYS going to want the highest sample rate data possible as this allows the most precision for their analysis and the size of the data is fairly small. I have implemented this change in collect_requests_event
def collect_requests_event(eq,inv,min_dist_deg=30,max_dist_deg=90,
before_p_sec=20,after_p_sec=160,
model=None,settings=None,highest_sr_only=True):
"""
Collect requests for event eq for stations in inv
"""
settings, db_manager = setup_paths(settings)
origin = eq.origins[0] # default to the primary I suppose
ot = origin.time
if highest_sr_only:
sub_inv = select_highest_samplerate(inv,time=ot,minSR=5) #filter by time and also select highest samplerate
else:
sub_inv = inv.select(time = ot) #only filter by time
This would ensure that we're only downloading the best version of the data. However as alluded in issue #69, some servers don't have their metadata set correctly. We need to have a toggle for "download highest samplerate only" that effectively sets the highest_sr_only kwarg in collect_requests_event and it should be ON by default, which also just alerts users what's happening.
Fortunately these kinds of errors are fairly few, but notably all of the AU data at IRIS are affected
The text was updated successfully, but these errors were encountered:
often there are multiple "duplicate" channels per station recording at different sample rates (see #69 for background).
for
events
the user is essentially ALWAYS going to want the highest sample rate data possible as this allows the most precision for their analysis and the size of the data is fairly small. I have implemented this change incollect_requests_event
This would ensure that we're only downloading the best version of the data. However as alluded in issue #69, some servers don't have their metadata set correctly. We need to have a toggle for "download highest samplerate only" that effectively sets the
highest_sr_only
kwarg incollect_requests_event
and it should be ON by default, which also just alerts users what's happening.Fortunately these kinds of errors are fairly few, but notably all of the AU data at IRIS are affected
The text was updated successfully, but these errors were encountered: