Astrophysicists employ various techniques to determine the atmospheric composition of celestial bodies. One common method is spectroscopy. By analyzing the light spectrum emitted or absorbed by an atmosphere, scientists can identify specific chemical elements and compounds. Another method involves space probes equipped with instruments designed to directly sample and analyze atmospheric gases.