-
Notifications
You must be signed in to change notification settings - Fork 301
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
Planetscope veg indices #322
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good to me! I added some minor comments there. Please also add links to the planet_scope markdown otherwise your page can only be found by the search bar.
planet_scope/max_ndvi/script.js
Outdated
else if (max<0.5) return [0.19,0.43,0.11]; | ||
else if (max<0.55) return [0.13,0.38,0.07]; | ||
else if (max<0.6) return [0.06,0.33,0.04]; | ||
else return [0,0.27,0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If NaN
is returned when denom == 0, it can be used to create a dataMask and we can return the dataMask in the 4th band.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would rather keep it the same as the Sentinel-2 script.
layout: script | ||
permalink: /planet_scope/ndvi_difference/ | ||
nav_exclude: true | ||
scripts: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is too complicated as we are using multiple acquisitions in this instance. In the difference script there is a before and after. For precedent the Sentinel-2 version of this script does not have an eob version.
I've added two NDVI scripts to Planetscope:
I think the description has been setup correctly but if not we can look next week.