fetch_gesdisc
Downloads MERRA-2 products from the Goddard Earth Sciences Data and Information Server Center (GES DISC)
- FirnCorr.datasets.fetch_gesdisc(client, directory: str | Path = PosixPath('/home/docs/.cache/firncorr'), version: str | None = None, years: list | None = None, endpoint: str | None = None, timeout: int | None = None, clobber: bool = False, mode: int = 509)[source]
Download MERRA-2 files from GESDISC
- Parameters:
- client: obj
AWS s3 client for GES DISC
- directory: str or pathlib.Path, default None
Working data directory
- version: str, default None
MERRA-2 version
- years: list, default None
Years of model outputs to sync
- endpoint: str or None, default None
CMR url endpoint type
- timeout: int, default None
Timeout in seconds for blocking operations
- clobber: bool, default False
Overwrite existing data in transfer
- mode: int, default 0o775
Local permissions mode of directories and files
CLI
usage: fetch_gesdisc.py [-h] [--user USER] [--password PASSWORD]
[--netrc NETRC] [--directory DIRECTORY]
[--version VERSION] [--year YEAR [YEAR ...]]
[--endpoint {s3,data}] [--timeout TIMEOUT] [--clobber]
[--mode MODE]
Named Arguments
- --user, -U
Username for NASA Earthdata Login
- --password, -W
Password for NASA Earthdata Login
- --netrc, -N
Path to .netrc file for authentication
- --directory, -D
Working data directory
- --version, -v
MERRA-2 version
- --year, -Y
Years of model outputs to sync
- --endpoint, -e
Possible choices: s3, data
CMR url endpoint type
- --timeout, -t
Timeout in seconds for blocking operations
- --clobber, -C
Overwrite existing data in transfer
- --mode, -M
Permission mode of directories and files synced