<div dir='ltr'>
Thanks Antonio Valentino and Alex Mantaut. I've got these parameters.I&nbsp;have a new problem,I need to get the backscatter image,but the calibration result is not correct,<SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Simsun; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px" class=Apple-style-span><SPAN style="BORDER-COLLAPSE: collapse; FONT-FAMILY: Verdana, Geneva, Helvetica, Arial, sans-serif; FONT-SIZE: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class=Apple-style-span>the&nbsp;calibrated image pixels are all zero</SPAN></SPAN>.I doubt that my method is not correct.Who can give me some information about Cosmo-Skymed radiation calibration?How should I do?<BR>
Best regards.<BR><BR>&nbsp;<BR>
<DIV>

<HR id=stopSpelling>
Date: Mon, 11 Jul 2011 06:55:54 -0700<BR>From: <a href="/user/SendEmail.jtp?type=node&node=6571081&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a><BR>To: <a href="/user/SendEmail.jtp?type=node&node=6571081&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>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 &lt;iostream&gt; <BR>#include &lt;cstdlib&gt; <BR>#include &lt;string&gt; <BR>#include &lt;stdexcept&gt; <BR><BR>using namespace std; <BR><BR>int main(int argc, char **argv) <BR>{ <BR>GDALDataset &nbsp;*poDataset; <BR><BR>&nbsp; GDALAllRegister(); <BR><BR>&nbsp; //Open the subdataset <BR>&nbsp; //The filename should be formated like this <BR>&nbsp; //HDF5:filepath://subdataset <BR>&nbsp; poDataset = (GDALDataset *) GDALOpen( <BR>"HDF5:CSKS1_DGM_B_HR_00_HH_RA_SF_20080211191721_20080211191753.h5://S01/SBI", <BR>GA_ReadOnly ); <BR><BR>&nbsp; if( poDataset == NULL ) <BR>&nbsp; { <BR>&nbsp; &nbsp; &nbsp; cout &lt;&lt;"error opening dataset"&lt;&lt;endl; <BR>&nbsp; } <BR>&nbsp; else <BR>&nbsp; { <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//To get the metadata the item name should be formated like this: <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//Every space and group separator should be replaced with <BR>an underscore (_) <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//I.e. You need item Beam ID from group S01: <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;const char *pszBeamId = poDataset-&gt;GetMetadataItem("S01_Beam_ID"); <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cout &lt;&lt; &nbsp;pszBeamId &lt;&lt;endl; <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//I.e. You need item Rescaling factor the root: <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;const char *pszRescalingFactor = <BR>poDataset-&gt;GetMetadataItem("Rescaling_Factor"); <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cout &lt;&lt; &nbsp;pszRescalingFactor &lt;&lt;endl; <BR>&nbsp; } <BR>} <BR><BR>Best regards <BR><BR><BR><BR>2011/7/10 Antonio Valentino &lt;<A href="http:///user/SendEmail.jtp?type=node&amp;node=6571000&amp;i=0" rel="nofollow" target=_blank link="external">[hidden email]</A>&gt;: 
<DIV class=ecxshrinkable-quote><div class='shrinkable-quote'><BR>&gt; Hi RSyaoxin, <BR>&gt; <BR>&gt; Il 10/07/2011 16:08, RSyaoxin ha scritto: <BR>&gt;&gt; Hi,all. <BR>&gt;&gt; &nbsp; &nbsp; &nbsp; I want to calibrate the Cosmo-Skymed radar data, and I need some <BR>&gt;&gt; parameters, such as "Calibration Constant","Rescaling Factor","Reference <BR>&gt;&gt; Incidence Angle" and so on.However,I'm a beginner,I don't know how to get <BR>&gt;&gt; HDF5 metadata,Somebody can give me a tutorial in c or c++? <BR>&gt;&gt; &nbsp; &nbsp; &nbsp; Furthermore,I used HDFView to see the file's metadata and found that <BR>&gt;&gt; these information is stored in the metadata corresponding to the "root" of <BR>&gt;&gt; the file, I try to use gdalinfo to get the file's metadata &nbsp;and can't find <BR>&gt;&gt; it.That's why? <BR>&gt;&gt; <BR>&gt;&gt; &nbsp; &nbsp; &nbsp; Subdatasets: <BR>&gt;&gt; <BR>&gt;&gt; SUBDATASET_1_NAME=HDF5:"D:\CSKS3_GEC_B_WR_01_VV_RD_SF_20100720100133_20100720100148.h5"://MBI <BR>&gt;&gt; &nbsp; SUBDATASET_1_DESC=[9028x12156] //MBI (16-bit unsigned integer) <BR>&gt;&gt; <BR>&gt;&gt; SUBDATASET_2_NAME=HDF5:"D:\CSKS3_GEC_B_WR_01_VV_RD_SF_20100720100133_20100720100148.h5"://QLK <BR>&gt;&gt; &nbsp; SUBDATASET_2_DESC=[902x1215] //QLK (8-bit unsigned character) <BR>&gt;&gt; <BR>&gt;&gt; I hope to get some help.Thank you! <BR>&gt;&gt; Kind regards. <BR>&gt; <BR>&gt; The HDF5 driver has been recently updated to improve metadata management: <BR>&gt; <BR>&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; <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; <BR>&gt; The problem you are experimenting should be fixed in trunk but you need <BR>&gt; to re-build GDAL from sources to get it. <BR>&gt; <BR>&gt; regards <BR>&gt; <BR>&gt; -- <BR>&gt; Antonio Valentino <BR>&gt; _______________________________________________ <BR>&gt; gdal-dev mailing list <BR>&gt; <A href="http:///user/SendEmail.jtp?type=node&amp;node=6571000&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=6571000&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=6571000&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-tp6567852p6571000.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-tp6567852p6571000.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-tp6567852p6571081.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/>