Users can download CDS data using the ecmwfr package in R with “cds” as the "service" although it is not supported by C3S. In the examples below, "KEY" and "UID" are your CDS API key and UID respectively.
PLEASE NOTE THAT SINCE THE MOVE TO THE NEW CDS IN OCTOBER 2024, "UID" IS NO LONGER REQUIRED BY THE CDS API.-YOU SHOULD THEREFORE MAKE SURE THAT YOUR R PACKAGE TAKES THIS CHANGE INTO ACCOUNT AND IS UP TO DATE
Please have a look at the following example to download ERA5 2m temperature for a selected area in netCDF format:
|
|
This would return the data to a file called download_e5_single.nc.
The code below retrieves ERA5pressure level temperature data at 850hpa for a selected area in netCDF format:
|
|