sand package
Subpackages
sand.base
- class sand.base.BaseDownload(collection: str = None, level: int = 1)[source]
Bases:
object
- download(product: dict, dir: Path | str, uncompress: bool = True) Path [source]
Download a product from API server
sand.copernicus_dataspace
- class sand.copernicus_dataspace.DownloadCDSE(collection: str = None, level: int = 1)[source]
Bases:
BaseDownload
- change_api(**kwargs)
- download(**kwargs)
Download a product from API server
- download_file(product_id: str, dir: Path | str) Path [source]
Download product knowing is product id (ex: S2A_MSIL1C_20190305T050701_N0207_R019_T44QLH_20190305T103028)
- metadata(**kwargs)
Returns the product metadata including attributes and assets
- name = 'DownloadCDSE'
- query(**kwargs)
Product query on the API server
- quicklook(**kwargs)
Download a quicklook to dir
sand.eumdac
- class sand.eumdac.DownloadEumDAC(collection: str = None, level: int = 1)[source]
Bases:
BaseDownload
- download(**kwargs)
Download a product from API server
- metadata(**kwargs)
Returns the product metadata including attributes and assets
- name = 'DownloadEumDAC'
- query(**kwargs)
Product query on the API server
- quicklook(**kwargs)
Download a quicklook to dir
sand.geodes
- class sand.geodes.DownloadCNES(collection: str = None, level: int = 1)[source]
Bases:
BaseDownload
- download(**kwargs)
Download a product from API server
- download_file(**kwargs)
- metadata(**kwargs)
Returns the product metadata including attributes and assets
- name = 'DownloadCNES'
- query(**kwargs)
Product query on the API server
- quicklook(**kwargs)
Download a quicklook to dir
sand.nasa
- class sand.nasa.DownloadNASA(collection: str = None, level: int = 1)[source]
Bases:
BaseDownload
- download(**kwargs)
Download a product from API server
- metadata(**kwargs)
Returns the product metadata including attributes and assets
- name = 'DownloadNASA'
- query(**kwargs)
Product query on the API server
- quicklook(**kwargs)
Download a quicklook to dir
sand.nextcloud
sand.patterns
sand.results
- sand.results.Collection(selection: list, collec_table: DataFrame) DataFrame [source]
Function to extract a selection of collection from a reference table as pandas DataFrame
- Parameters:
selection (list) – List of selected collections
collec_table (pd.DataFrame) – Reference table
- Returns:
Filtered table containing selected collections
- Return type:
pd.DataFrame
sand.sample_product
sand.tinyfunc
sand.usgs
- class sand.usgs.DownloadUSGS(collection: str = None, level: int = 1)[source]
Bases:
BaseDownload
- download(**kwargs)
Download a product from API server
- metadata(**kwargs)
Returns the product metadata including attributes and assets
- name = 'DownloadUSGS'
- query(**kwargs)
Product query on the API server
- quicklook(**kwargs)
Download a quicklook to dir