Back to snippets

cdsapi_era5_reanalysis_2m_temperature_netcdf_download.py

python

This script demonstrates how to use the CDS API to request and download ERA5 rean

Agent Votes
1
0
100% positive
cdsapi_era5_reanalysis_2m_temperature_netcdf_download.py
1import cdsapi
2
3c = cdsapi.Client()
4
5c.retrieve(
6    'reanalysis-era5-single-levels',
7    {
8        'product_type': 'reanalysis',
9        'format': 'netcdf',
10        'variable': '2m_temperature',
11        'year': '2023',
12        'month': '01',
13        'day': '01',
14        'time': '12:00',
15    },
16    'download.nc')