The R package agera5 is a toolbox to download and extract data from the "Agrometeorological indicators from 1979 to present derived from reanalysis" dataset (AgERA5).
https://cds.climate.copernicus.eu/cdsapp#!/dataset/10.24381/cds.6c68c9bb?tab=overview
The download function provides programmatic access to the Copernicus Climate Data Store to download AgERA5 data.
The agera5 package does not distribute data, it only provides access to Climate Data Store through the python cdsapi.
For specific details about the license agreenment on downloading and using the data please check the license at: https://cds.climate.copernicus.eu/api/v2/terms/static/licence-to-use-copernicus-products.pdf
devtools::install_github("Carlitosh/AgERA5", build_vignettes = TRUE)
To download AgERA5 data you should first install the Climate Data Store API. Please follow the instructions in: https://cds.climate.copernicus.eu/api-how-to
The following example downloads daily 2m_temperature data for year 2015
ag5_download(variable = "2m_temperature",
statistic = "night_time_minimum",
day = "all",
month = "all",
year = 2015,
path = "C:/custom_target_folder"
)
The agera5 package relies on the functionality available from other open source packages.
-
The Python cdsapi
-
The R package reticulate is used to access the Python cdsapi functions from R.
-
The R package terra is used to extract data from nc files.
-
The R package fs is used for efficiently search and list files.
Please be aware that is still a development version of the package. You are free to use it for your own purposes with no warranty.
- https://confluence.ecmwf.int/display/COPSRV/Call+a+service+with+the+CDS+API
- https://cds.climate.copernicus.eu/#!/home
- https://nordicesmhub.github.io/climate-data-tutorial/05-toolbox/index.html
- https://cds.climate.copernicus.eu/toolbox/doc/tutorials/1_getting_started_with_the_cds_toolbox/1_getting_started_with_the_cds_toolbox.html#
- https://github.com/ecmwf/cdsapi
- https://cds.climate.copernicus.eu/toolbox/doc/gallery/3_extract_time_series_and_plot_graph.html