pyrocko.io.enhanced_sacpz

exception EnhancedSacPzError(*args, **kwargs)[source]
class EnhancedSacPzResponse(**kwargs)[source]

Undocumented.

♦ codes

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

♦ tmin

builtins.float (pyrocko.guts.Timestamp), optional

♦ tmax

builtins.float (pyrocko.guts.Timestamp), optional

♦ lat

float

♦ lon

float

♦ elevation

float

♦ depth

float

♦ dip

float

♦ azimuth

float

♦ input_unit

str

♦ output_unit

str

♦ response

pyrocko.trace.PoleZeroResponse

iload_filename(filename, **kwargs)

Read SACPZ information from named file.

iload_dirname(dirname, **kwargs)

Read SACPZ information from directory of SACPZ files.

iload_glob(pattern, **kwargs)

Read SACPZ information from files matching a glob pattern.

iload(source, **kwargs)

Load SACPZ information from given source(s)

The source can be specified as the name of a SACPZ file, the name of a directory containing SACPZ files, a glob pattern of SACPZ files, an open filehandle or an iterator yielding any of the forementioned sources.

This function behaves as a generator yielding EnhancedSacPzResponse objects.

make_stationxml(responses, inconsistencies='warn')[source]

Create stationxml from “enhanced” SACPZ information.

Parameters:responses – iterable yielding EnhancedSacPzResponse objects
Returns:pyrocko.fdsn.station.FDSNStationXML object