obspy.station.inventory.Inventory.get_contents

Inventory.get_contents()[source]

Returns a dictionary containing the contents of the object.

Example >>> example_filename = “/path/to/IRIS_single_channel_with_response.xml” >>> inventory = read_inventory(example_filename) >>> inventory.get_contents() # doctest: +NORMALIZE_WHITESPACE {‘channels’: [‘IU.ANMO.10.BHZ’],

‘networks’: [‘IU’], ‘stations’: [u’IU.ANMO (Albuquerque, New Mexico, USA)’]}

This Page