Using python to download (via cdsapi) AgERA5 data from Agrometeorological indicators from 1979 to present derived from reanalysis , “statistic”: [“24_hour_mean”] can used for several variables but for “solar_radiation_flux” as it is a daily accumulation I assume (and there is no “24_hour_sum” option). Can I set “statistic”: to something else (nothing?) so it don’t mess up the script ( as the same script is used for different variables). I tried “statistic”: [“”] but I do not work. Suggestions?
Example without “statistic”:
import cdsapi
dataset = “sis-agrometeorological-indicators”
request = {
“variable”: “solar_radiation_flux”,
“year”: [“1979”],
“month”: [“01”],
“day”: [“01”],
“version”: “2_0”,
“area”: [90, -180, -90, 180]
}
client = cdsapi.Client()
client.retrieve(dataset, request).download()
Example with “statistic”:
import cdsapi
dataset = "sis-agrometeorological-indicators"
request = {
"variable": "vapour_pressure",
"statistic": ["24_hour_mean"],
"year": ["1979"],
"month": ["01"],
"day": ["01"],
"version": "2_0",
"area": [90, -180, -90, 180]
}
client = cdsapi.Client()
client.retrieve(dataset, request).download()
Thanks
/Jonas