@@ -112,31 +112,18 @@ def get_event_arguments(argv=None):
112
112
description = "Settings associated with which "
113
113
"datacenter to log into." )
114
114
ServerGroup .add_argument (
115
- "--server-cat " ,
115
+ "--server" ,
116
116
action = "store" ,
117
117
type = str ,
118
- dest = "server_cat " ,
118
+ dest = "server " ,
119
119
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']" )
140
127
ServerGroup .add_argument (
141
128
"--user-auth" ,
142
129
action = "store" ,
@@ -393,17 +380,16 @@ def main(args=None):
393
380
print ('\n Path to ' + str (eventpath )+ ' doesn`t exist - creating it' )
394
381
eventpath .mkdir (parents = True )
395
382
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 ,
403
386
user = args .userauth [0 ],
404
387
password = args .userauth [1 ],
405
388
eida_token = args .tokenfile )
406
389
390
+ # Establish client for events - Default is 'IRIS''
391
+ event_client = Client ()
392
+
407
393
# Get catalogue search start time
408
394
if args .startT is None :
409
395
tstart = sta .startdate
@@ -460,7 +446,7 @@ def main(args=None):
460
446
print ("| ... |" )
461
447
462
448
# Get catalogue using deployment start and end
463
- cat = client .get_events (
449
+ cat = event_client .get_events (
464
450
starttime = tstart , endtime = tend ,
465
451
minmagnitude = args .minmag , maxmagnitude = args .maxmag )
466
452
0 commit comments