C++ code to process MODIS hdf files to prepare for time series