obspy.core.inventory.network.Network

class Network(code, stations=None, total_number_of_stations=None, selected_number_of_stations=None, description=None, comments=None, start_date=None, end_date=None, restricted_status=None, alternate_code=None, historical_code=None, data_availability=None, identifiers=None, operators=None, source_id=None)[source]

Bases: obspy.core.inventory.util.BaseNode

From the StationXML definition:

This type represents the Network layer, all station metadata is contained within this element. The official name of the network or other descriptive information can be included in the Description element. The Network can contain 0 or more Stations.

Attributes

alternate_code

From the StationXML definition:

code

historical_code

From the StationXML definition:

identifiers

operators

selected_number_of_stations

source_id

stations

total_number_of_stations

Public Methods

copy

Returns a deepcopy of the object.

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 and orientation for a given channel.

get_orientation

Return orientation for a given channel.

get_response

Find response for a given channel at given time.

is_active

Checks if the item was active at some given point in time (time) and/or if it was active at some point during a certain time range (starttime, endtime).

plot

Creates a preview map of all stations in current network object.

plot_response

Show bode plot of instrument response of all (or a subset of) the network's channels.

select

Returns the Network object with only the Stations / Channels that match the given criteria (e.g.

Private Methods

Warning

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

Network._repr_pretty_(p, cycle)[source]

Special Methods

Network.__delattr__(name, /)

Implement delattr(self, name).

Network.__dir__()

Default dir() implementation.

Network.__eq__(other)
Network.__format__(format_spec, /)

Default object formatter.

Network.__ge__(value, /)

Return self>=value.

Network.__getattribute__(name, /)

Return getattr(self, name).

Network.__getitem__(index)[source]
Network.__gt__(value, /)

Return self>value.

Network.__init__(code, stations=None, total_number_of_stations=None, selected_number_of_stations=None, description=None, comments=None, start_date=None, end_date=None, restricted_status=None, alternate_code=None, historical_code=None, data_availability=None, identifiers=None, operators=None, source_id=None)[source]
Parameters
  • code (str) – The SEED network code.

  • total_number_of_stations (int) – The total number of stations contained in this network, including inactive or terminated stations.

  • selected_number_of_stations – The total number of stations in this network that were selected by the query that produced this document, even if the stations do not appear in the document. (This might happen if the user only wants a document that goes contains only information at the Network level.)

  • description (str, optional) – A description of the resource

  • comments (list of Comment) – An arbitrary number of comments to the resource

  • start_date (UTCDateTime, optional) – The start date of the resource

  • end_date (UTCDateTime, optional) – The end date of the resource

  • restricted_status (str, optional) – The restriction status

  • alternate_code (str, optional) – A code used for display or association, alternate to the SEED-compliant code.

  • historical_code (str, optional) – A previously used code if different from the current code.

  • data_availability (DataAvailability) – Information about time series availability for the network.

  • identifiers (list[str], optional) – Persistent identifiers for network/station/channel (schema version >=1.1). URIs are in general composed of a ‘scheme’ and a ‘path’ (optionally with additional components), the two of which separated by a colon.

  • operators (list of Operator) – An operating agency and associated contact persons.

  • source_id (str, optional) – A data source identifier in URI form (schema version >=1.1). URIs are in general composed of a ‘scheme’ and a ‘path’ (optionally with additional components), the two of which separated by a colon.

Network.__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

Network.__le__(value, /)

Return self<=value.

Network.__len__()[source]
Network.__lt__(value, /)

Return self<value.

Network.__ne__(other)
Network.__new__(**kwargs)
Network.__reduce__()

Helper for pickle.

Network.__reduce_ex__(protocol, /)

Helper for pickle.

Network.__repr__()

Return repr(self).

Network.__setattr__(name, value, /)

Implement setattr(self, name, value).

Network.__short_str__()[source]
Network.__sizeof__()

Size of object in memory, in bytes.

Network.__str__()[source]
Network.__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).