The primary purpose of the observatory was to compile astronomical tables, and to predict the times and movements of the sun, moon and planets.