obspy.core.inventory.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()                  
{...}
>>> for k, v in sorted(inventory.get_contents().items()):                      
...     print(k, v[0])
channels IU.ANMO.10.BHZ
networks IU
stations IU.ANMO (Albuquerque, New Mexico, USA)