Hello!
Via the CLI, I run:
otbcli_OpticalCalibration -in K3_20160924182455_23243_19350803_L1G_G.tif
-out K3_20160924182455_23243_19350803_L1G_G_CALIBRATION.tif float -ram 128
-milli true -clamp false -acqui.minute 24 -acqui.hour 18 -acqui.day 24
-acqui.month 9 -acqui.year 2016 -acqui.sun.elev 51 -acqui.sun.azim 313
-acqui.gainbias k3_gainbias_green.txt -acqui.solarilluminations
k3_solarillumination_green.txt -atmo.aerosol noaersol
The 'clamp = false' is essential to have the correct TOA values.
Then trying with OTB python wrapper, I can't set clamp to false.
Here's the code:
OTB_app1 =
otbApplication.Registry.CreateApplication("OpticalCalibration")
OTB_app1.SetParameterString("in", k3_prds[index])
OTB_app1.SetParameterString("milli", '0')
OTB_app1.SetParameterString("level", level)
OTB_app1.SetParameterInt('ram', 4096)
OTB_app1.SetParameterString('clamp', '1')
OTB_app1.SetParameterString('acqui.gainbias', gainbias[index])
OTB_app1.SetParameterString('acqui.solarilluminations',
solarillumination[index])
OTB_app1.SetParameterFloat('acqui.sun.elev', ele)
OTB_app1.SetParameterFloat('acqui.sun.azim', azi)
OTB_app1.SetParameterInt('acqui.minute', 24)
OTB_app1.SetParameterInt('acqui.hour', 18)
OTB_app1.SetParameterInt('acqui.day', 24)
OTB_app1.SetParameterInt('acqui.month', 9)
OTB_app1.SetParameterInt('acqui.year', 2016)
OTB_app1.SetParameterString('atmo.aerosol', 'noaersol')
OTB_app1.SetParameterOutputImagePixelType("out", type_data)
OTB_app1.SetParameterString('out', oc_out[index])
OTB_app1.SetParameterString('outxml', oc_out[index] + '.xml')
OTB_app1.ExecuteAndWriteOutput()
I've tried the values for clamp via Python:
- False
- false
- - 1
- - 0
- -1
The outxml file with the parameters has always clamp=true and the TOA
values are wrong.
Any help is really appreciated !
Fabrice
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.