obspy.io.seiscomp.inventory

ObsPy implementation for parsing the SeisComp XML format to an Inventory object.

This is a modified version of obspy.io.stationxml.

author

Mathijs Koymans (koymans@knmi.nl), 11.2015 - [Jollyfant@GitHub]

copyright

The ObsPy Development Team (devs@obspy.org)

license

GNU Lesser General Public License, Version 3 (http://www.gnu.org/copyleft/lesser.html)

Private Functions

Warning

Private functions are mainly for internal/developer use and their API might change without notice.

_count_complex

Returns number of complex numbers in string (formatted according to SeisComp XML schema type "ComplexArray").

_get_restricted_status

get the restricted_status (boolean) true is evaluated to 'open' and false to 'closed' to match stationXML formatting

_get_schema_namespace

>>> print(_get_schema_namespace('0.12'))

_map_transfer_type

_parse_list_of_complex_string

Returns a list of complex numbers, parsed from a string (formatted according to SeisComp XML schema type "ComplexArray").

_read_channel

reads channel element from scxml format

_read_datalogger

Reads equipment information from datalogger Some information is not present > to None

_read_float_var

function to read floattype to cls object (based on _read_floattype) normally ObsPy would read this directly from a tag, but with different tag names this is no longer possible; instead we just pass the value and not the tag name.

_read_instrument_sensitivity

reads the instrument sensitivity (gain) from the sensor and channel element

_read_network

Reads the network structure

_read_response

reads response from scxml format

_read_response_stage

_read_sc3ml

Function for reading a SeisComp XML file.

_read_sensor

Reads equipment information from element Some information is not present > to None

_read_site

Reads site information from the station element tags and region from network element

_read_station

Reads the station structure

_tag2obj

Reads text from tag in element

_tag2pole_or_zero

Parses scxml paz format Uncertainties on poles removed, not present in scxml.xsd? Always put to None so no internal conflict The sanitization removes the first/last parenthesis and split by comma, real part is 1st, imaginary 2nd