Reading .h5 files into IDL

This is a discussion on Reading .h5 files into IDL within the Idl-pvwave forums in Programming Languages category; 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....

Go Back   Application Development Forum > Programming Languages > Idl-pvwave

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-27-2008, 09:10 AM
Shawn
Guest
 
Default Reading .h5 files into IDL

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.
Reply With Quote
  #2  
Old 08-27-2008, 09:38 AM
David Fanning
Guest
 
Default Re: Reading .h5 files into IDL

Shawn writes:

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


I think you will have better luck if you describe your
problem more explicitly. Otherwise, it looks like a
quagmire. :-)

http://www.catb.org/~esr/faqs/smart-questions.html

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.")
Reply With Quote
  #3  
Old 08-27-2008, 10:47 AM
Wox
Guest
 
Default Re: Reading .h5 files into IDL

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.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:24 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.