[gdal-dev] DIMAP driver fail to get some meta data
guillaume huby
guillaume.huby.lists at gmail.com
Wed Nov 5 10:39:42 EST 2008
I have some trouble getting some meta data using DIMAP Driver.
gdalinfo --version
> GDAL 1.6.0dev, FWTools 2.2.8, released 2008/10/29
>
Sample data can be found here :
ftp://ftp.dmcii.com/samples/32m_MS_L1R/DN000340T_L1R.zip
The meta data file contains this data :
...
> <Image_Interpretation>
> <Spectral_Band_Info>
> <BAND_INDEX>1</BAND_INDEX>
> <BAND_DESCRIPTION>NIR</BAND_DESCRIPTION>
> <PHYSICAL_GAIN>0.6376299283778701</PHYSICAL_GAIN>
> <PHYSICAL_BIAS>0.0642515909964508</PHYSICAL_BIAS>
> <PHYSICAL_UNIT>W/m2/sr/m-6</PHYSICAL_UNIT>
> </Spectral_Band_Info>
> <Spectral_Band_Info>
> <BAND_INDEX>2</BAND_INDEX>
> <BAND_DESCRIPTION>RED</BAND_DESCRIPTION>
> <PHYSICAL_GAIN>0.6190674084836884</PHYSICAL_GAIN>
> <PHYSICAL_BIAS>0.0666344554873623</PHYSICAL_BIAS>
> <PHYSICAL_UNIT>W/m2/sr/m-6</PHYSICAL_UNIT>
> </Spectral_Band_Info>
> <Spectral_Band_Info>
> <BAND_INDEX>3</BAND_INDEX>
> <BAND_DESCRIPTION>GREEN</BAND_DESCRIPTION>
> <PHYSICAL_GAIN>0.717558361863802</PHYSICAL_GAIN>
> <PHYSICAL_BIAS>0.019273652406175568</PHYSICAL_BIAS>
> <PHYSICAL_UNIT>W/m2/sr/m-6</PHYSICAL_UNIT>
> </Spectral_Band_Info>
> </Image_Interpretation>
> ...
>
And gdalinfo outputs :
>gdalinfo DN000340T_L1R.dim
> Driver: DIMAP/SPOT DIMAP
> ...
> Metadata:
> ...
> SPECTRAL_BAND_INDEX=1
> SPECTRAL_BAND_DESCRIPTION=NIR
> SPECTRAL_PHYSICAL_GAIN=0.6376299283778701
> SPECTRAL_PHYSICAL_BIAS=0.0642515909964508
> SPECTRAL_PHYSICAL_UNIT=W/m2/sr/m-6
> ...
>
The problem is that there is spectral info only for first band. I would like
to see the data for each band.
I also made a C++ program using the API ( GDALDataset::GetMetadata and
GDALRasterBand::GetMetadata )giving no more results.
Is there some turn-around to get the meta-data using the driver ?
Should I submit a bug ?
Thank you for your reply.
Guillaume.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20081105/7f3e190b/attachment.html
More information about the gdal-dev
mailing list