> 1 pixel → · = 3474.8 km ← The diameter of the moon
This seems wrong to me. Would not using area instead of diameter (squaring the circle, as it were) yield a more correct-looking result? As in, the area of one pixel should equal the apparent two-dimensional area of the moon.