obspy.clients.fdsn.mass_downloader.download_helpers.ClientDownloadHelper

class ClientDownloadHelper(client, client_name, restrictions, domain, mseed_storage, stationxml_storage, logger)[source]

Bases: object

Parameters:
  • client (obspy.fdsn.client.Client) – An initialized FDSN client.
  • client_name (str) – The name of the client. Only used for logging.
  • restrictions (Restrictions) – The non-domain related restrictions for the query.
  • domain (Domain subclass) – The domain definition.
  • mseed_storage – The MiniSEED storage settings.
  • stationxml_storage – The StationXML storage settings.
  • logger – An active logger instance.

Attributes

__dict__
__doc__
__module__
__weakref__ list of weak references to the object (if defined)

Public Methods

discard_stations Discard all stations part of any of the already existing client download helper instances.
download_mseed Actually download MiniSEED data.
download_stationxml Actually download the StationXML files.
filter_stations_based_on_minimum_distance Removes stations until all stations have a certain minimum distance to each other.
get_availability Queries the current client for information on what stations are available given the spatial and temporal restrictions.
prepare_mseed_download Prepare each Station for the MiniSEED downloading stage.
prepare_stationxml_download Prepare each Station for the StationXML downloading stage.
sanitize_downloads Should be run after the MiniSEED and StationXML downloads finished.

Private Methods

Warning

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

_check_downloaded_data Read the downloaded data, set the proper status flags and remove data that does not meet the QC criteria.
_parse_miniseed_filenames
_remove_failed_and_ignored_stations Removes all stations that have no time interval with either exists or downloaded status.

Special Methods

__bool__
__dir__ Default dir() implementation.
__format__ Default object formatter.
__init__ Initialize self.
__init_subclass__ This method is called when a class is subclassed.
__len__
__new__ Create and return a new object.
__reduce__ Helper for pickle.
__reduce_ex__ Helper for pickle.
__sizeof__ Size of object in memory, in bytes.
__str__ Return str(self).
__subclasshook__ Abstract classes can override this to customize issubclass().