Functions dealing with reading and writing StationXML.


Lion Krischer (krischer@geophysik.uni-muenchen.de), 2013


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

Public Functions


Checks if the given path is a valid StationXML file.

Private Functions


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





Converts a float to str making.



Return StationXML version string or None if parsing fails.


Simple function checking if the passed object contains a valid StationXML 1.x file.


If tag_value is not None, append a SubElement to the parent.


Reads the base node structure from element and saves it in object_to_write_to.


Returns either a Channel object or None.





Recursively read custom namespace elements and add them to extra.




Add information stored in custom tags/attributes in obj.extra.











This parses all ResponseStageTypes.




Function reading a StationXML file.









Recursively write custom namespace elements.




Write information stored in custom tags/attributes in obj.extra.





Helper function converting a Network instance to an etree.Element.










Writes an inventory object to a buffer.