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.

__________

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

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

_______________________

import cdsapi
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

Posts les plus consultés de ce blog

Standard error from Hessian Matrix... what can be done when problem occurs

Install treemix in ubuntu 20.04

Multivariable analysis and correlation of iconography