Data provider

pansat.download.providers.data_provider

A data provider is an entity from which a specific data product can be downloaded. A general data source, such as the Icare server or the Copernicus Climate Data Store, are represented as classes of data providers. This module provides the DataProvider abstract base class (ABC) that defines the general interface for data provider classes.

class pansat.download.providers.data_provider.DataProvider

Abstract base class for data provider classes.

__weakref__

list of weak references to the object (if defined)

abstract download(start, end, destination=None)

This method downloads data for a given time range from respective the data provider.

Parameters:
  • start (datetime.datetime) – date and time for start

  • end (datetime.datetime) – date and time for end

  • destination (str or pathlib.Path) – path to directory where the downloaded files should be stored.

abstract classmethod get_available_products()

Return the names of products available from this data provider.

This method is used by each data product to determine whether it can use this provider to download data. The names provided here must therefore match the string representation returned by the product’s __str__ method.

Returns:

A list of strings containing the names of the products that can be downloaded from this data provider.