Eodag configuration file

Eodag is the module used to automatically download Sentinel-2 imagery. It uses a yaml configuration file that is created when eodag is first called. After that first call you can find it /home/user/.config/eodag/eodag.yml (this path should be added in the json config file). This module is only used for the scihub and theia providers (usually scihub which covers most of the world), so you can focus on those two providers.

The yaml configuration file has data for a whole range of providers, you can find more information on how to create accounts for eodag providers. The four important parameters to set are the following: extract, outputs_prefix, username and password:

  • The extract should be set to false, this means eodag will not extract the downloaded archives (the input preparation scripts later extract only the relevant bands).

  • The outputs_prefix corresponds to the download_path defined in the json config file with the provider sub-directory, this is where the Sentinel-2 data will be downloaded (and where the NDVI data will be written in a sub-directory later on). This directory should be automatically written by the input preparation scripts based on the information in the json config file.

  • The username and password are the ones you created to get access to Sentinel-2 data.

Warning

Putting some special characters like !, $ or # at the begining of your password can cause reading issues with the eodag module.

scihub:
    priority: 2  # Must be higher than the other providers' priorities to download
    api:
        extract: false
        outputs_prefix: /my/download/directory/SCIHUB/
        credentials:
            username: my_scihub_username
            password: my_scihub_password

theia:
    priority: 0  # Lower value means lower priority (Default: 0)
    search:
    download:
        extract: false
        outputs_prefix: /my/download/directory/THEIA/
        dl_url_params:
    auth:
        credentials:
            ident: my_theia_username
            pass: my_theia_password