Error "NetCDF: NC_UNLIMITED in the wrong index" when reading profile netcdf file from URL
-
Reading netcdf file of profiles from thredds URL :
import netCDF4 as nc dataset = "http://.../thredds/dodsC/REEFTEMPS/JAMSTEC/profile/OS_CECILA17_201402_TEMP_0A_CT.nc" nc_file = nc.Dataset(dataset)
Is raising error :
OSError: [Errno -47] NetCDF: NC_UNLIMITED in the wrong index: b'http://.../thredds/dodsC/REEFTEMPS/JAMSTEC/profile/OS_CECILA17_201402_CNDC_0A_CT.nc'
-
While reading from path:
import netCDF4 as nc dataset = "ecport/REEFTEMPS/JAMSTEC/profile/OS_CECILA17_201402_TEMP_0A_CT.nc" nc_file = nc.Dataset(dataset)
Is working perfectly.