OpticalCalibration of Pléiades data : values are always converted to milli reflectance when using "-clamp false"
Description
When applying TOA calibration to Pléiades input (using DIMAP file), the parameter "milli" does not work as expected.
If using -clamp false -milli false
, this results in max pixel values of ~7000, and with -clamp false -milli true
, max values are ~7000000.
The app works as it should when clamp=true
.
Steps to reproduce
otbcli_OpticalCalibration -in DIM_SPOT7_MS_202110181018290_ORT_SPOT7_20211020_1123561t8mvr6c2yiv0_1.XML -level toa -clamp false -milli true -out test.tif
gdalinfo test.tif -stats
Configuration information
Ubuntu 20.04, same result when using OTB 7.4.1 or 8.0.1.
OTB was built from source using system dependencies (ubuntugis), so GDAL version is 3.4.3.
Same result with fresh OTB 8.0.1 binaries.
Edited by Vincent Delbar