The readme for the modis NDMI script describes NDVI and not NDMI. The formula is correct, the accompanying text is incorrect @jonasViehweger