<div dir='ltr'>
Thanks Antonio Valentino and Alex Mantaut. I've got these parameters.I 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 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> <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 <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 = 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 <<A href="http:///user/SendEmail.jtp?type=node&node=6571000&i=0" rel="nofollow" target=_blank link="external">[hidden email]</A>>:
<DIV class=ecxshrinkable-quote><div class='shrinkable-quote'><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 that <BR>>> these information is stored in the metadata corresponding to the "root" of <BR>>> the file, I try to use gdalinfo to get the file's metadata and can't find <BR>>> it.That's why? <BR>>> <BR>>> Subdatasets: <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>>> 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>> <A href="http:///user/SendEmail.jtp?type=node&node=6571000&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=6571000&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=6571000&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/>