Preparing the NDVI data cube