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
From the StationXML definition: |
|
From the StationXML definition: |
|
Public Methods
Returns a deepcopy of the object. |
|
Return basic metadata for a given channel. |
|
Returns a dictionary containing the contents of the object. |
|
Return coordinates and orientation for a given channel. |
|
Return orientation for a given channel. |
|
Find response for a given channel at given time. |
|
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). |
|
Creates a preview map of all stations in current network object. |
|
Show bode plot of instrument response of all (or a subset of) the network's channels. |
|
Returns the |
Private Methods
Warning
Private methods are mainly for internal/developer use and their API might change without notice.
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.__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 resourcestart_date (
UTCDateTime
, optional) – The start date of the resourceend_date (
UTCDateTime
, optional) – The end date of the resourcerestricted_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.__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.__sizeof__()
Size of object in memory, in bytes.
- 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).