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

Home » Public Forums » archive » h5_parse without READ_DATA
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: h5_parse without READ_DATA [message #87444 is a reply to message #87443] Mon, 03 February 2014 12:36 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 2/3/14, 11:39 AM, simulana@gmail.com wrote:
> My problem is probably a little esoteric, but I hope someone has
> tried this before and can help me. I'm trying to read in and use a
> VERY large HDF5 file. Previously when my datasets were smaller, I
> was using h5_parse with the /READ_DATA tag. SO convenient and
> helpful. But now I need to read in less than the full file. Not
> only is h5_parse taking over 7 minutes to complete, but having all
> that data in memory is forcing my subsequent rem_dups, sorts, and
> mask_locates to go into kswapd. Ugh.
>
> So here's the question - can I use h5_parse without /READ_DATA to get
> the structure and then use the other h5 read commands on those
> structure IDs to extract the data? How would this look with an
> example h5d_read?
>

I have some routines to deal with HDF5 files that allow you to pull out
a single variable (or a part of a variable):

https://github.com/mgalloy/mglib/tree/master/src/hdf5

MG_H5_GETDATA should do what you want:

IDL> data = mg_h5_getdata(filename, 'path/to/variable')

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
[Message index]
 
Read Message
Read Message
Previous Topic: logarithmic colorbar
Next Topic: accessing IDL internal (aka "built-in") routines

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

Current Time: Sat Oct 11 22:25:46 PDT 2025

Total time taken to generate the page: 0.72130 seconds