Files
astronomy/demo/python/test/moonphase_correct.txt
Don Cross 246ac47d2b Fixed a failure to find a full moon using certain start dates.
In all four versions of Astronomy Engine (C, C#, JavaScript, and Python),
starting a search for a full moon near December 19, 2020 would fail.
I added a unit test to all four languages and it failed consistently
across them all.

The root cause: I was too optimistic about how narrow I could make
the window around the approximate moon phase time in the
SearchMoonPhase functions. Finding the exact moon phase time failed
because it was outside this excessively small window around the approximate
time. I increased the window from 1.8 days to 3.0 days.
This should handle all cases with minimal impact on performance.

Now all four of the new unit tests pass.
2020-12-18 14:29:41 -05:00

14 lines
489 B
Plaintext

2019-06-15T09:15:32.987Z : Moon's phase angle = 156.100612 degrees.
The next 10 lunar quarters are:
2019-06-17T08:31:17.934Z : Full Moon
2019-06-25T09:47:07.624Z : Third Quarter
2019-07-02T19:16:46.550Z : New Moon
2019-07-09T10:55:28.849Z : First Quarter
2019-07-16T21:38:53.691Z : Full Moon
2019-07-25T01:18:42.697Z : Third Quarter
2019-08-01T03:12:26.152Z : New Moon
2019-08-07T17:31:35.717Z : First Quarter
2019-08-15T12:29:57.164Z : Full Moon
2019-08-23T14:56:46.202Z : Third Quarter