I have written a simple function to do a band ratios with the aim of expanding it.
function RedEdgeModel, b1, b2
result = float(b1/b2)
return, result
END
The problem I have with this code is the result is an image made up of zeros (black) what could be wrong with my code because when I use the band ratios in ENVI-TRANSFORMATION-BAND RATIOS everything work okay.
|