Description Usage Arguments Value Note Examples
Function to retrieve data from the Copernicus Climate Change Service (C3S) Climate Data Store
1 | cds_retrieve(dataset, request, target = "", request_id = NA)
|
dataset |
Dataset to extract data from. |
request |
JSON string containing request parameters. |
target |
Filename to save data to. |
request_id |
Previous request ID returned by function. |
List containing request ID and name of data file downloaded, NA returned if timeout
API Key read from ~/.cdsapirc
1 2 3 4 5 6 7 8 9 10 11 | dataset <- "reanalysis-era5-single-levels"
request <- "{
'variable': 'mean_sea_level_pressure',
'grid': ['0.1', '0.1'], 'product_type': 'reanalysis',
'year': '2010', 'month': '08', 'day': '15', 'time': '12:00',
'area': '45.0/-15.0/70.0/25.0',
'format': 'netcdf'
}"
result <- cds_retrieve( dataset, request)
# If timeout the following can be used to try again without generating new request
result <- cds_retrieve( dataset, request, request_id = result$request_id)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.