A model of temperature stratification for correction of leveling refraction