Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/solposx/refraction/michalsky.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ def michalsky(elevation):

where :math:`el` is the true (uncorrected) solar elevation angle.

The C-code implementation provided in [1]_ sets the refraction angle to
a constant value of 0.56 degrees when the solar elevation angle is less
than -0.56 degrees. This implementation includes this cutoff.

References
----------
.. [1] J. J. Michalsky, "The Astronomical Almanac's algorithm for
Expand Down
Loading