I have some trouble getting some meta data using DIMAP Driver.<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">gdalinfo --version<br>
GDAL 1.6.0dev, FWTools 2.2.8, released 2008/10/29<br></blockquote><br>Sample data can be found here :<br><a href="ftp://ftp.dmcii.com/samples/32m_MS_L1R/DN000340T_L1R.zip" target="_blank">ftp://ftp.dmcii.com/samples/32m_MS_L1R/DN000340T_L1R.zip</a><br>
<br>The meta data file contains this data :<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">...<br><Image_Interpretation><br> <Spectral_Band_Info><br>
<BAND_INDEX>1</BAND_INDEX><br> <BAND_DESCRIPTION>NIR</BAND_DESCRIPTION><br> <PHYSICAL_GAIN>0.6376299283778701</PHYSICAL_GAIN><br> <PHYSICAL_BIAS>0.0642515909964508</PHYSICAL_BIAS><br>
<PHYSICAL_UNIT>W/m2/sr/m-6</PHYSICAL_UNIT><br> </Spectral_Band_Info><br> <Spectral_Band_Info><br> <BAND_INDEX>2</BAND_INDEX><br> <BAND_DESCRIPTION>RED</BAND_DESCRIPTION><br>
<PHYSICAL_GAIN>0.6190674084836884</PHYSICAL_GAIN><br> <PHYSICAL_BIAS>0.0666344554873623</PHYSICAL_BIAS><br> <PHYSICAL_UNIT>W/m2/sr/m-6</PHYSICAL_UNIT><br>
</Spectral_Band_Info><br> <Spectral_Band_Info><br> <BAND_INDEX>3</BAND_INDEX><br> <BAND_DESCRIPTION>GREEN</BAND_DESCRIPTION><br> <PHYSICAL_GAIN>0.717558361863802</PHYSICAL_GAIN><br>
<PHYSICAL_BIAS>0.019273652406175568</PHYSICAL_BIAS><br> <PHYSICAL_UNIT>W/m2/sr/m-6</PHYSICAL_UNIT><br> </Spectral_Band_Info><br> </Image_Interpretation><br>
...<br></blockquote><br>And gdalinfo outputs :<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">>gdalinfo DN000340T_L1R.dim<br>Driver: DIMAP/SPOT DIMAP<br>
...<br>Metadata:<br> ...<br> SPECTRAL_BAND_INDEX=1<br> SPECTRAL_BAND_DESCRIPTION=NIR<br> SPECTRAL_PHYSICAL_GAIN=0.6376299283778701<br> SPECTRAL_PHYSICAL_BIAS=0.0642515909964508<br> SPECTRAL_PHYSICAL_UNIT=W/m2/sr/m-6<br>
...<br></blockquote><br>The problem is that there is spectral info only for first band. I would like to see the data for each band.<br><br>I also made a C++ program using the API ( GDALDataset::GetMetadata and GDALRasterBand::GetMetadata
)giving no more results.<br><br>Is there some turn-around to get the meta-data using the driver ?<br>Should I submit a bug ?<br><br>Thank you for your reply.<br><br>Guillaume.