Re: HDF: accessing VData in VGroup [message #68046] |
Tue, 22 September 2009 06:22 |
liamgumley
Messages: 74 Registered: June 2005
|
Member |
|
|
On Sep 22, 4:16 am, Klemens <jokulhl...@web.de> wrote:
> Thanks Liam ! The routines are very helpful and now I am able to
> retrieve all datasets. But I am still missing information about the
> structure of the HDF-File. I do not know which variable is stored in
> which VGroup. As I can see this information is not stored as an
> individual attribute for each variable, so I need the linkage coming
> from the VGroups ? Also I do not know if there is also an internal
> hierachy of VGroups like in the CloudSAT files.
>
> Do you have any ideas about that ?
>
> Thanks for your help !
>
> Klemens
Go to the following FTP site and download all the .pro files:
ftp://ftp.ssec.wisc.edu/pub/gumley/hdfdump/
Now try the following in IDL
hdfdump, 'myfile.hdf'
You should get a complete listing of the contents of the file,
including the Vdata hierarchy. Note that this works for HDF4 files
only.
Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
|
|
|
Re: HDF: accessing VData in VGroup [message #68049 is a reply to message #68046] |
Tue, 22 September 2009 02:16  |
Klemens
Messages: 18 Registered: April 2007
|
Junior Member |
|
|
Thanks Liam ! The routines are very helpful and now I am able to
retrieve all datasets. But I am still missing information about the
structure of the HDF-File. I do not know which variable is stored in
which VGroup. As I can see this information is not stored as an
individual attribute for each variable, so I need the linkage coming
from the VGroups ? Also I do not know if there is also an internal
hierachy of VGroups like in the CloudSAT files.
Do you have any ideas about that ?
Thanks for your help !
Klemens
|
|
|
Re: HDF: accessing VData in VGroup [message #68065 is a reply to message #68049] |
Mon, 21 September 2009 06:46  |
liamgumley
Messages: 74 Registered: June 2005
|
Member |
|
|
On Sep 21, 3:27 am, Klemens <jokulhl...@web.de> wrote:
> Hello together,
>
> I am struggeling with reading VData from a VGroup in an HDF4-File
> (CloudSat-Data).
> I get the number of entries in the VGroup by HDF_VG_GETINFO and then
> try to loop over all entries.
> From there on it is not clear to me how to get first the IDs of the
> group and then to retrieve attributes and data.
> I tried using HDF_VD_GetID and HDF_VD_ATTACH but it is not clear to me
> how to derive the IDs of the VData from the VGroup.
>
> Thanks for your help in advance !
>
> Klemens
Check out the HDF_VD_* routines at this site:
http://www.gumley.com/PIP/Free_Software.html
Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
|
|
|