uncommented beginning part of ndvi proc