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 #93024 is a reply to message #93015] Mon, 11 April 2016 16:06 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 4/10/16 6:50 AM, deathknight wrote:
>
>> Yes, you have to specify the variable/attribute that you want:
>>
>> IDL> var = mg_h5_getdata('E:\netcdf4.nc', 'group/myvar')
>> IDL> attr = mg_h5_getdata('E:\netcdf4.nc', 'group/myvar.attr')
>>
>
> Hi,
>
> I tried, but still got error like this:
>
> IDL> result=mg_h5_getdata('E:\netcdf4.nc', 'varname')
> % H5F_OPEN: unable to open file: Object Name:"E:\netcdf4.nc"
> % Error occurred at: MG_H5_GETDATA 446 D:\Program Files (x86)\ITT\IDL71\lib\hdf5\mg_h5_getdata.pro
> % $MAIN$
> % Execution halted at: $MAIN$
>
> Where did I go wrong?
>
> Thank you very much!
>

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

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 20:03:56 PDT 2025

Total time taken to generate the page: 0.00477 seconds