access.seismic.WaveformBaseclass
Base class for waveform clients.
Usage
access.seismic.WaveformBaseclass()Clients implement get_raw. Sensitivity removal, gap filling and trimming happen in process, so that SeismicData can apply them to raw data read from its cache as well.
Methods
| Name | Description |
|---|---|
| get_raw() | Get waveform data as delivered by the source. |
| get_waveforms() | Get waveform data with the instrument sensitivity removed. |
| process() | Remove the instrument sensitivity, fill gaps and trim to the |
get_raw()
Get waveform data as delivered by the source.
Usage
get_raw(net, site, loc, comp, start, end)Parameters
net: str-
Network, station, location and channel codes.
site: str-
Network, station, location and channel codes.
loc: str-
Network, station, location and channel codes.
comp: str-
Network, station, location and channel codes.
start: UTCDateTime-
Start and end of the requested time span.
end: UTCDateTime- Start and end of the requested time span.
Returns
Stream- Unmerged waveform data in counts.
get_waveforms()
Get waveform data with the instrument sensitivity removed.
Usage
get_waveforms(net, site, loc, comp, start, end)Parameters
net: str-
Network, station, location and channel codes.
site: str-
Network, station, location and channel codes.
loc: str-
Network, station, location and channel codes.
comp: str-
Network, station, location and channel codes.
start: UTCDateTime-
Start and end of the requested time span.
end: UTCDateTime- Start and end of the requested time span.
Returns
Trace- Waveform data with the instrument sensitivity removed.
process()
Remove the instrument sensitivity, fill gaps and trim to the
Usage
process(st, net, site, loc, comp, start, end)requested time span.
Parameters
st: Stream-
Raw waveform data as returned by get_raw.
net: str-
Network, station, location and channel codes.
site: str-
Network, station, location and channel codes.
loc: str-
Network, station, location and channel codes.
comp: str-
Network, station, location and channel codes.
start: UTCDateTime-
Start and end of the requested time span.
end: UTCDateTime- Start and end of the requested time span.
Returns
Trace- Waveform data with the instrument sensitivity removed.