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

Home » Public Forums » archive » Reading .h5 files into IDL
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: Reading .h5 files into IDL [message #62567 is a reply to message #62125] Sun, 14 September 2008 20:18 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Shawn writes:

> I need some help on reading .h5 files.
> I am using a GUI to read in a .h5 file.
>
>
> My dataset is name a CAPPI
> This is the routines which i use:
>
> file_ID = H5F_OPEN (file_path)
> dataset_ID = H5D_OPEN(file_ID,CAPPI) ----- line 2
> data_space = h5d_get_space(dataset_ID)
> result_space = h5s_create_simple([200,200,30])
> vol_data = H5D_READ( dataset_ID)
> h5s_close, result_space
> h5s_close, data_space
> h5d_close, dataset_ID
> h5f_close, file_ID
>
> But whenever i run the program , i cannot seem to get get pass line
> 2 , It gives me an error mesage saying :H5D_OPEN: String expression
> required in this context: CAPPI.
>
> Can someone tell me what mistake or things have i left out.

I would try putting quotes around CAPPI (I.e., "CAPPI")
to make it a string. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Reading .h5 files into IDL
Next Topic: Maximum index for arrays?

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

Current Time: Sat Oct 11 07:09:07 PDT 2025

Total time taken to generate the page: 0.79827 seconds