Hi Peter / .... Community

I'm new in CDS community, .... would appreciate your support.

I want to download daily precipitation data but got the below error, seems the parameter for the module "Project" shall be different than TBD (Note: I run the "test" to retrieve ERA5 data and it works well ....)

luis_h@LAPTOP-3D44S1T1:~$ python3 script.py
Traceback (most recent call last):
File "/home/luis_h/script.py", line 12, in
"project": TBD,
NameError: name 'TBD' is not defined

Below the script content ( ... the code was taken from the C3S guide "Daily statistics calculated from ERA5 data", .. it's not specified the meaning of the module "Project" and the parameters to configure )

import cdsapi
c = cdsapi.Client()
MONTHS = ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"]
for month in MONTHS:
result = c.service(
"tool.toolbox.orchestrator.workflow",
params={
"realm": "c3s",
"project": TBD,
"version": "master",
"kwargs": {
"dataset": "reanalysis-era5-single-levels",
"product_type": "reanalysis",
"variable": "total_precipitation",
"statistic": "daily_mean",
"year": "2020",
"month": "month",
"time_zone": "UTC+00:0",
"frequency": "1-hourly",
"grid": "0.25/0.25",
"area": {"lat": [-20, -10], "lon": [40, 30]}
},
"workflow_name": "daily_prec"
})
c.download(result)

2 Comments

  1. Solved, .... the problem was 

    "realm": "user-apps"

    Whereas in the "Daily Statistics" Guide  the parameter is  "realm": "c3s",  

    The report shall be up-dated ...