pyrocko.io.resp¶
Reader for RESP files.
Functions
|
Load RESP information from given source(s) |
|
Read RESP information from directory of RESP files. |
|
Read RESP information from open file handle. |
|
Read RESP information from named file. |
|
Read RESP information from files matching a glob pattern. |
|
Create stationxml from pyrocko station list and RESP information. |
Classes
|
Response information + channel codes and time span. |
- class ChannelResponse(**kwargs)[source]¶
Bases:
ObjectResponse information + channel codes and time span.
- ♦ codes¶
tupleof 4strobjects, default:('', '', '', '')
- ♦ start_date¶
pyrocko.util.get_time_float (
pyrocko.guts.Timestamp)
- ♦ end_date¶
pyrocko.util.get_time_float (
pyrocko.guts.Timestamp)
- ♦ response¶
- iload_filename(filename, **kwargs)¶
Read RESP information from named file.
- iload_dirname(dirname, **kwargs)¶
Read RESP information from directory of RESP files.
- iload_glob(pattern, **kwargs)¶
Read RESP information from files matching a glob pattern.
- iload(source, **kwargs)¶
Load RESP information from given source(s)
The
sourcecan be specified as the name of a RESP file, the name of a directory containing RESP files, a glob pattern of RESP files, an open filehandle or an iterator yielding any of the forementioned sources.This function behaves as a generator yielding
ChannelResponseobjects.
- make_stationxml(pyrocko_stations, channel_responses)[source]¶
Create stationxml from pyrocko station list and RESP information.
- Parameters:
pyrocko_stations (
listofpyrocko.model.station.Station) – Station information.channel_responses – iterable yielding
ChannelResponseobjects
- Returns:
pyrocko.io.stationxml.FDSNStationXMLobject with merged information
If no station information is available for any response information, it is skipped and a warning is emitted.