changed calculation of x, y and z for modis