Read ECMWF data ERA 5
ERA5 is the latest development in the ERA series, and improves significantly on its predecessors by:
- Offering a higher horizontal resolution of 31 km and 137 vertical levels from the surface up to 0.01 hPa (around 80 km);
- Using a more recent and advanced version of the ECMWF IFS model;
- Providing hourly estimates of atmospheric variables;
- Providing a consistent representation of uncertainties for these variables;
- Using more satellite observations in the data assimilation.
Here are some information to access this database using python batch
Please visit http://climate.copernicus.eu/climate-reanalysis for more information including documentation and guidelines on how to download the data.
https://codes.ecmwf.int/grib/param-db/139
Layer 1: 0 - 7cm
Layer 2: 7 - 28cm
Layer 3: 28 - 100cm
Layer 4: 100 - 289cm
Soil temperature is set at the middle of each layer, and heat transfer is calculated at the interfaces between them. It is assumed that there is no heat transfer out of the bottom of the lowest layer.
__________
June 2025
The new ECMWF methodology cannot use R directly. The solution I found to download data in MacOSX was:
https://cds.climate.copernicus.eu/datasets/reanalysis-era5-single-levels?tab=overview
To install the CDSAPI using pip, the solution is to create a virtual environnement of python:
For example, here the virtual environment is py_envs:
python3 -m venv ~/py_envs
After the environment is created, you need doing only:
source ~/py_envs/bin/activate
# Within this environment, I can install the cdsapi using pip:
pip install cdsapi
# And then I can run the python code downloaded from https://cds.climate.copernicus.eu/datasets/reanalysis-era5-single-levels?tab=overview
For example here the code is store in loadFl:
cat loadFl
_______________________
dataset = "reanalysis-era5-single-levels"
request = {
"product_type": ["reanalysis"],
"variable": ["2m_temperature"],
"year": [
"2019", "2020", "2021",
"2022", "2023", "2024"
],
"month": [
"01", "02", "03",
"04", "05", "06",
"07", "08", "09",
"10", "11", "12"
],
"day": [
"01", "02", "03",
"04", "05", "06",
"07", "08", "09",
"10", "11", "12",
"13", "14", "15",
"16", "17", "18",
"19", "20", "21",
"22", "23", "24",
"25", "26", "27",
"28", "29", "30",
"31"
],
"time": [
"00:00", "01:00", "02:00",
"03:00", "04:00", "05:00",
"06:00", "07:00", "08:00",
"09:00", "10:00", "11:00",
"12:00", "13:00", "14:00",
"15:00", "16:00", "17:00",
"18:00", "19:00", "20:00",
"21:00", "22:00", "23:00"
],
"data_format": "grib",
"download_format": "zip",
"area": [26.5, -80.25, 26.25, -80]
}
client = cdsapi.Client()
client.retrieve(dataset, request).download()
____________
It can be run using:
python3 loadFl
Then go to:
https://cds.climate.copernicus.eu/datasets/reanalysis-era5-single-levels?tab=overview
Follow the link "Your request"
And you can monitor your request and download the result when it is done.
Commentaires
Enregistrer un commentaire