Skip to content
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

Negative values #16

Open
lucadelu opened this issue Mar 21, 2024 · 2 comments
Open

Negative values #16

lucadelu opened this issue Mar 21, 2024 · 2 comments

Comments

@lucadelu
Copy link
Collaborator

Dear Markus,

working to create the index map I discovered that several value are negatives in the processed data, is this possible?

Here you are the distribution of the processed red band of Sentinel 2A for day 2023-02-02

(array([24898335,    53592,   174110,   700888,  5686408,  5152942, 5046512, 11299058, 23370783, 29488623, 10727668,  4501601]),
 array([-32768,  -1000,   -500,   -250,   -100,      0,    100,    250,  500,   1000,   5000,  10000,  32768]))
@griembauer
Copy link
Member

It appears that the FORCE Level-2 Processor indeed may produce negative values, especially for red and NIR bands: davidfrantz/force#134.
This apparently can occur for L2A, but according to the discussion in the link, the FORCE higher level processor could reduce this effect, and at the same time may compute the indices (see also https://force-eo.readthedocs.io/en/latest/components/higher-level/tsa/param.html#tsa-param for the very extensive higher level processor parameter file). It could be useful to use this processor for index calculation, but it might me an overkill.

@lucadelu
Copy link
Collaborator Author

@griembauer thanks a lot for explanation, ok I'll look in FORCE higher level processor but I'm a little bit disappointed since I was hoping to use different tools to calculate the indexes.

FORCE seems a good product but it is one man project and sometimes documentation is not the best :-/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants