seisscan.read_fdsn
- seisscan.read_fdsn(starttime, endtime, network, station, location, channel, provider='IRIS', attach_coordinates=True, attach_response=True)
Download ObsPy.Stream with metada added from FDSN web service of IRIS.
Connects to FDSN web service of IRIS to retrive ObsPy Stream with station metadata added. Each Trace of the Stream object contains station coordinates and response information. It utilizes obspy.clients.fdsn.Client service to download waveform and inventory. For more information on the service, please visit “https://docs.obspy.org/packages/autogen/obspy.clients.fdsn.client.Client.html#obspy.clients.fdsn.client.Client”.
Parameters
- starttime: obspy.UTCDateTime
Start time for waveform and metadata.
- endtime: obspy.UTCDateTime
End time for waveform and metadata.
- network: str
One or more network codes seperated by comma. It supports wildcards.
- station: str
One or more station codes seperated by comma. It supports wildcards.
- location: str
One or more location codes seperated by comma. It supports wildcards.
- channel: str
One or more channel codes seperated by comma. It supports wildcards.
- provider: str
A key string for recognized FDSN server. It is one of ‘IRIS’, ‘IRISPH5’, ‘GEOFON’ etc. Please see the above link for all the providers. Default is ‘IRIS’.
- attach_coordinates: bool
If True, station coordinates are attached in each trace stats. Default is True.
- attach_response: bool)
If True, station response information is attached to each trace stats. Default is True.
Returns
- st: Obspy.Stream
Waveform stream.
Examples
>>> from obspy import UTCDateTime >>> import seisscan as ss >>> >>> starttime = UTCDateTime("2010-02-27T06:45:00.000") >>> endtime = starttime + 60 >>> >>> st = ss.read_fdsn(starttime, endtime, "IU", "ANMO", "00", "LHZ", provider="IRIS")