obspy.core.inventory.util.Site

class Site(name='', description=None, town=None, county=None, region=None, country=None)[source]

Bases: ComparingObject

From the StationXML definition:

Description of a site location using name and optional geopolitical boundaries (country, city, etc.).

Private Methods

Warning

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

Site._repr_pretty_(p, cycle)[source]

Special Methods

Site.__delattr__(name, /)

Implement delattr(self, name).

Site.__dir__()

Default dir() implementation.

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

Default object formatter.

Site.__ge__(value, /)

Return self>=value.

Site.__getattribute__(name, /)

Return getattr(self, name).

Site.__gt__(value, /)

Return self>value.

Site.__init__(name='', description=None, town=None, county=None, region=None, country=None)[source]
Parameters:
  • name (str) – The commonly used name of this station, equivalent to the SEED blockette 50, field 9.

  • description (str, optional) – A longer description of the location of this station, e.g. “NW corner of Yellowstone National Park” or “20 miles west of Highway 40.”

  • town (str, optional) – The town or city closest to the station.

  • county (str, optional) – The county.

  • region (str, optional) – The state, province, or region of this site.

  • country (str, optional) – The country.

Site.__init_subclass__()

This method is called when a class is subclassed.

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

Site.__le__(value, /)

Return self<=value.

Site.__lt__(value, /)

Return self<value.

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

Helper for pickle.

Site.__reduce_ex__(protocol, /)

Helper for pickle.

Site.__repr__()

Return repr(self).

Site.__setattr__(name, value, /)

Implement setattr(self, name, value).

Site.__sizeof__()

Size of object in memory, in bytes.

Site.__str__()[source]
Site.__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).