We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2635df5 commit fb564deCopy full SHA for fb564de
efast/s2_processing.py
@@ -114,7 +114,9 @@ def extract_mask_s2_bands(
114
offset = int(offsets.get(band_id, 0))
115
with rasterio.open(band_path) as src:
116
raw_data = src.read(1).astype("int16")
117
- data = (raw_data - offset) / 10000
+ #data = (raw_data - offset) / 10000
118
+ # Offset is negative, so this must be a +! 2025-09-26 HN
119
+ data = (raw_data + offset) / 10000
120
data[data < 0] = 0
121
data[mask] = 0
122
s2_image[i] = data
0 commit comments