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

Home » Public Forums » archive » Re: Reading a subset of HDF 5 file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Reading a subset of HDF 5 file [message #61017] Fri, 27 June 2008 16:36
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Jun 27, 3:53 pm, mo...@lanl.gov wrote:
> I have an HDF5 file with three dimensions of data:  8x10000x100
> Basically, I am trying to read in one "page," or a single slice of
> 8x10000.  Is there any way to do this in IDL 7.0?  The documentation
> seems to be missing some commands.

OK, this prompted me to release some code I've been sitting on for
awhile.

Check out:

http://michaelgalloy.com/2008/06/27/some-hdf5-helper-routine s.html

The routine MG_H5_GETDATA will do what you want, something like:

IDL> data = mg_h5_getdata(filename, 'group/dataset', bounds='*, *,
0')

where 'group/dataset' is the path inside the HDF5 file to your
dataset.

Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
Re: Reading a subset of HDF 5 file [message #61020 is a reply to message #61017] Fri, 27 June 2008 15:16 Go to previous message
Juggernaut is currently offline  Juggernaut
Messages: 83
Registered: June 2008
Member
On Jun 27, 5:53 pm, mo...@lanl.gov wrote:
> I have an HDF5 file with three dimensions of data: 8x10000x100
> Basically, I am trying to read in one "page," or a single slice of
> 8x10000. Is there any way to do this in IDL 7.0? The documentation
> seems to be missing some commands.

The command h5_browser() is what I've used to look through an H5
file. This way you can pick and choose what you want from it. There
should be a piece of data with your cube of data in it and just import
it. Beyond this...no idea.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Reading a subset of HDF 5 file
Next Topic: Re: About make dll from cpp file.

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

Current Time: Fri Oct 10 09:19:59 PDT 2025

Total time taken to generate the page: 0.16291 seconds