obspy.core.inventory.util.BaseNode

class BaseNode(code, description=None, comments=None, start_date=None, end_date=None, restricted_status=None, alternate_code=None, historical_code=None, data_availability=None, identifiers=None, source_id=None)[source]

Bases: obspy.core.util.base.ComparingObject

From the StationXML definition:

A base node type for derivation of: Network, Station and Channel types.

The parent class for the network, station and channel classes.

Attributes

alternate_code

From the StationXML definition:

code

historical_code

From the StationXML definition:

identifiers

source_id

Public Methods

copy

Returns a deepcopy of the object.

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).

Special Methods

BaseNode.__delattr__(name, /)

Implement delattr(self, name).

BaseNode.__dir__()

Default dir() implementation.

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

Default object formatter.

BaseNode.__ge__(value, /)

Return self>=value.

BaseNode.__getattribute__(name, /)

Return getattr(self, name).

BaseNode.__gt__(value, /)

Return self>value.

BaseNode.__init__(code, description=None, comments=None, start_date=None, end_date=None, restricted_status=None, alternate_code=None, historical_code=None, data_availability=None, identifiers=None, source_id=None)[source]
Parameters
  • code (str) – The SEED network, station, or channel code

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

  • comments (list of Comment, optional) – 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/station/channel.

  • 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.

  • 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.

BaseNode.__init_subclass__()

This method is called when a class is subclassed.

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

BaseNode.__le__(value, /)

Return self<=value.

BaseNode.__lt__(value, /)

Return self<value.

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

Helper for pickle.

BaseNode.__reduce_ex__(protocol, /)

Helper for pickle.

BaseNode.__repr__()

Return repr(self).

BaseNode.__setattr__(name, value, /)

Implement setattr(self, name, value).

BaseNode.__sizeof__()

Size of object in memory, in bytes.

BaseNode.__str__()

Return str(self).

BaseNode.__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).