Recipes for reproducing Analysis-Ready & Cloud Optimized (ARCO) ERA5 datasets.
License
Insights
google-research/arco-era5
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main
View all tags
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Cancel
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more .
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
- Added links to the dl configs in the main README. - Found a better link to get a Copernicus license in the ingestion instructions. Thanks for @fredzyda for these suggestions. Change-Id: I63dea0dfdc82e02536e93e6e45ee22f4d78fae1a
1997c8a
Failed to load latest commit information.
Type
View code
Introduction • Roadmap • Data Description • How to reproduce • FAQs • How to cite this work • License
Introduction
Our goal is to make a global history of the climate highly accessible in the cloud. To that end, we present a curated copy of the ERA5 corpus.
What is ERA5?
ERA5 is the fifth generation of ECMWF's Atmospheric Reanalysis. It spans atmospheric, land, and ocean variables. ERA5 is an hourly dataset with global coverage at 30km resolution (~0.28° x 0.28°), ranging from 1979 to the present. The total ERA5 dataset is about 5 petabytes in size.
Check out ECMWF's documentation on ERA5 for more.
What is a reanalysis?
A reanalysis is the "most complete picture currently possible of past weather and climate." Reanalyses are created from assimilation of a wide range of data sources via numerical weather prediction (NWP) models.
Read ECMWF's introduction to reanalysis for more.
So far, we have ingested meteorologically valuable variables for the land and atmosphere. From this, we have produced a cloud-optimized version of ERA5, in which we have converted grib data to Zarr with no other modifications. Next, we plan on creating an "analysis-ready" version, oriented towards common research workflows, which we will do in the open.
This two-pronged approach for the data serves different user needs. Some researchers need full control over the interpolation of data for their analysis. Most will want a batteries-included dataset, where standard pre-processing and chunk optimization is already applied. In general, we ensure that every step in this pipeline is open and reproducible, to provide transparency in the providence of all data.
TODO( #1 ): What have we done to make this dataset possible?
Please view out our walkthrough notebook for a demo of the datasets.
Roadmap
Phase 0: Ingest raw ERA5
Phase 1: Cloud-Optimize to Zarr, without data modifications
Use Pangeo-Forge to convert the data from grib to Zarr.
Create example notebooks for common workflows, including regridding and variable derivation.
Phase 2: Produce an Analysis-Ready corpus
Regrid datasets to lat/long grids.
Convert model levels to pressure levels (at high resolution).
Compute derived variables.
Phase 3: Create an analysis & machine learning (ML) pipeline toolkit
Dataset generator for ML Models.
Examples of reading data in XArray-Beam pipelines.
Notebooks demoing common data analysis, like Extreme Value Analysis .
General future plans...
Include more variables, especially ocean data.
Integrate preliminary ERA5 data (1950 to 1978).
Automatically update with recent data.
Data Description
As of 2022-04-27, all data spans the dates 1979-01-01/to/2021-08-31 (inclusive).
Whenever possible, we have chosen to represent parameters by their native grid resolution. See this ECMWF documentation for more.
Model Level Wind
Times: 00/to/23
Grid: Spectral Harmonic Coefficients ( docs )
Warning: We encountered a small error in one of our source data shards (the dve shard for 2008-08-27 actually had data for 2008-02-27). We noticed this only after ECMWF's MARS archive went down due to a data center migration. In order to release the data as soon as possible, we substituted the previous day's worth of data for this 24-hour period. Once the center is back online, we will re-compute this dataset ( #8 ).
name
specific cloud liquid water content
clwc
specific cloud ice water content
ciwc
total column cloud ice water
tciw
vertical integral of divergence of cloud frozen water flux
wiiwd
100 metre U wind component
100u
100 metre V wind component
100v
volumetric soil water layer 1
swvl1
volumetric soil water layer 2
swvl2
volumetric soil water layer 3
swvl3
volumetric soil water layer 4
swvl4
total column cloud liquid water
tclw
total column vertically-integrated water vapour
tcwv
convective snowfall rate water equivalent
csfr
large scale snowfall rate water equivalent
lssfr
era5_sfc_rad.cfg
How to reproduce
All phases of this dataset can be reproduced with scripts found here. To run them, please clone the repo and install the project.
git clone https://github.com/google-research/arco-era5.git
cd arco-era5 pip install -e .
Acquire & preprocess raw data
Please consult the instructions described in raw/ .
Cloud-Optimization
All our tools make use of Apache Beam, and thus are portable to any cloud (or Runner) . We use GCP's Dataflow to produce this dataset. If you would like to reproduce the project this way, we recommend the following:
Ensure you have access to a GCP project with GCS read & write access, as well as full Dataflow permissions (see these "Before you begin" instructions ).
Export the following variables:
export PROJECT= export REGION=us-central1 export BUCKET=
From here, we provide examples of how to run the recipes at the top of each script.
pydoc src/single-levels-to-zarr.py
You can also discover available command line options by invoking the script with -h/--help:
python src/model-levels-to-zarr.py --help
Making the dataset "Analysis Ready" & beyond...
This phase of the project is under active development! If you would like to lend a hand in any way, please check out our contributing guide .
FAQs
How did you pick these variables?
This dataset originated in Loon , Alphabet’s project to deliver internet service using stratospheric balloons, and is now curated by Google Research & Google Cloud Platform. Loon’s Planning, Simulation and Control team needed accurate data on how the stratospheric winds have behaved in the past to evaluate the effectiveness of different balloon steering algorithms over a range of weather. This led us to download the model-level data. But Loon also needed information about the atmospheric radiation to model balloon gas temperatures, so we downloaded that. And then we downloaded the most commonly used meteorological variables to support different product planning needs (RF propagation models, etc)...
Eventually, we found ourselves with a comprehensive history of weather for the world.
Where are the U/V components of wind? Where is geopotential height? Why isn’t X variable in this dataset?
We intentionally did not include many variables that can be derived from other variables. For example, U/V components of wind can be computed from divergence and vorticity; geopotential is a vertical integral of temperature.
In the second phase of our roadmap (towards "Analysis Ready" data), we aim to compute all of these variables ourselves. If you’d like to make use of these parameters sooner, please check out our example notebooks where we demo common calculations. If you notice non-derived missing data, such as surface variables, please let us know of your needs by filing an issue , and we will be happy to incorporate them into our roadmap.
Do you have plans to get all of ERA5?
We aim to support hosting data that serves general meteorological use cases, rather than aim for total completeness. Wave variables are missing from this corpus, and are a priority on our roadmap. If there is a variable or dataset that you think should be included here, please file a Github issue .
For a complete ERA5 mirror, we recommend consulting with the Pangeo Forge project (especially staged-recipes#92 ).
Why are there two model-level datasets and not one?
It definitely is possible for all model level data to be represented in one grid, and thus one dataset. However, we opted to preserve the native representation for variables in ECMWF's models. A handful of core model variables (wind, temperature and surface pressure) are represented as spectral harmonic coefficients , while everything else is stored on a Gaussian grid. This avoids introducing numerical error by interpolating these variables to physical space. For a more in depth review of this topic, please consult these references:
Please note: in a future releases, we intend to create a dataset version where all model levels are in one grid and Zarr.
Why doesn’t this project make use of Pangeo Forge Cloud?
We are big fans of the Pangeo Forge project , and of Pangeo in general. While this project does make use of their Recipes , we have a few reasons to not use their cloud. First, we would prefer to use internal rather than community resources for computations of this scale. In addition, there are several technical reasons why Pangeo Forge as it is today would not be able to handle this case ( 0 , 1 , 2 , 3 ). To work around this, we opted to combine familiar-to-us infrastructure with Pangeo-Forge's core and to use the right tool for the right job.
Why use this dataset? What uses are there for the data?
ERA5 can be used in many applications. It can be used to train ML models that predict the impact of weather on different phenomena. ERA5 data could also be used to train and evaluate ML models that forecast the weather. The data could be used to compute climatologies, or the average weather for a region over a given period of time. ERA5 data can be used to visualize and study historical weather events, such as Hurricane Sandy.
Where should I be cautious? What are the limitations of the dataset?
Mumbai, India
ERA5 Topography
GMTED2010 Topography
It is important to remember that a reanalysis is an estimate of what the weather was, it is not guaranteed to be an error-free estimate. There are several areas where the novice reanalysis user should be careful.
First, the user should be careful using reanalysis data at locations near coastlines. The first figure shows the fraction of land (1 for land, 0 for ocean) of ERA5 grid points at different coastal locations. This is important because the land-surface model used in ERA5 tries to blend in the influence of water with the influence of land based on this fraction. The most visible effect of this blending is that as the fraction of land decreases, the daily variation in temperature will also decrease. Looking at the first figure, there are sharp changes in the fraction of land between neighboring grid cells so there could be differences in daily temperature range that might not be reflected in actual weather observations.
The user should also be careful when using reanalysis data in areas with large variations in topography. The second figure is a plot of ERA5 topography around Mount Everest compared with GMTED2010 topography. The ERA5 topography is completely missing the high peaks of the Everest region and missing most of the structure of the mountain valleys. Topography strongly influences temperature and precipitation rate, so it is possible that ERA5’s temperature is too warm and ERA5’s precipitation patterns could be wrong as well.
ERA5’s precipitation variables aren’t directly constrained by any observations, so we strongly encourage the user to check ERA5 against observed precipitation (for example, Wu et al., 2022 ). A study comparing reanalyses (not including ERA5) against gridded precipitation observations showed striking differences between reanalyses and observation Lisa V Alexander et al 2020 Environ. Res. Lett. 15 055002 .
Can I use the data for {research,commercial} purposes?
Yes, you can use our ERA5 data according to the terms of the Copernicus license .
Researchers, see the next section for how to cite this work.
Commercial users, please be sure to provide acknowledgement to the Copernicus Climate Change Service according to the Copernicus Licence terms.
How to cite this work
TODO( #6 ): Please use our soon-to-come citation.
In addition, please cite the ERA5 dataset accordingly:
Hersbach, H., Bell, B., Berrisford, P., Hirahara, S., Horányi, A., Muñoz‐Sabater, J., Nicolas, J., Peubey, C., Radu, R., Schepers, D., Simmons, A., Soci, C., Abdalla, S., Abellan, X., Balsamo, G., Bechtold, P., Biavati, G., Bidlot, J., Bonavita, M., De Chiara, G., Dahlgren, P., Dee, D., Diamantakis, M., Dragani, R., Flemming, J., Forbes, R., Fuentes, M., Geer, A., Haimberger, L., Healy, S., Hogan, R.J., Hólm, E., Janisková, M., Keeley, S., Laloyaux, P., Lopez, P., Lupu, C., Radnoti, G., de Rosnay, P., Rozum, I., Vamborg, F., Villaume, S., Thépaut, J-N. (2017): Complete ERA5: Fifth generation of ECMWF atmospheric reanalyses of the global climate. Copernicus Climate Change Service (C3S) Data Store (CDS). (Accessed on DD-MM-YYYY) Hersbach et al, (2017) was downloaded from the Copernicus Climate Change Service (C3S) Climate Data Store. We thank C3S for allowing us to redistribute the data. The results contain modified Copernicus Climate Change Service information 2022. Neither the European Commission nor ECMWF is responsible for any use that may be made of the Copernicus information or data it contains.
License
This is not an official Google product.
Copyright 2022 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
About
Recipes for reproducing Analysis-Ready & Cloud Optimized (ARCO) ERA5 datasets.
Topics