-
Notifications
You must be signed in to change notification settings - Fork 265
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
Added NPCI and GLI indices to spectral_index #1593
Conversation
Here's the code health analysis summary for commits Analysis Summary
|
Thanks @rayn-alex for adding this! I'll plan to review it early next week. I have also asked @nfahlgren to add you as a contributor so that you can branch the main plantcv repo in any future PRs (DeepSource is not reporting code coverage since it's branched from your repo). Hope you have a great rest of your Friday. |
Great, thank you and good to know! Already received the invitation. Have a pleasant week ahead! |
Good morning @rayn-alex , thanks again for contributing. I've started on reviewing this PR and the I noticed
If it's ok with you, I can make these changes today, and then have you test them locally before Noah merges the changes into main? |
Hey @HaleySchuhl, I added the GLI index as I absolutely see the point and I think it should be changed as you suggested it. However, would it make sense to add support for both input types, What do you think? |
@rayn-alex I really like the idea of added flexibility to accept both HSI and RGB in those two indices. Very in favor of detecting and handling expected datatypes. The one consideration is that changing the input parameter in EGI to something more general like |
@HaleySchuhl |
@HaleySchuhl Done! I added new tests and updated the docs as well. I used different wavelength presets for the EGI RGB wavelength and also increased the default distance to 40nm because the original publication only uses the RGB values. ~R700 for RED, ~R530 for GREEN, and ~R460 for BLUE |
and other deepsource style fixes about whitespace
Happy Monday @rayn-alex , (edited) I'm reviewing the updated functionality this morning and pushed a few minor changes so far related to DeepSource complaints. While testing the functions locally, I ran into similar inconsistent-data-range outputs for the GLI. The RGB input functionality works nicely and gives an index with values all within the predicted range [-1,1]. However, the Converting to |
Describe your changes
I added two additional indices, Normalized Pigment Chlorophyll Index and Green Leave Index, to
spectral_index
. Added also the respective tests and documentation (including references).Type of update
Is this a:
Associated issues
None
Additional context
None
For the reviewer
See this page for instructions on how to review the pull request.
plantcv/mkdocs.yml
updating.md