@@ -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 ('\n Path 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