Extract data from HDF VGroup [message #37743] |
Wed, 21 January 2004 09:06 |
ily_Niort
Messages: 2 Registered: January 2004
|
Junior Member |
|
|
Here is the characteristic of my HDF file :
------------------------------------------------------------ -------------------
Vgroup # # of Members Name Class
--------- ---------------------------------------------------------
0 1 Section 1.0 - File H
1 1 Section 2.0 - Produc Product Identificati
2 1 Section 3.0 - File D
3 4 Section 4.0 - Event Event Identification
4 10 Section 5.0 - Altitu Altitude-based Data
5 1 Section 6.0 - Aeroso Aerosol Information
6 1 Section 6.1 - Aeroso Aerosol Extinction p
7 1 Section 6.2 - Aeroso Aerosol Extinction R
8 1 g3a.ssp.00364210v02. CDF0.0
How to extract data from Vgroup #4 ?
I used HDF_VG_ATTACH, HDF_VG_LONE .... no results
Here is my program :
X=HDF_VG_LONE(file_id)
IF X(0) EQ-1 THEN $
PRINT, "No Lone VGroups" ELSE PRINT, "Lone VGroups:", X
help, X
for i=0,8 do begin
Result = HDF_VG_ATTACH(file_id, X(i), /READ)
HDF_VG_GETINFO, Result , CLASS= class,NAME= name, NENTRIES=nent ,
REF=refs, TAG=tags
print, i, class, ' NAME=', name, ' NENTRIES=', nent, ' REF=',
refs, ' TAG=',tags
HDF_VG_DETACH, Result
endfor
Print, 'Section 4.0 - Event Identification'
; lecture de "Section 2.0 - Product Identification"
Vdata_id = HDF_VD_FIND(file_id, 'Section 4.0 - Event Identification')
But it does not works....
I would be happy if you have any idea about it !!!
|
|
|