The presence and size of a magnetic field therefore provides astronomers with an indication of the habitability of a planet