bugfix for MODIS product boundaries and optimization in other cases