obspy.io.arclink.inventory

ObsPy implementation for parsing the arclink inventory format to an Inventory object.

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

author:Mathijs Koymans (koymans@knmi.nl), 29.2016 - [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)

Public Functions

validate_arclink_xml Checks if the given path is a valid arclink_xml file.

Private Functions

Warning

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

_attr2obj Reads text from attribute in element
_get_restricted_status get the restricted_status (boolean) true is evaluated to ‘open’ and false to ‘closed’ to match stationXML formatting
_is_inventory_xml Simple function checking if the passed object contains a valid arclink XML 1.0 file.
_ns Hoisted namespace function used to find elements
_read_channel reads channel element from arclinkXML 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_inventory_xml Function for reading an Arclink inventory file.
_read_network Reads the network structure
_read_response reads response from arclinkXML format
_read_response_stage Private function to read a response stage
_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 arclinkXML paz format Uncertainties on poles removed, not present in fo 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