Re: Reading a subset of HDF 5 file [message #61017] |
Fri, 27 June 2008 16:36 |
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  |
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.
|
|
|