obspy.io.stationtxt - FDSNWS station text file read and write support for ObsPy

This module provides read support for the station text files served by the FDSN web services.

copyright:The ObsPy Development Team (devs@obspy.org)
license:GNU Lesser General Public License, Version 3 (https://www.gnu.org/copyleft/lesser.html)

Example

Don’t use this module directly but utilize it through the read_inventory() function.

>>> import obspy
>>> inv = obspy.read_inventory("/path/to/channel_level_fdsn.txt")
>>> print(inv)  # 
Inventory created at ...
    Created by: ObsPy ...
            https://www.obspy.org
    Sending institution: None
    Contains:
        Networks (2):
            AK, AZ
        Stations (3):
            AK.BAGL ()
            AK.BWN ()
            AZ.BZN ()
        Channels (6):
            AK.BAGL..LHZ, AK.BWN..LHZ (2x), AZ.BZN..LHZ (3x)

Modules

core Parsing of the text files from the FDSN station web services.