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 
Return to the default flat view Create a new topic Submit Reply
Re: Reading a subset of HDF 5 file [message #61017] Fri, 27 June 2008 16:36 Go to previous message
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
[Message index]
 
Read Message
Read Message
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 19:13:35 PDT 2025

Total time taken to generate the page: 0.16848 seconds