What I want to do sounds simple, but I am not sure, what the fastest option would be.
I have several thousand 4channel images for which I want to calculate the NDVI and then recode the images based on thresholds into several classes, e.g.
NDVI<0 --> class value 1
0=<NDVI<=0.4 --> class value 2
NDVI >0.4 -->class value 3
My approach would be to caclulate the NDVI image first using “otbcli_RadiometricIndices” first.
But how to perform the recode? Can I apply multiple conditions in BandMath/BandMathx?
Any hints are well appreciated