Trouble connecting to download source? Using downloaded file CDS API ERA5

Hi there, I'm downloading a small test subset of total precip from ERA5 through CDS API. I think that my download is working properly, however, when I try to use the netcdf4 dataset command to open the file through opendap, I get an error saying the file cannot be found. Am I not opening the download correctly? I just started using this source very recently and I realize this could also be a python/netcdf4 issue (just trying to figure out where to troubleshoot). Code below – 

In[3]: import cdsapi

c = cdsapi.Client()


2019-08-13 17:55:30,327 INFO Sending request to
2019-08-13 17:55:30,770 INFO Request is completed
2019-08-13 17:55:30,771 INFO Downloading to (142.6M)
2019-08-13 17:55:47,135 INFO Download rate 8.7M/s
Out[3]: Result(content_length=149516548,content_type=application/x-netcdf,location=

In[4]: from netCDF4 import Dataset
data = Dataset('')

Out[4]: from netCDF4 import Dataset
data = Dataset('')
syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET or SCAN_ERROR
context: <html^><head><title>404 Not Found</title></head><body><center><h1>404 Not Found</h1></center><hr><center>nginx/1.16.0</center></body></html>
Traceback (most recent call last):

File "<ipython-input-4-5af935da6a02>", line 2, in <module>
data = Dataset('')

File "netCDF4/_netCDF4.pyx", line 2135, in netCDF4._netCDF4.Dataset.__init__

File "netCDF4/_netCDF4.pyx", line 1752, in netCDF4._netCDF4._ensure_nc_success

OSError: [Errno -90] NetCDF: file not found: b''

Hi Rachel,

When you finished running your Python script, the NetCDF file should be available on your local disk. Please open it as you wish. The URL you were using below points to the cache on the CDS. And data in the cache could be deleted at any time.

I hope this helps.



Thank you, Xiaobo. I did not properly locate the file my first time but redid the download in the proper directory/with a new name.

Is everything working fine now?

yes, thank you for your replies! 

You are welcome!