Station2StationXML

This module is for converting the station information from the database into stationxml format. The most important function of this module is writeNetworkToStationXML(network, output_path) which takes all stations from one network and dumps them to a single stationxml file.

Functions and Classes

channel2stationXML(sitechan, station)

Create channel xml and return it

Parameters:sitechan (SiteChan) – Sitechan object that will be converted into a xml etree object
Returns:lxml etree object of a channel defined by FNDS format
station2stationxml(station)

Method for converting a Station object to a stationxml lxml object

Parameters:station (Station) – Station object that needs to be converted.
Returns:StationXML etree object
stationsToStationXML(stations)

Method for writing all stations given into a stationXML file.

Parameters:stations (array) – Array of stations that need to be put into a stationXLM file
Returns:lxml etree object or None is stations array is empty