from obspy.clients.fdsn import Client import numpy as np import obspy as op from obspy.core import UTCDateTime, read, Stream import os from obspy.io.sac.sactrace import SACTrace print("# np_version = ",np.__version__) print("# op version = ",op.__version__) # specify the event id eventid_ncedc = EVENTID #eventid_ncedc = 73160480 # example is M2.5 event https://earthquake.usgs.gov/earthquakes/eventpage/nc73160480/executive #eventid_ncedc = 71093184 #eventid_ncedc = 21377014 # select request_server request_server = REQUEST_SERVER # 1 is ncedc 2 is iris 3 is scedc #request_server = 1 # Hayward fault project -> 1 if request_server == 1: net_listOUT = "BK,NC,PB" com_listOUT = "HHZ,EHZ,DP1,EP1" server_nameOUT = "ncedc" clientOUT = Client("NCEDC") if request_server == 2: net_listOUT = "PB,AZ" com_listOUT = "EHZ,HHZ" server_nameOUT = "iris" clientOUT = Client("IRIS") if request_server == 3: net_listOUT = "CI,AZ" com_listOUT = "EHZ,HHZ" server_nameOUT = "iris" clientOUT = Client("SCEDC") #distdeg_from_eq = 0.4 #distdeg_from_eq = 0.2 # search distance from event in degrees distdeg_from_eq = 0.35 # need for catalog #client_scedc = Client("SCEDC") # extracting event info. from datacenter catalog client_ncedc = Client("NCEDC",timeout=600) print(client_ncedc) # band pass when we remove instrument response # f1