how to measure a planet