edc-downloader

Download of SLR data and SLR product from EDC. The EDC archive can be found at EDC Website.

Usage:

edc-downloader [OPTIONS] FILE/DIRECTORY

Options:

Option

Descriptions

–api_key=APIKEY

API key (optional if not in ~/.netrc)

–update-only

Update existing files only if updated on server

–preserve-timestamp

Keep the same timestamp as on server

–output-path=PATH

Output directory where files are stored (Default: Current Directory)

–file-pattern=REGEX

File pattern as regular expression (e.g. ^.*_[0-9]{8}.np2$)

–log-level=LOG_LEVEL

Set the logging level (Default: INFO, Allowed: DEBUG, INFO, WARNING, ERROR)’)

–log-path=PATH

Path to log file (Default: No log file)

–debug

Use development server for debugging (internal)

Examples:

It downloads the file /archive/data/npt_crd_v2/lageos1/2024/lageos1_20240101.np2 to the directory /tmp/lageos1/.

edc-downloader  \
    --output-path=/tmp/lageos1/
    /archive/data/npt_crd_v2/lageos1/2024/lageos1_20240101.np2

It downloads all the monthly files from the directory /archive/data/npt_crd_v2/lageos1/ that fulfil the regular expression `^.*_[0-9]{6}.np2$`. All files are downloaded recursively into the /tmp/lageos1/ directory. Only files that do not exist locally or differ from the file on the server are downloaded.

edc-downloader  \
    --output-path=/tmp/lageos1/
    --log-level=INFO
    --update-only
    --preserve-timestamp
    --file-pattern=^.*_[0-9]{6}.np2$
    --log-file=/tmp/lageos1.log
    /archive/data/npt_crd_v2/lageos1/

It downloads all CPFs from DGFI from the directory /archive/cpf_predicts_v2/current that fulfil the regular expression `^.*_cpf_.*dgf$`. All files are downloaded recursively into the /tmp/cpf_current/ directory. Only files that do not exist locally or differ from the file on the server are downloaded. A log file with status of new/updated and failed downloads is stored in /tmp/lageos1.log.

./edc-downloader
    --output-path=/tmp/cpf_current/
    --file-pattern='^.*_cpf_.*dgf$'
    --update-only
    /archive/cpf_predicts_v2/current