A planet of mass m and radius r is surrounded by an atmosphere of constant density. The atmosphere consists of an ideal gas of molar mass M and its thickness (radial) is h (h << r) from the surface. The temperature of the atmosphere on the surface of the planet is [R = universal gas constant]
mGMhRr2
P=ρ(Gmr2)handPM=ρRT⇒T=mGMhRr2