pyrocko.io.resp

exception RespError(*args, **kwargs)[source]
ppolezero(s)[source]
pcfu(s)[source]
pnc(s)[source]
punit(s)[source]
psymmetry(s)[source]
ptftype(s)[source]
pcftype(s)[source]
pblock_060(content)[source]
pblock_053(content)[source]
pblock_043(content)[source]
pblock_058(content)[source]
pblock_048(content)[source]
pblock_054(content)[source]
pblock_044(content)[source]
pblock_057(content)[source]
pblock_047(content)[source]
pblock_061(content)[source]
pblock_041(content)[source]
parse1(f)[source]
parse2(f)[source]
parse3(f)[source]
get1(content, field, default=None, optional=False)[source]
getn(content, field)[source]
pdate(s)[source]
ploc(s)[source]
pcode(s)[source]
gett(lst, t)[source]
gett1o(lst, t)[source]
gett1(lst, t)[source]
class ChannelResponse(**kwargs)[source]

Response information + channel codes and time span.

codes

tuple of 4 str objects, default: ('', '', '', '')

start_date

builtins.float (pyrocko.guts.Timestamp)

end_date

builtins.float (pyrocko.guts.Timestamp)

response

pyrocko.io.stationxml.Response

codes = <pyrocko.guts.Tuple.__T object>
start_date = <pyrocko.guts.Timestamp.__T object>
end_date = <pyrocko.guts.Timestamp.__T object>
response = <pyrocko.guts.ObjectMetaClass.__new__.<locals>.T object>
iload_fh(f)[source]

Read RESP information from open file handle.

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 source can 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 ChannelResponse objects.

make_stationxml(pyrocko_stations, channel_responses)[source]

Create stationxml from pyrocko station list and RESP information.

Parameters:
  • pyrocko_stations – list of pyrocko.model.Station objects
  • channel_responses – iterable yielding ChannelResponse objects
Returns:

pyrocko.fdsn.station.FDSNStationXML object with merged information

If no station information is available for any response information, it is skipped and a warning is emitted.