ndvi calibration code