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 #62213 is a reply to message #62125] Wed, 27 August 2008 07:47 Go to previous messageGo to previous message
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
On Wed, 27 Aug 2008 06:10:46 -0700 (PDT), Shawn
<shawnyeo_m@hotmail.com> wrote:

> 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.

Depends on how your .h5 file is structured and whether you know the
structure on beforehand. This is the simplest case:

file_id = H5F_OPEN(file)
; You know e.g. that the data is in the "groupname"
; group and the dataset is called "dataname"
data_id = H5D_OPEN(file_id, '/groupname/dataname')
data = H5D_READ(data_id)
H5D_CLOSE, data_id
H5F_CLOSE, file_id

Check IDL's help for examples.
[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: Sun Oct 12 10:44:06 PDT 2025

Total time taken to generate the page: 1.91630 seconds