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