Code for processing MODIS data