def updatePixels(self, tlc, shape, props, **pixelBlocks):
        inBlock = pixelBlocks['raster_pixels']                  # get the input raster pixel block
        red = np.array(inBlock[0], dtype='f4')                  # extractbands ensures first band is Red.
        ir = np.array(inBlock[1], dtype='f4')                   # extractbands ensures second band is Infrared

        np.seterr(divide='ignore')
        outBlock = (ir + red) / (ir - red)                      # compute NDVI
        if self.applyScaling:
            outBlock = (outBlock * 100.0) + 100.0               # apply a scale and offset to the the NDVI, if needed.

        pixelBlocks['output_pixels'] = outBlock.astype(props['pixelType'])
        return pixelBlocks
dataset/ETHPy150Open Esri/raster-functions/functions/NDVI.py/NDVI.updatePixels/swapped operands of `/`