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

Why is the LAI output divided by 3 #176

Closed
SOWITMA opened this issue Sep 24, 2020 · 2 comments
Closed

Why is the LAI output divided by 3 #176

SOWITMA opened this issue Sep 24, 2020 · 2 comments

Comments

@SOWITMA
Copy link

SOWITMA commented Sep 24, 2020

Hello,

Looking at the code I was wondering what was the rational of divided the LAI output by 3 ?

var lai = denormalize(l2, 0.000319182538301, 14.4675094548151);
return {
default: [lai / 3]
}

Thanks for your input,
Best
HB

@MonjaSebela
Copy link
Contributor

MonjaSebela commented Sep 25, 2020

Dear HB,

I believe the output is divided by 3 to decrease the brightness of the output and thus display more visual information. If you remove the division from the script, you will see the result to be a bit too bright with much less visual information. Multiplying with larger or lower values is a common practice in custom scripts. We often multiply the bands in true color composites with 2.5 to increase the brightness, and here, dividing with 3 is the same as multiplying with 0.3333333, which will decrease the gain of the final output.

Here is a link to LAI in EO Browser, where you can try to edit the script (the output divided by 3 is at the end) and see what happens.

Best,
Monja

@SOWITMA
Copy link
Author

SOWITMA commented Sep 29, 2020

Thanks for your detailed answer.

Best Regards,
HB

@SOWITMA SOWITMA closed this as completed Sep 29, 2020
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