I want to calculate a few of vegetation indexes [ example: NDPI (red band-green band)/(red band + green band)] in a model with the GDAL raster calculator but I don't know how put the equation here:For example, NDPI is (red band-green band)/(red band + green band)


Make the A raster your red band, the B raster your green band.

(A-B)/(A+B). This link covers a how-to using a different index, but the process is the same.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.