The performance of space hyper spectral imager is severely affected by turbulent orbit temperature. Turbulence results in a defocus in the fore optical system of the imager. To address this problem, a focusing system is added. A number of simulation methods are applied on the fore optical system to study the relationship between temperature and focusing. In addition, this process is conducted to obtain a practical reference for focusing while the imager is flying on orbit. The obtained correlation between focusing and temperature is proven effective based on ground imaging and simulation testing.