[gdal-dev] How to get some special metadata of HDF5 Cosmo-Skymed file

Antonio Valentino antonio.valentino at tiscali.it
Sun Jul 10 10:35:59 EDT 2011


Hi RSyaoxin,

Il 10/07/2011 16:08, RSyaoxin ha scritto:
> Hi,all.
>       I want to calibrate the Cosmo-Skymed radar data, and I need some
> parameters, such as "Calibration Constant","Rescaling Factor","Reference
> Incidence Angle" and so on.However,I'm a beginner,I don't know how to get
> HDF5 metadata,Somebody can give me a tutorial in c or c++?
>       Furthermore,I used HDFView to see the file's metadata and found that
> these information is stored in the metadata corresponding to the "root" of
> the file, I try to use gdalinfo to get the file's metadata  and can't find
> it.That's why?
> 
>       Subdatasets:
> 
> SUBDATASET_1_NAME=HDF5:"D:\CSKS3_GEC_B_WR_01_VV_RD_SF_20100720100133_20100720100148.h5"://MBI
>   SUBDATASET_1_DESC=[9028x12156] //MBI (16-bit unsigned integer)
>  
> SUBDATASET_2_NAME=HDF5:"D:\CSKS3_GEC_B_WR_01_VV_RD_SF_20100720100133_20100720100148.h5"://QLK
>   SUBDATASET_2_DESC=[902x1215] //QLK (8-bit unsigned character)
> 
> I hope to get some help.Thank you!
> Kind regards.

The HDF5 driver has been recently updated to improve metadata management:

http://trac.osgeo.org/gdal/changeset/22517
http://trac.osgeo.org/gdal/ticket/2412

The problem you are experimenting should be fixed in trunk but you need
to re-build GDAL from sources to get it.

regards

-- 
Antonio Valentino


More information about the gdal-dev mailing list