Answer
Ptolemy's astronomical data primarily came from his own observations and calculations, as well as those of earlier astronomers. He meticulously recorded the positions and movements of celestial bodies, which allowed him to develop his mathematical models and theories.