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

codes = <pyrocko.guts.Tuple.__T object>
tmin = <pyrocko.guts.Timestamp.__T object>
tmax = <pyrocko.guts.Timestamp.__T object>
lat = <pyrocko.guts.Float.__T object>
lon = <pyrocko.guts.Float.__T object>
elevation = <pyrocko.guts.Float.__T object>
depth = <pyrocko.guts.Float.__T object>
dip = <pyrocko.guts.Float.__T object>
azimuth = <pyrocko.guts.Float.__T object>
input_unit = <pyrocko.guts.String.__T object>
output_unit = <pyrocko.guts.String.__T object>
response = <pyrocko.guts.ObjectMetaClass.__new__.<locals>.T object>
spans(*args)[source]
make_stationxml_response(presponse, input_unit, output_unit)[source]
dummy_aware_str_to_time(s, time_format='%Y-%m-%dT%H:%M:%S')[source]
iload_fh(f, time_format='%Y-%m-%dT%H:%M:%S')[source]
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