Question: Create a new image [ 2 - D NumPy Array ] and fill it with data following this NDVI equation: NDVI = ( NIR RED
Create a new image D NumPy Array and fill it with data following this NDVI equation:
NDVI NIR REDNIR RED
You will need to decide which of the bands to use for NIR and Red.
NOTE: Make sure you do not divide by ZERO, so you will need an exception handler logic in your code to skip division by ZERO It would be great if you could design a separate user defined function that you would call.
Plot this image and use the YlGn or Greens cmap colorbarscale and add the color legend, labels, etc. to the image.
Scatterplot NDVI values for the objects, set the yaxis to NDVI and the xaxis to the index or a label of the point.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
