Skip to content

Commit b06a20b

Browse files
committed
reverted to single server for waveforms - default for catalogue
1 parent 18a4915 commit b06a20b

File tree

2 files changed

+20
-45
lines changed

2 files changed

+20
-45
lines changed

Diff for: docs/atacr.rst

+4-15
Original file line numberDiff line numberDiff line change
@@ -594,21 +594,10 @@ Usage
594594
Server Settings:
595595
Settings associated with which datacenter to log into.
596596
597-
--server-cat SERVER_CAT
598-
Catalogue server setting: Key string for recognized
599-
server that provide `available_event_catalogs` service
600-
(one of 'AUSPASS', 'BGR', 'EARTHSCOPE', 'EIDA',
601-
'EMSC', 'ETH', 'GEOFON', 'GEONET', 'GFZ', 'ICGC',
602-
'IESDMC', 'INGV', 'IPGP', 'IRIS', 'IRISPH5', 'ISC',
603-
'KNMI', 'KOERI', 'LMU', 'NCEDC', 'NIEP', 'NOA',
604-
'NRCAN', 'ODC', 'ORFEUS', 'RASPISHAKE', 'RESIF',
605-
'RESIFPH5', 'SCEDC', 'TEXNET', 'UIB-NORSAR', 'USGS',
606-
'USP'). [Default 'IRIS']
607-
--server-wf SERVER_WF
608-
Waveform server setting: Base URL of FDSN web service
609-
compatible server (e.g. “http://service.iris.edu”) or
610-
key string for recognized server (one of 'AUSPASS',
611-
'BGR', 'EARTHSCOPE', 'EIDA', 'EMSC', 'ETH', 'GEOFON',
597+
--server SERVER Base URL of FDSN web service compatible server (e.g.
598+
“http://service.iris.edu”) or key string for
599+
recognized server (one of 'AUSPASS', 'BGR',
600+
'EARTHSCOPE', 'EIDA', 'EMSC', 'ETH', 'GEOFON',
612601
'GEONET', 'GFZ', 'ICGC', 'IESDMC', 'INGV', 'IPGP',
613602
'IRIS', 'IRISPH5', 'ISC', 'KNMI', 'KOERI', 'LMU',
614603
'NCEDC', 'NIEP', 'NOA', 'NRCAN', 'ODC', 'ORFEUS',

Diff for: obstools/scripts/atacr_download_event.py

+16-30
Original file line numberDiff line numberDiff line change
@@ -112,31 +112,18 @@ def get_event_arguments(argv=None):
112112
description="Settings associated with which "
113113
"datacenter to log into.")
114114
ServerGroup.add_argument(
115-
"--server-cat",
115+
"--server",
116116
action="store",
117117
type=str,
118-
dest="server_cat",
118+
dest="server",
119119
default="IRIS",
120-
help="Catalogue server setting: Key string for recognized server that "
121-
"provide `available_event_catalogs` service "
122-
"(one of 'AUSPASS', 'BGR', 'EARTHSCOPE', 'EIDA', 'EMSC', 'ETH', "
123-
"'GEOFON', 'GEONET', 'GFZ', 'ICGC', 'IESDMC', 'INGV', 'IPGP', 'IRIS', "
124-
"'IRISPH5', 'ISC', 'KNMI', 'KOERI', 'LMU', 'NCEDC', 'NIEP', 'NOA', "
125-
"'NRCAN', 'ODC', 'ORFEUS', 'RASPISHAKE', 'RESIF', 'RESIFPH5', 'SCEDC', "
126-
"'TEXNET', 'UIB-NORSAR', 'USGS', 'USP'). [Default 'IRIS']")
127-
ServerGroup.add_argument(
128-
"--server-wf",
129-
action="store",
130-
type=str,
131-
dest="server_wf",
132-
default="IRIS",
133-
help="Waveform server setting: Base URL of FDSN web service compatible "
134-
"server (e.g. “http://service.iris.edu”) or key string for recognized "
135-
"server (one of 'AUSPASS', 'BGR', 'EARTHSCOPE', 'EIDA', 'EMSC', 'ETH', "
136-
"'GEOFON', 'GEONET', 'GFZ', 'ICGC', 'IESDMC', 'INGV', 'IPGP', 'IRIS', "
137-
"'IRISPH5', 'ISC', 'KNMI', 'KOERI', 'LMU', 'NCEDC', 'NIEP', 'NOA', "
138-
"'NRCAN', 'ODC', 'ORFEUS', 'RASPISHAKE', 'RESIF', 'RESIFPH5', 'SCEDC', "
139-
"'TEXNET', 'UIB-NORSAR', 'USGS', 'USP'). [Default 'IRIS']")
120+
help="Base URL of FDSN web service compatible "
121+
"server (e.g. “http://service.iris.edu”) or key string for recognized "
122+
"server (one of 'AUSPASS', 'BGR', 'EARTHSCOPE', 'EIDA', 'EMSC', 'ETH', "
123+
"'GEOFON', 'GEONET', 'GFZ', 'ICGC', 'IESDMC', 'INGV', 'IPGP', 'IRIS', "
124+
"'IRISPH5', 'ISC', 'KNMI', 'KOERI', 'LMU', 'NCEDC', 'NIEP', 'NOA', "
125+
"'NRCAN', 'ODC', 'ORFEUS', 'RASPISHAKE', 'RESIF', 'RESIFPH5', 'SCEDC', "
126+
"'TEXNET', 'UIB-NORSAR', 'USGS', 'USP'). [Default 'IRIS']")
140127
ServerGroup.add_argument(
141128
"--user-auth",
142129
action="store",
@@ -393,17 +380,16 @@ def main(args=None):
393380
print('\nPath to '+str(eventpath)+' doesn`t exist - creating it')
394381
eventpath.mkdir(parents=True)
395382

396-
# Establish client for catalogue
397-
cat_client = Client(
398-
base_url=args.server_cat)
399-
400-
# Establish client for waveforms
401-
wf_client = Client(
402-
base_url=args.server_wf,
383+
# Establish client
384+
client = Client(
385+
base_url=args.server,
403386
user=args.userauth[0],
404387
password=args.userauth[1],
405388
eida_token=args.tokenfile)
406389

390+
# Establish client for events - Default is 'IRIS''
391+
event_client = Client()
392+
407393
# Get catalogue search start time
408394
if args.startT is None:
409395
tstart = sta.startdate
@@ -460,7 +446,7 @@ def main(args=None):
460446
print("| ... |")
461447

462448
# Get catalogue using deployment start and end
463-
cat = client.get_events(
449+
cat = event_client.get_events(
464450
starttime=tstart, endtime=tend,
465451
minmagnitude=args.minmag, maxmagnitude=args.maxmag)
466452

0 commit comments

Comments
 (0)