They used a spectrograph at the Keck Observatory that measures the chemical composition of planetary atmospheres through the infrared light they emit or absorb. Molecules such as water emit specific frequencies of infrared light as they interact with solar radiation.