comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » NetCDF4 problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: NetCDF4 problem [message #93119 is a reply to message #93114] Thu, 28 April 2016 23:40 Go to previous messageGo to previous message
DK is currently offline  DK
Messages: 12
Registered: June 2015
Junior Member
> This indicates the file does exist (yeah!), but can't be opened by the
> HDF 5 library. Perhaps is a classic netCDF file? i.e., version < 4. Can
> you open it using the standard netCDF library?
>
> IDL> filename = 'E:\netcdf4.nc'
> IDL> file_id = ncdf_open(filename)
> IDL> help, file_id
>

Hi Mike, the file I tried was download from the NECP website ( http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalys is.html) resently, and it said that "We have transitioned the data files from netCDF3 to netCDF4-classic format on Monday Oct 20th, 2014." on this webpage. So I am sure the file is not a classic netCDF3 file.

I also tried the old way and got the error "NC_ERROR=-51"

IDL> filename='E:\netcdf4.nc'
IDL> cdfid=ncdf_open(filename)
% Loaded DLM: NCDF.
% NCDF_OPEN: Unable to open the file "E:\netcdf4.nc". (NC_ERROR=-51)
% Execution halted at: $MAIN$

Really appreciate your kindly help and patience.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: READ array from a file
Next Topic: Re: Problems on the Savitzky-Golay smoothing filter

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:56:34 PDT 2025

Total time taken to generate the page: 0.00399 seconds