Hi Anders,
It is in one of the sensor classes (e.g., arcsisensorlandsat7.py) in one of the functions:
convertImageToSurfaceReflSglParam
convertImageToSurfaceReflDEMElevLUT
convertImageToSurfaceReflAOTDEMElevLUT
Are you just using a single value of AOT for the the correction then it will be convertImageToSurfaceReflSglParam. If you provide a single value of AOT but a DEM then it will be convertImageToSurfaceReflDEMElevLUT and if an AOT surface is calculated / inputted and the DEM is provided then it will be convertImageToSurfaceReflAOTDEMElevLUT.
At the end of the function there will be a call to RSGISLib
convertImageToSurfaceReflSglParam:
rsgislib.imagecalibration.apply6SCoeffSingleParam
convertImageToSurfaceReflDEMElevLUT:
rsgislib.imagecalibration.apply6SCoeffElevLUTParam
convertImageToSurfaceReflAOTDEMElevLUT:
rsgislib.imagecalibration.apply6SCoeffElevAOTLUTParam
You have two options, the first is to change the scale value passed to the rsgislib function (i.e., 1000) or change the output data type to be float (list of datatypes here:
http://www.rsgislib.org/rsgislib.html) so the values are not rounded.
The reason I choose 1000 as the scale factor is that I didn’t think that the reflectance values would be meaningful beyond that level of precious but I am interested that you find that there is information in those regions. Maybe I should provide this as an option on via the terminal and environmental variables - I will add it to the list of things to do (
https://bitbucket.org/petebunting/arcsi/issues) when I next get chance to work on ARCSI.
Best wishes,
Pete