From 4b175c397a238b9fdd38c6d3fcf86d5ce2ca014d Mon Sep 17 00:00:00 2001 From: lukas Date: Fri, 1 Dec 2023 13:01:36 +0100 Subject: [PATCH] changed sign for offset from `+0.1` to `-0.1` --- eodal/core/sensors/sentinel2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eodal/core/sensors/sentinel2.py b/eodal/core/sensors/sentinel2.py index 9206de0..98b4720 100644 --- a/eodal/core/sensors/sentinel2.py +++ b/eodal/core/sensors/sentinel2.py @@ -117,7 +117,7 @@ def _get_gain_and_offset(in_dir: Union[str, Path]) -> Tuple[Number, Number]: # actual reflectance factor values. s2_offset = 0 if baseline >= 400: - s2_offset = 0.1 + s2_offset = -0.1 return (s2_gain_factor, s2_offset) @staticmethod