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

Home » Public Forums » archive » Re: reading multiple HDF files
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 multiple HDF files [message #61333 is a reply to message #61332] Tue, 15 July 2008 06:41 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Juggernaut writes:

> You should check out Liam Gumley's hdf_sd_varread and hdf_sd_vardir.
> Then you can do something like...
>
> varnames = hdf_sd_vardir(hdfid)
>
> index = hdf_sd_nametoindex(hdfid, varnames[i]) ;- 'i' is whichever
> index of varnames your Cloud_Fraction is
>
> varid = hdf_sd_select(hdfid, index)
>
> hdf_sd_getdata, varid, data ;- Your cloud_fraction data will be
> stored in 'data' for you to use
>
> hdf_sd_endaccess, varid

Yes, I second this. The program HDFRead you found on my web page
is *not* designed to read any HDF file, but just the one created
with HDFWrite. You can use the HDF_BROWSER if you have to, to
learn the name of your cloud_fraction variable, then use Liam's
routines to read the data you need from your files.

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Where O Where Di My Pointer Go?
Next Topic: IDLWave opens new frame on error/stop

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

Current Time: Wed Oct 08 15:39:34 PDT 2025

Total time taken to generate the page: 0.00373 seconds