Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion documentation/almanac.rst
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@ The result ``t`` will be an array of times, and ``y`` will be ``0``
through ``3`` for the Vernal Equinox through the Winter Solstice.

If you or some of your users live in the Southern Hemisphere,
you can use the ``SEASON_EVENTS_NEUTRAL`` array.
you can use the ``SEASON_EVENTS_SOUTH`` array.
Alternatively you can use the ``SEASON_EVENTS_NEUTRAL`` array.
Instead of naming specific seasons,
it names the equinoxes and solstices by the month in which they occur —
so the ``March Equinox``, for example, is followed by the ``June Solstice``.
Expand Down
14 changes: 14 additions & 0 deletions skyfield/almanac.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,27 @@ def fraction_illuminated(ephemeris, body, t):
'Winter',
]

SEASONS_SOUTH = [
'Autumn',
'Winter',
'Spring',
'Summer',
]

SEASON_EVENTS = [
'Vernal Equinox',
'Summer Solstice',
'Autumnal Equinox',
'Winter Solstice',
]

SEASON_EVENTS_SOUTH = [
'Autumnal Equinox',
'Winter Solstice',
'Vernal Equinox',
'Summer Solstice',
]

SEASON_EVENTS_NEUTRAL = [
'March Equinox',
'June Solstice',
Expand Down