GES DISC¶
pansat.download.providers.ges_disc¶
This module contains a data provider for NASA’s Goddard Earth Sciences Data and Information Services Center (GES DISC).
Reference¶
- class pansat.download.providers.ges_disc.GesdiscProvider(product)¶
Dataprovider class for for products available from the gpm1.gesdisc.eosdis.nasa.gov domain.
- __init__(product)¶
Create new GesDisc provider.
- Parameters:
product – The product to download.
- _download_with_redirect(url, destination)¶
Handles download from GES DISC server with redirect.
- Parameters:
url (
str) – The URL of the file to retrieve.destination (
str) – Destination to store the data.
- property _request_string¶
The URL containing the data files for the given product.
- download_file(filename, destination)¶
Download file from data provider.
- Parameters:
filename (
str) – The name of the file to download.destination (
strorpathlib.Path) – path to directory where the downloaded files should be stored.
- classmethod get_available_products()¶
Return the names of products available from this data provider.
- Returns:
A list of strings containing the names of the products that can be downloaded from this data provider.
- get_files_by_day(year, day)¶
Return list of available files for a given day of a year.
- Parameters:
year (
int) – The year for which to look up the files.day (
int) – The Julian day for which to look up the files.
- Returns:
A list of strings containing the filename that are available for the given day.