InventoryXmlParser

class mss_dataserver.geometry.inventory_parser.InventoryXmlParser[source]

Bases: object

A parser for a geometry inventory XML file in psysmon format.

Methods

__init__()

Initialize self.

check_completeness(node, content, node_type)

Check the completeness of a XML node.

clean_time_string(value)

Remove running and big bang string from time string.

export_xml(inventory, filename)

Export an inventory to xml file.

get_node_text(xml_element, tag)

Get the text of a XML node.

handle_element_pz(name, value, root)

Convert a list of complex values to a list of xml tree elements.

instance_to_xml(instance, root, name, …[, …])

Translate an inventory object into a xml element.

keys_complete(node_content, required_keys)

Check if a node contains all required keys.

parse(filename[, inventory_name])

Parse a XML inventory file.

parse_node(xml_element)

Parse a XML node.

process_arrays(inventory, arrays)

Process the extracted array nodes.

process_assigned_components(stream, components)

Process the components assigned to a recorder stream.

process_assigned_streams(channel, streams)

Process the assigned streams of a channel.

process_channels(station, channels)

Process the channel nodes of a station.

process_complex_pole(parameter, poles)

Process the complex_poles nodes in a response_paz.

process_complex_zero(parameter, zeros)

Process the complex_zero nodes in a response_paz.

process_component_parameters(component, …)

Process the component_parameter nodes of a component.

process_components(sensor, components)

Process the component nodes of a sensor.

process_networks(inventory, networks)

Process the extracted network nodes.

process_recorder_streams(recorder, streams)

Process the stream nodes of a recorder.

process_recorders(inventory, recorders)

Process the extracted recorder nodes.

process_response_paz(parameter, response_paz)

Process the response_paz nodes of a component_paramter.

process_sensors(inventory, sensors)

Process the extracted sensor tags.

process_stations(network, stations)

Process the station nodes of a network.

process_stream_parameters(stream, parameters)

Process the stream_parameter nodes of a recorder stream.

Inheritence diagram

Inheritance diagram of mss_dataserver.geometry.inventory_parser.InventoryXmlParser