Arithmetic example

Perform a 'Vegetative Index' calculation using channels 1 and 2, saving the result to channel 7. If channel 7 is 32 bit real, the following model is used:

 MODEL ON "irvine.pix" OVER dbiw
   %7=(%1-%2)/(%1+%2)
 ENDMODEL

If channel 7 is 8-bit, some scaling and adjustment is necessary:

 MODEL ON "irvine.pix" OVER dbiw
   %7=((%1-%2)/(%1+%2))*128 + 127.5
 ENDMODEL

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.