waveform_collection.local.local module¶
-
waveform_collection.local.local.
read_local
(data_dir, coord_file, network, station, location, channel, starttime, endtime, merge=True)[source]¶ Read in waveforms from “local” 1-hour, IRIS-compliant miniSEED files, and output a
Stream
with station/element coordinates attached.NOTE 1
The expected naming convention for the miniSEED files is
<network>.<station>.<location>.<channel>.<year>.<julian_day>.<hour>
NOTE 2
This function assumes that the response has been removed from the waveforms in the input miniSEED files.
Parameters: - data_dir (str) – Directory containing miniSEED files
- coord_file (str) – JSON file containing coordinates for local stations (full path required)
- network (str) – SEED network code [wildcards (
*
,?
) accepted] - station (str) – SEED station code [wildcards (
*
,?
) accepted] - location (str) – SEED location code [wildcards (
*
,?
) accepted] - channel (str) – SEED channel code [wildcards (
*
,?
) accepted] - starttime (
UTCDateTime
) – Start time for data request - endtime (
UTCDateTime
) – End time for data request - merge (bool) – Toggle merging of
Trace
objects with identical IDs
Returns: Stream
containing gathered waveforms