This is how spectroscopy works – how you can tell what’s floating around in space even when you can’t see it, only light that passes *through* it. The Hubble Space Telescope is especially good at this. It’s got an imaging spectroscope on board.
[via]