pyrocko.io.enhanced_sacpz¶
Reader for enhanced SAC pole-zero files.
Enhanced SAC pole-zero files are SAC pole-zero files with additional channel attributes in the file header comments as they are output e.g. by rdseed.
Functions
|
Load SACPZ information from given source(s) |
|
Read SACPZ information from directory of SACPZ files. |
|
Read SACPZ information from named file. |
|
Read SACPZ information from files matching a glob pattern. |
|
Create stationxml from "enhanced" SACPZ information. |
Classes
|
Undocumented. |
- class EnhancedSacPzResponse(**kwargs)[source]¶
Bases:
Object
Undocumented.
- ♦ codes¶
tuple
of 4str
objects, default:(None, None, None, None)
- ♦ tmin¶
pyrocko.util.get_time_float (
pyrocko.guts.Timestamp
), optional
- ♦ tmax¶
pyrocko.util.get_time_float (
pyrocko.guts.Timestamp
), optional
- ♦ lat¶
float
- ♦ lon¶
float
- ♦ elevation¶
float
- ♦ depth¶
float
- ♦ dip¶
float
- ♦ azimuth¶
float
- ♦ input_unit¶
str
- ♦ output_unit¶
str
- ♦ response¶
- 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: