obspy.core.inventory.inventory.Inventory

class Inventory(networks=None, source='ObsPy 1.2.0', sender=None, created=None, module='ObsPy 1.2.0', module_uri='https://www.obspy.org')[source]

Bases: obspy.core.util.base.ComparingObject

The root object of the Inventory->Network->Station->Channel hierarchy.

In essence just a container for one or more networks.

Attributes

__dict__
__doc__ str(object=’‘) -> str
__hash__
__module__ str(object=’‘) -> str
__weakref__ list of weak references to the object (if defined)
networks

Public Methods

copy Return a deepcopy of the Inventory object.
extend Extends the current Catalog object with a list of Network objects.
get_channel_metadata Return basic metadata for a given channel.
get_contents Returns a dictionary containing the contents of the object.
get_coordinates Return coordinates for a given channel.
get_orientation Return orientation for a given channel.
get_response Find response for a given channel at given time.
plot Creates a preview map of all networks/stations in current inventory object.
plot_response Show bode plot of instrument response of all (or a subset of) the inventory’s channels.
remove Return a copy of the inventory with selected elements removed.
select Return a copy of the inventory filtered on various parameters.
write Writes the inventory object to a file or file-like object in the specified format.

Private Methods

Warning

Private methods are mainly for internal/developer use and their API might change without notice.

_Inventory__copy_inventory_metadata Will be called after two inventory objects have been merged.
_repr_pretty_

Special Methods

__add__
__dir__ default dir() implementation
__eq__ __eq__ method of the Inventory object.
__format__ default object formatter
__getitem__
__iadd__
__init__
type networks:list of
__len__
__ne__
__new__ Create and return a new object.
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__sizeof__ size of object in memory, in bytes
__str__
__subclasshook__ Abstract classes can override this to customize issubclass().