Downloads Component¶
The Downloads component takes care of downloading data. It communicates with the domain component to figure out what to download and what to ignore. It uses the mass downloader from obspy to query databases.
Contents:
-
class
lasif.components.downloads.
DownloadsComponent
(communicator, component_name)[source]¶ Component dealing with the station and data downloading.
- Parameters
communicator – The communicator instance.
component_name – The name of this component for the communicator.
-
download_data
(event: str, providers: Optional[List[str]] = None)[source]¶ Download data using the obspy mass downloader
-
generate_restrictions
(starttime: obspy.core.utcdatetime.UTCDateTime, endtime: obspy.core.utcdatetime.UTCDateTime, ds: dict)[source]¶ Create a restriction criterion for the mass downloader
- Parameters
starttime (obspy.core.utcdatetime.UTCDateTime) – Start time of data request
endtime (obspy.core.utcdatetime.UTCDateTime) – End time of data request
ds (dict) – Dictionary of information
- Returns
Restrictions to download request