Scientists have found a way to identify good landing spots on asteroids and comets.