obspy.clients.fdsn.mass_downloader.download_helpers.Station

class Station(network, station, latitude, longitude, channels, stationxml_filename=None, stationxml_status=None)[source]

Bases: obspy.clients.fdsn.mass_downloader.download_helpers._SlotsEqualityComparisionObject

Object representing a seismic station within the download helper classes.

It knows the coordinates of the station to perform the filtering, its channels and the filename and status of the StationXML files.

Parameters
  • network (str) – The network code.

  • station (str) – The station code.

  • latitude (float) – The latitude of the station.

  • longitude (float) – The longitude of the station.

  • channels (list[Channel]) – The channels of the station.

  • stationxml_filename (str) – The filename of the StationXML file.

  • stationxml_status (STATUS) – The current status of the station.

Attributes

network

station

latitude

longitude

channels

want_station_information

miss_station_information

have_station_information

stationxml_status

has_existing_or_downloaded_time_intervals

Returns true if any of the station's time intervals have status "DOWNLOADED" or "EXISTS".

has_existing_time_intervals

Returns True if any of the station's time intervals already exist.

stationxml_filename

temporal_bounds

Return the temporal bounds for the station.

Public Methods

prepare_mseed_download

Loop through all channels of the station and distribute filenames and the current status of the channel.

prepare_stationxml_download

Figure out what to download.

remove_files

Delete all files under it.

sanitize_downloads

Should be run after the MiniSEED and StationXML downloads finished.

Special Methods

Station.__delattr__(name, /)

Implement delattr(self, name).

Station.__dir__()

Default dir() implementation.

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

Default object formatter.

Station.__ge__(value, /)

Return self>=value.

Station.__getattribute__(name, /)

Return getattr(self, name).

Station.__gt__(value, /)

Return self>value.

Station.__init__(network, station, latitude, longitude, channels, stationxml_filename=None, stationxml_status=None)[source]
Station.__init_subclass__()

This method is called when a class is subclassed.

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

Station.__le__(value, /)

Return self<=value.

Station.__lt__(value, /)

Return self<value.

Station.__ne__(value, /)

Return self!=value.

Station.__new__(**kwargs)
Station.__reduce__()

Helper for pickle.

Station.__reduce_ex__(protocol, /)

Helper for pickle.

Station.__repr__()

Return repr(self).

Station.__setattr__(name, value, /)

Implement setattr(self, name, value).

Station.__sizeof__()

Size of object in memory, in bytes.

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