CHAP Core Credentials for Google Earth Engine¶
In many cases CHAP Core needs credentials for Google Earth Engine in order to connect with the climate data needed for the models to run. Steps to add these credentials:
Create or retrieve credentials to Google Earth Engine (Google Service Account Email and Private Key). Read more here: https://docs.dhis2.org/en/manage/reference/google-service-account-configuration.html
Locate the folder containing CHAP Core. This depends if you installed CHAP Core as a commandline tool, as a local Docker container, or on a server.
Inside this folder, create a new file named “.env” with the following content:
GOOGLE_SERVICE_ACCOUNT_EMAIL=”your-google-service-account@company.iam.gserviceaccount.com” GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY=”—–BEGIN PRIVATE KEY—–
—–END PRIVATE KEY—–”
The file should be stored in the root folder of CHAP Core, such as below:
/chap-core
|-- compose.integration.test.yml
|-- compose.test.yml
|-- compose.yml
|-- .env
|-- chap_core/
Not all files are included in this file-structure snippet