NASA is planning to launch a new near-infrared space observatory that will collect data on 300 million galaxies.