Browse Source

scedc fix

dataselect_scedc_hotfix
braunfuss 2 months ago
parent
commit
52bd3a8e75
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/client/fdsn.py

+ 4
- 3
src/client/fdsn.py View File

@@ -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