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