-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sentinel2 L1C data wrongly scaled #1
Comments
I agree on the If you would like to be able to disable this behaviour we can consider an extra flag in |
I mean the offset should not be removed and also not the scaling. The line should be: |
Ah, this is nasty. Thank you for spotting this. It will be fixed among other things in L1C driver (see https://framagit.org/jmichel-otb/sensorsio/-/merge_requests/14 ). |
Fixes have been pushed to mr 14, branch is merged and github repo is synced. Let me know if that works, so that I can close this issue. |
I haven't checkout the code. have only used the lib via sentinel2_superresolution. So can't test it right now. But changes look good to me. |
Hello,
I think the Sentinel2-L1C data is wrongly scaled in the
read_as_numpy
function..The
np_arr
contains the DN values and a scaled offset (default=-0.1) should not be applied.I've noticed this when using sentinel2_superresolution and the values read where too low by 1000 (the scaling is set to 1).
Also, the no-data of the raw values is zero, but it is set to -10000 by default.
See page 444: https://sentinels.copernicus.eu/documents/247904/685211/S2-PDGS-TAS-DI-PSD-V14.9.pdf/3d3b6c9c-4334-dcc4-3aa7-f7c0deffbaf7?t=1643013091529
sensorsio/src/sensorsio/sentinel2_l1c.py
Lines 272 to 333 in b36e2b7
The text was updated successfully, but these errors were encountered: