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

Modify No Value and Scale function #165

Closed
osamasajid123 opened this issue Feb 21, 2019 · 2 comments
Closed

Modify No Value and Scale function #165

osamasajid123 opened this issue Feb 21, 2019 · 2 comments

Comments

@osamasajid123
Copy link

Hi,

I am using MODIStsp but I need more clarification of how does the 'Modify No Value' and Scaling function works?
Is scaling just multiplying all bands with 0.0001? For example I was computing NDVI = (NIR-RED)/(NIR+RED), the scaling should not affect the result if it was just multiplying the bands with a constant number. Right?

Osama

@lbusett
Copy link
Contributor

lbusett commented Feb 22, 2019

@osamasajid123

Concerning Indexes, "applying scale and offset" means that the output will be saved as a floating point number, In the case of NDVI, values would be between -1 and +1. If you do NOT apply scale and offset, output will be saved as integers, obtained multiplying the index by 10000 (so, for NDVI, you will get values between -10000 and 10000).

Is this clear enough?

BTW: If you are currently getting some "strange" values in the indexes, please have a look at this issue, for which a fix will be available soon:

#163

@lbusett
Copy link
Contributor

lbusett commented Mar 6, 2019

Closing due to lack of activity. Feel free to reopen if needed.

@lbusett lbusett closed this as completed Mar 6, 2019
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