Browse Source

scedc fix

dataselect_scedc_hotfix
braunfuss 9 months ago
parent
commit
52bd3a8e75
  1. 7
      src/client/fdsn.py

7
src/client/fdsn.py

@ -308,20 +308,21 @@ def dataselect(url=g_url, site=g_default_site, majorversion=1, selection=None,
if selection:
lst = []
if site is not "scedc":
if site == "scedc":
print("site", site)
pass
else:
if 'minimumlength' not in params:
params['minimumlength'] = 0.0
if 'longestonly' not in params:
params['longestonly'] = 'FALSE'
for k, v in params.items():
lst.append('%s=%s' % (k, v))
for (network, station, location, channel, tmin, tmax) in selection:
if location == '':
location = '--'
lst.append(' '.join((network, station, location, channel,
sdatetime(tmin), sdatetime(tmax))))

Loading…
Cancel
Save