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 #93114 is a reply to message #93097] Thu, 28 April 2016 13:41 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 4/26/16 9:00 PM, deathknight wrote:
>
>> Just to check, could you do:
>>
>> IDL> filename = 'E:\netcdf4.nc'
>> IDL> print, file_test(filename)
>> IDL> file_id = h5f_open(filename)
>> IDL> help, file_id
>>
>
> Sorry for not getting back to you earlier. The results are as follows:
>
> IDL> filename='E:\netcdf4.nc'
> IDL> print, file_test(filename)
> 1
> IDL> file_id=h5f_open(filename)
> % Loaded DLM: HDF5.
> % H5F_OPEN: unable to open file: Object Name:"E:\netcdf4.nc"
> % Execution halted at: $MAIN$
> IDL> help, file_id
> FILE_ID UNDEFINED = <Undefined>
>
> Is that the problem of my IDL version? Thanks!
>

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

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
[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:58:05 PDT 2025

Total time taken to generate the page: 0.00241 seconds