Set up a climate dashboard for your country
Four steps (and two optional ones). You need a Google account and about 15 minutes; the computer then works on its own for a few hours.
The maps are calculated with Google Earth Engine, Google's satellite-data service, which is free for research, non-profit and government work. It runs under your Google account, so you need to give it permission once.
Simple setup you are here
Best for a first dashboard. A few steps with recommended choices: the level of detail is matched to your Earth Engine allowance, big steps stop before they would use more than your monthly budget, and the core satellite and weather data are included.
Expert mode
Full control, for when you know what you want to change:
- Every setting of the country: alert thresholds, analysis detail, planning grid, rivers and lakes, reports and email alerts.
- Optional data sources that need a free registration: river flood forecasts (GloFAS), observed flood maps (GFM), weekly and seasonal outlooks (ECMWF S2S, NMME), lake and river levels (DAHITI, Hydroweb, Copernicus), email alerts (Brevo).
- Country-specific inputs, several countries, several Google accounts or projects.
- Each step on its own with its log, years of past data planned step by step, and server set-up.
Switch to Expert mode You can switch back at any time; both use the same settings.
1 Connect Google Earth Engine
First time with Earth Engine? Get access (about 10 minutes, once)
- Create a Google Cloud project. Open the Create project page. Any name works, for example climate-dashboard. No payment details are needed.
- Register the project for Earth Engine. Open Earth Engine registration, choose the project you just made, choose unpaid (non-commercial) use and describe your organisation. Approval is usually immediate.
- If Google asks, switch on the Earth Engine API for the project (Earth Engine API page, press Enable).
Then come back here and sign in below.
a. Sign in with Google
b. Type your Earth Engine project ID
The project ID is in the "ID" column of your Google Cloud project list (for example climate-dashboard-471203). It is not always the same as the project name.
Your Earth Engine allowance
Non-commercial Earth Engine projects get a free amount of computing each month, counted in EECU-hours (Google's unit of Earth Engine work). The setup stops before a big step that would use more than the budget you set here, so the project does not run out part-way through the month.
2 Choose your country
The map areas (districts, municipalities, ...) are downloaded automatically from OCHA's Humanitarian Data Exchange, at the most detailed level available.
Level of analysis
More detail needs more Earth Engine computing. Choose the level that fits your allowance; the recommended one is the most detailed level whose build and a month of daily updates fit your budget.
| Level | Build (once) | Each daily update | A month of daily updates | 30 days of past data | Your allowance |
|---|
3 Build my dashboard
- Takes a few hours for a small country and up to a day for a large one. Most of the time is Earth Engine working out long-term averages.
- Keep the computer switched on and online. You can close this page and come back to check.
- If it stops (sleep, restart, no internet), press Continue: finished parts are kept.
- It uses your project's free Earth Engine allowance, nothing else.
Which areas, and how much detail?
Details (technical log)
4 Open my dashboard
The dashboard runs on this computer. Keep the setup window open while you use it. It updates when you run step 3 again (press Build my dashboard once a day to fetch new data).
5 Add past data (optional)
The dashboard starts with today only. To see how this season compares with recent weeks and months, the computer can work out each past day, one after another. Days already done are skipped, so you can stop and start again at any time.
Details (technical log)
6 Share or publish (optional)
To show the dashboard to others on the internet, make a publish package: one ZIP file with the dashboard's data and map files. It holds no keys or passwords and nothing about your Google account.
Then choose one
- Keep it on this computer. Nothing to do: step 4 opens it.
- Publish it on a server of your own. A small Linux server is enough; copy the package there and follow the guide
docs/13_PUBLISHING.mdin the GlobalClimateMonitor folder. - Need help or advice? Get in touch with the project: questions, problems and ideas are all welcome.
Need more control (thresholds, optional data sources, several countries or Google accounts, a server)? Use Expert mode.
Set up a climate monitor for a new country
This wizard creates the country's settings, connects your Google Earth Engine project, and runs the setup steps. You can stop at any point and come back; everything you save is kept.
You need
- A Google account.
- A Google Cloud project registered for Earth Engine (step 3 shows how; free for non-commercial use).
- About 30 minutes now. Earth Engine then works unattended for one to three days.
Where things go
- Country settings:
countries/<ISO3>.yaml - Your keys and passwords:
.envandsecrets/on this computer (never committed). - Earth Engine assets: a folder in your own Earth Engine project.
Progress
Choose the country
Boundaries come automatically from the lowest administrative level available on HDX (OCHA), with geoBoundaries as a fallback. Countries that cross the 180° line (for example Fiji) are handled automatically.
Connect Google Earth Engine
All processing runs in your Earth Engine projects and counts against their quota. Add the Google accounts you want to use, make a profile for each project (account + project + asset folder), then choose a profile for each country. Several countries can share one profile.
- Create or choose a Google Cloud project. Create a project and note its project ID (not the name).
- Register it for Earth Engine. Earth Engine registration. Choose non-commercial use if you qualify.
- Enable the Earth Engine API for that project: Earth Engine API page, press Enable.
1. Accounts
Stored in secrets/ee/ on this computer only. Signing in here does not change this computer's normal earthengine authenticate login.
| Account | Kind | Status |
|---|
Add a Google account any Gmail or Workspace login
A Google page opens in a new tab. Choose the account, allow Earth Engine access, then come back here.
Add a service-account key best for servers
- In the Cloud console open Service accounts and create one.
- Give it the roles Earth Engine Resource Writer and Service Usage Consumer.
- Open the account, go to Keys, Add key, JSON. Choose the downloaded file here.
2. Profiles
| Profile | Account | Project and folder | Countries | Default |
|---|
3. Which profile each country uses
| Country | Profile |
|---|
Older single-project setup (values in .env)
Used only by countries with no profile while no default profile is chosen.
How should this computer sign in?
A. Service account key recommended for servers
- In the Cloud console open Service accounts and create one.
- Give it the roles Earth Engine Resource Writer and Service Usage Consumer.
- Open the account, go to Keys, Add key, JSON. A file downloads.
- Choose that file here. It is stored in
secrets/on this computer only.
B. Your own Google login fine for a laptop
- Open a terminal in this folder.
- Run
earthengine authenticateand follow the browser prompt. - Press "Use my own login" below, then "Test the connection".
Asset folder
Static layers and daily images for every country are stored under this folder in your project, one subfolder per country.
Tailor the settings
Every value in the country's settings file, grouped. Defaults suit most countries; change a threshold only with a reason you can document. Each save is checked by the same loader the daily job uses, and comments in the file are kept.
Optional data sources
Each source adds features to the dashboard. All are free but need an account. Skip any you do not want; the daily job lists skipped sources as "missing credentials".
Build and run
Press Run all steps to run every step marked in Run all one after another; each turns green when it has finished. It keeps running if you close this page, and steps already finished are not repeated. You can also run one step on its own with its button. Logs are saved under data/<ISO3>/logs/; every step can also be run in a terminal with the command shown.
| Step | Time | Action |
|---|