<div dir='ltr'>
Thanks Alex Mantaut .This document is what I previously reference.Maybe the problem is that I do not know how to extract "Calibration Constant"or"K" parameters.<BR>
Kind Regards <BR><BR> <BR>
<DIV>
<HR id=stopSpelling>
Date: Mon, 11 Jul 2011 07:36:52 -0700<BR>From: <a href="/user/SendEmail.jtp?type=node&node=6571178&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a><BR>To: <a href="/user/SendEmail.jtp?type=node&node=6571178&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a><BR>Subject: RE: How to get some special metadata of HDF5 Cosmo-Skymed file<BR><BR>To be honest I know nothing about radiation calibration... Did you <BR>checked out this document? <BR><BR><A href="http://www.e-geos.it/products/pdf/COSMO-SkyMed-Image_Calibration.pdf" rel="nofollow" target=_blank link="external">http://www.e-geos.it/products/pdf/COSMO-SkyMed-Image_Calibration.pdf</A><BR><BR>other relevant information can be found at: <BR><BR><A href="http://www.e-geos.it/products/cosmo.html" rel="nofollow" target=_blank link="external">http://www.e-geos.it/products/cosmo.html</A><BR><BR>Hope it helps! <BR>Regards <BR><BR>2011/7/11 RSyaoxin <<A href="http:///user/SendEmail.jtp?type=node&node=6571128&i=0" rel="nofollow" target=_blank link="external">[hidden email]</A>>:
<DIV class=ecxshrinkable-quote><div class='shrinkable-quote'><BR>> Thanks Antonio Valentino and Alex Mantaut. I've got these parameters.I have <BR>> a new problem,I need to get the backscatter image,but the calibration result <BR>> is not correct,the calibrated image pixels are all zero.I doubt that my <BR>> method is not correct.Who can give me some information about Cosmo-Skymed <BR>> radiation calibration?How should I do? <BR>> Best regards. <BR>> <BR>> <BR>> ________________________________ <BR>> Date: Mon, 11 Jul 2011 06:55:54 -0700 <BR>> From: [hidden email] <BR>> To: [hidden email] <BR>> Subject: Re: How to get some special metadata of HDF5 Cosmo-Skymed file <BR>> <BR>> Hi RSyaoxin, <BR>> <BR>> Antonio is right, there was an issue on geting the root metadata from <BR>> hdf5 files and is has been fixed in trunk, you will need to recompile <BR>> gdal in order to get that information. <BR>> <BR>> <BR>> After you rebuilt the library, an example on getting the metadata: <BR>> <BR>> #include "gdal_priv.h" <BR>> #include <iostream> <BR>> #include <cstdlib> <BR>> #include <string> <BR>> #include <stdexcept> <BR>> <BR>> using namespace std; <BR>> <BR>> int main(int argc, char **argv) <BR>> { <BR>> GDALDataset *poDataset; <BR>> <BR>> GDALAllRegister(); <BR>> <BR>> //Open the subdataset <BR>> //The filename should be formated like this <BR>> //HDF5:filepath://subdataset <BR>> poDataset = (GDALDataset *) GDALOpen( <BR>> "HDF5:CSKS1_DGM_B_HR_00_HH_RA_SF_20080211191721_20080211191753.h5://S01/SBI", <BR>> GA_ReadOnly ); <BR>> <BR>> if( poDataset == NULL ) <BR>> { <BR>> cout <<"error opening dataset"<<endl; <BR>> } <BR>> else <BR>> { <BR>> //To get the metadata the item name should be formated like this: <BR>> //Every space and group separator should be replaced with <BR>> an underscore (_) <BR>> //I.e. You need item Beam ID from group S01: <BR>> const char *pszBeamId = <BR>> poDataset->GetMetadataItem("S01_Beam_ID"); <BR>> cout << pszBeamId <<endl; <BR>> //I.e. You need item Rescaling factor the root: <BR>> const char *pszRescalingFactor = <BR>> poDataset->GetMetadataItem("Rescaling_Factor"); <BR>> cout << pszRescalingFactor <<endl; <BR>> } <BR>> } <BR>> <BR>> Best regards <BR>> <BR>> <BR>> <BR>> 2011/7/10 Antonio Valentino <[hidden email]>: <BR>>> Hi RSyaoxin, <BR>>> <BR>>> Il 10/07/2011 16:08, RSyaoxin ha scritto: <BR>>>> Hi,all. <BR>>>> I want to calibrate the Cosmo-Skymed radar data, and I need some <BR>>>> parameters, such as "Calibration Constant","Rescaling Factor","Reference <BR>>>> Incidence Angle" and so on.However,I'm a beginner,I don't know how to get <BR>>>> HDF5 metadata,Somebody can give me a tutorial in c or c++? <BR>>>> Furthermore,I used HDFView to see the file's metadata and found <BR>>>> that <BR>>>> these information is stored in the metadata corresponding to the "root" <BR>>>> of <BR>>>> the file, I try to use gdalinfo to get the file's metadata and can't <BR>>>> find <BR>>>> it.That's why? <BR>>>> <BR>>>> Subdatasets: <BR>>>> <BR>>>> <BR>>>> SUBDATASET_1_NAME=HDF5:"D:\CSKS3_GEC_B_WR_01_VV_RD_SF_20100720100133_20100720100148.h5"://MBI <BR>>>> SUBDATASET_1_DESC=[9028x12156] //MBI (16-bit unsigned integer) <BR>>>> <BR>>>> <BR>>>> SUBDATASET_2_NAME=HDF5:"D:\CSKS3_GEC_B_WR_01_VV_RD_SF_20100720100133_20100720100148.h5"://QLK <BR>>>> SUBDATASET_2_DESC=[902x1215] //QLK (8-bit unsigned character) <BR>>>> <BR>>>> I hope to get some help.Thank you! <BR>>>> Kind regards. <BR>>> <BR>>> The HDF5 driver has been recently updated to improve metadata management: <BR>>> <BR>>> <A href="http://trac.osgeo.org/gdal/changeset/22517" rel="nofollow" target=_blank link="external">http://trac.osgeo.org/gdal/changeset/22517</A><BR>>> <A href="http://trac.osgeo.org/gdal/ticket/2412" rel="nofollow" target=_blank link="external">http://trac.osgeo.org/gdal/ticket/2412</A><BR>>> <BR>>> The problem you are experimenting should be fixed in trunk but you need <BR>>> to re-build GDAL from sources to get it. <BR>>> <BR>>> regards <BR>>> <BR>>> -- <BR>>> Antonio Valentino <BR>>> _______________________________________________ <BR>>> gdal-dev mailing list <BR>>> [hidden email] <BR>>> <A href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="nofollow" target=_blank link="external">http://lists.osgeo.org/mailman/listinfo/gdal-dev</A><BR>>> <BR>> <BR>> -- <BR>> -- <BR>> Alex Mantaut <BR>> SUR Emprendimientos Tecnológicos <BR>> <BR>> Perú 345 Piso 5to Oficina "B" (C1067AAG) <BR>> Ciudad de Buenos Aires, Argentina <BR>> Tel. +54 (11) 4342-2976/84 <BR>> [hidden email] <BR>> www.suremptec.com <BR>> _______________________________________________ <BR>> gdal-dev mailing list <BR>> [hidden email] <BR>> <A href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="nofollow" target=_blank link="external">http://lists.osgeo.org/mailman/listinfo/gdal-dev</A><BR>> <BR>> <BR>> ________________________________ <BR>> If you reply to this email, your message will be added to the discussion <BR>> below: <BR>> <A href="http://osgeo-org.1803224.n2.nabble.com/How-to-get-some-special-metadata-of-HDF5-Cosmo-Skymed-file-tp6567852p6571000.html" rel="nofollow" target=_blank link="external">http://osgeo-org.1803224.n2.nabble.com/How-to-get-some-special-metadata-of-HDF5-Cosmo-Skymed-file-tp6567852p6571000.html</A><BR>> To unsubscribe from How to get some special metadata of HDF5 Cosmo-Skymed <BR>> file, click here. <BR>> ________________________________ <BR>> View this message in context: RE: How to get some special metadata of HDF5 <BR>> Cosmo-Skymed file <BR>> Sent from the GDAL - Dev mailing list archive at Nabble.com. <BR>> <BR>> _______________________________________________ <BR>> gdal-dev mailing list <BR>> <A href="http:///user/SendEmail.jtp?type=node&node=6571128&i=1" rel="nofollow" target=_blank link="external">[hidden email]</A> <BR>> <A href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="nofollow" target=_blank link="external">http://lists.osgeo.org/mailman/listinfo/gdal-dev</A><BR>> </DIV></div><BR><BR>-- <BR>-- <BR> Alex Mantaut <BR>SUR Emprendimientos Tecnológicos <BR><BR>Perú 345 Piso 5to Oficina "B" (C1067AAG) <BR>Ciudad de Buenos Aires, Argentina <BR>Tel. +54 (11) 4342-2976/84 <BR><A href="http:///user/SendEmail.jtp?type=node&node=6571128&i=2" rel="nofollow" target=_blank link="external">[hidden email]</A> <BR>www.suremptec.com <BR>_______________________________________________ <BR>gdal-dev mailing list <BR><A href="http:///user/SendEmail.jtp?type=node&node=6571128&i=3" rel="nofollow" target=_blank link="external">[hidden email]</A> <BR><A href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="nofollow" target=_blank link="external">http://lists.osgeo.org/mailman/listinfo/gdal-dev</A><BR><BR><BR>
<HR color=#cccccc SIZE=1>
<DIV style="FONT: 12px tahoma,geneva,helvetica,arial,sans-serif; COLOR: #444">
<DIV style="FONT-WEIGHT: bold">If you reply to this email, your message will be added to the discussion below:</DIV><A href="http://osgeo-org.1803224.n2.nabble.com/How-to-get-some-special-metadata-of-HDF5-Cosmo-Skymed-file-tp6567852p6571128.html" target=_blank rel="nofollow" link="external">http://osgeo-org.1803224.n2.nabble.com/How-to-get-some-special-metadata-of-HDF5-Cosmo-Skymed-file-tp6567852p6571128.html</A> </DIV>
<DIV style="FONT: 11px tahoma,geneva,helvetica,arial,sans-serif; COLOR: #666">To unsubscribe from How to get some special metadata of HDF5 Cosmo-Skymed file, <A href="" target=_blank rel="nofollow" link="external">click here</A>. </DIV></DIV>                                            </div>
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/How-to-get-some-special-metadata-of-HDF5-Cosmo-Skymed-file-tp6567852p6571178.html">RE: How to get some special metadata of HDF5 Cosmo-Skymed file</a><br/>
Sent from the <a href="http://osgeo-org.1803224.n2.nabble.com/GDAL-Dev-f2022644.html">GDAL - Dev mailing list archive</a> at Nabble.com.<br/>