Reading .h5 files into IDL [message #62125] |
Wed, 27 August 2008 06:10  |
Shawn[1]
Messages: 5 Registered: August 2008
|
Junior Member |
|
|
Hi all,
I got a problem with .h5 files and IDL. I am currently trying to read
data from my .h5 files into a GUI i created using IDL. May i know what
routines i could use for this? My .h5 file is of a matrix of 200x
200x60.
|
|
|
|
Re: Reading .h5 files into IDL [message #62567 is a reply to message #62125] |
Sun, 14 September 2008 20:18  |
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.")
|
|
|