The R package ag5Tools is a toolbox to download and extract data from the “Agrometeorological indicators from 1979 to present derived from reanalysis” dataset (AgERA5).
The download function provides programmatic access to the Copernicus Climate Data Store to download AgERA5 data.
The ag5Tools package does not distribute data, it only provides access to Climate Data Store through the python cdsapi.
For specific details about the license agreement 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
To download AgERA5 data you should first register at the Climate Data Store and get your API key. Please follow the instructions in: https://cds.climate.copernicus.eu/api-how-to
You only need to create a file to store the API key, following the instructions from: https://cds.climate.copernicus.eu/api-how-to. ag5Tools internally handles all the environment setup, including the Python requirements (i.e., install Python and cdsapi).
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 ag5Tools package relies on the functionality available from other open source packages.
Please be aware that ag5Tools is released under MIT license, please find details in the MIT license document
Please note that the ag5Tools project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.