When I run the CDS API in Pycharm to download 2D wave spectrum data, I can directly download the data.
The code is as follows:
#!/usr/bin/env python
import cdsapi
c = cdsapi.Client()
c.retrieve(“reanalysis-era5-complete”, {
“class”: “ea”,
“date”: “2020-04-01”,
“direction”: “1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24”,
“domain”: “g”,
“expver”: “1”,
“frequency”: “1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30”,
“param”: “251.140”,
“stream”: “wave”,
“time”: “00:00:00/01:00:00/02:00:00/03:00:00/04:00:00/05:00:00/06:00:00/07:00:00/08:00:00/09:00:00/10:00:00/11:00:00/12:00:00/13:00:00/14:00:00/15:00:00/16:00:00/17:00:00/18:00:00/19:00:00/20:00:00/21:00:00/22:00:00/23:00:00”,
“type”: “an”
}, “output”)
#!/usr/bin/env python
import cdsapi
c = cdsapi.Client()
c.retrieve(“reanalysis-era5-complete”, {
“class”: “ea”,
“date”: “2020-04-01”,
“direction”: “1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24”,
“expver”: “1”,
“frequency”: “1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30”,
“param”: “251.140”,
“stream”: “wave”,
“time”: “00:00:00/01:00:00/02:00:00/03:00:00/04:00:00/05:00:00/06:00:00/07:00:00/08:00:00/09:00:00/10:00:00/11:00:00/12:00:00/13:00:00/14:00:00/15:00:00/16:00:00/17:00:00/18:00:00/19:00:00/20:00:00/21:00:00/22:00:00/23:00:00”,
“type”: “an”,
‘area’ : ‘26/104/6/124’,
‘grid’ : ‘1.0/1.0’,
‘format’ : ‘netcdf’,
}, “ERA5-output-subarea.nc”)
But when I modified some parameters in the code and ran it, there was no download information. What is the reason for this?