problem with netCDF4 OpenDAP

Tom P werotizy at freent.dd
Thu Aug 13 12:32:38 CEST 2015

I'm having a problem trying to access OpenDAP files using netCDF4.
The netCDF4 is installed from the Anaconda package. According to their 
changelog, openDAP is supposed to be supported.


Here's some code:

url = 
nc = netCDF4.Dataset(url)

I get the error -
netCDF4/_netCDF4.pyx in netCDF4._netCDF4.Dataset.__init__ 

RuntimeError: NetCDF: file not found

However if I download the same file, it works -
url = '/home/tom/Downloads/'
nc = netCDF4.Dataset(url)
print nc
  . . . .

Is it something I'm doing wrong?

More information about the Python-list mailing list