Skip to content

Difference between skyfield and pyephem altitude calculation for the sun #974

Discussion options

You must be logged in to vote

Looking over the Quick Reference to remind myself how PyEphem works, I see this under the description of body.compute(observer):

These apparent positions include an adjustment to simulate atmospheric refraction for the observer’s temperature and pressure; set the observer’s pressure to zero to ignore refraction.

The section on "Observers" agrees, saying that:

The pressure defaults to 1010mBar.

Try setting obs.pressure = 0 and see if the libraries agree more closely. My guess is that latitude 64° puts the Sun right at the horizon, where refraction is greatest.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aaronwmorris
Comment options

@brandon-rhodes
Comment options

Answer selected by aaronwmorris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants