Determine how much of the lunar disc is illuminated at the time of an observation or proposed lunar event.
moonphase(time, timezone, calendar)
time |
One or more UT Julian dates, or local date-time strings in the form YYYY/MM/DD HH:MM:SS. |
timezone |
Timezone for civil timestamps. Use UTC or a fixed offset for dates before 1900. See |
calendar |
Calendar for civil dates. Use |
Lunar illumination can be used to screen events for a nearly full Moon. The routine converts calendar input to UT Julian dates when needed and obtains the illuminated fraction from the lunar phenomena calculation in Swiss Ephemeris. Values near zero indicate a nearly new Moon and values near one a nearly full Moon; the fraction alone cannot distinguish waxing from waning.
Astronomical positions require Swiss Ephemeris files covering the epoch. We
recommend installing swephRdata; see skyscapeR-package for setup.
Numeric illuminated fraction of the lunar disc, one value per input time. At full illumination the fraction is 1.
In A02, all 108 illuminated fractions agreed with the direct Swiss Ephemeris calculation across 54 epochs and two file generations. This checks the R interface. Observed lunar photometry was outside the study. See the A02 study in the skyscapeR technical manual.
A07 examines independent crossover selection and sensitivity to the illumination cutoff. A07 scientific validation.
Across 1,080 geocentric positions, the largest separation from the matching JPL parent was 0.0065 arcseconds. Across 177 lunar skyline crossings the median default bearing difference was 0.059 degrees. A02 study.
Four lunar standstill limits agreed with the monthly reference tables to within 0.019 degrees. The study also examines sampling of planetary extrema. A06 study.
Independent selection agreed in 31 of 32 lunar event cases. At the equator in autumn 1913 the two illumination estimates straddled the EFM cutoff. A07 study.
swe_pheno_ut, EFM
if (requireNamespace("swephRdata", quietly = TRUE)) {
# Moonphase at noon GMT on Christmas day 2018:
moonphase('2018/12/25 12:00:00', 'GMT')
}