Hello,
I've downloaded a file using the OPeNDAP Dataset Access Form, with the following Data URL:
http://sift.pmel.noaa.gov/thredds/dodsC/uncompressed/ki_026_a_ha.nc? lon[0:1:645],lat[0:1:719],time[0:10:1440],ha[0:10:1440][0:1:719][0:1:645]
and the data (seems to) download without problem. The resulting file size is about 263MB. However, I cannot read this file - which I assume is a standard netCDF file - regardless of the software I use.
I've tried Matlab's function
nc = netcdf.open( 'ki_026_a_ha.nc', 'NC_NOWRITE' )
and get the error
Unable to open netCDF file, library error message "NetCDF: Unknown file format"
I tried the third party functions from nctoolbox
nc = ncdataset( 'ki_026_a_ha.nc' )
with the error
java.io.IOException: Cant read ki_026_a_ha.nc: not a valid CDM file.
I tried to open the file in IDV, and got the error message
There was an error loading the data:
Error creating data source:file.grid with: C:\Work\Projects\Tsunami\MOSTdata\ki_026_a_ha.nc
Grid data source failed making data set: C:\Work\Projects\Tsunami\MOSTdata\ki_026_a_ha.nc
Cant read C:/Work/Projects/Tsunami/MOSTdata/ki_026_a_ha.nc: not a valid CDM file.
I've made the same attempts with a similar data set, with the same results.
Any suggestion? Thanks, and best regards,
-- Mark
_______________________________
Mark Prater
Research Analyst
WeatherPredict Consulting, Inc.
401-792-4672 (Direct)
Thanks Dan!I naively thought that the *.nc file was a binary netCDF file. Actual the file has the suffix *.nc.dods - is there a standard mechanism to read/load/unpack those files? Or is that question best left to the support@unidata people?
I did download loaddap from the OPenDAP site, but am struggling to get that to work. There is no detailed information on how to use it, and placing the installation directory in my Matlab path causes the loaddap.m file (which is nothing but an error-filled function statement followed by comments) to be executed, rather than the loaddap.mexw32 file. I *think* this may be because the mex file is 32bit, while my matlab is 64bit (that is, maybe I require a loaddap.mexw64?).The original data is very large (~2.6 GB), so I was using the data access form to subsample the data down to a size for easier analysis.Anyway, thanks for your detailed response,Best regards,-- Mark