By looking at a star as one of its planets passes in front of it, astronomers are able to learn about its atmosphere.