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

Planetscope veg indices #322

Merged
merged 8 commits into from
Jul 1, 2024
Merged

Conversation

willrayeo
Copy link
Contributor

I've added two NDVI scripts to Planetscope:

  • maximum NDVI
  • NDVI change detection

I think the description has been setup correctly but if not we can look next week.

@chorng chorng self-requested a review June 21, 2024 12:29
Copy link
Contributor

@chorng chorng left a 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 Show resolved Hide resolved
planet_scope/max_ndvi/script.js Outdated Show resolved Hide resolved
planet_scope/max_ndvi/script.js Outdated Show resolved Hide resolved
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];
Copy link
Contributor

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.

Copy link
Contributor Author

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.

planet_scope/max_ndvi/README.md Outdated Show resolved Hide resolved
planet_scope/max_ndvi/README.md Show resolved Hide resolved
planet_scope/max_ndvi/README.md Outdated Show resolved Hide resolved
layout: script
permalink: /planet_scope/ndvi_difference/
nav_exclude: true
scripts:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the max ndvi readme. It would be nice to have the eob.js and the raw.js. You can find the script I created for Sentinel-2 ndvi difference (eob.js and raw.js).

Copy link
Contributor Author

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.

planet_scope/ndvi_difference/README.md Show resolved Hide resolved
@chorng chorng self-requested a review July 1, 2024 12:38
@chorng chorng merged commit 4b3fa33 into sentinel-hub:main Jul 1, 2024
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

Successfully merging this pull request may close these issues.

2 participants