obspy.core.inventory.network.Network.get_contents
- Network.get_contents()[source]
Returns a dictionary containing the contents of the object.
Example
>>> from obspy import read_inventory >>> example_filename = "/path/to/IRIS_single_channel_with_response.xml" >>> inventory = read_inventory(example_filename) >>> network = inventory.networks[0] >>> network.get_contents() {...} >>> for k, v in sorted(network.get_contents().items()): ... print(k, v[0]) channels IU.ANMO.10.BHZ stations IU.ANMO (Albuquerque, New Mexico, USA)