moonphase()
Scientific results for this function.
A07 examines independent crossover selection and sensitivity to the illumination cutoff. A07 study and results.
A02 validation. 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. Lunar illumination check.
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.
Interpretation and limits. Illuminated fraction alone supplies no brightness or atmospheric detection criterion. A planetary extreme is conditional on its sampled time window and cadence. Retain that window when comparing extremes between studies.
Implementation arguments, return value and documented modes
| Argument | Formal default | Behaviour in this interface |
|---|---|---|
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 |
Return value
Numeric illuminated fraction of the lunar disc, one value per input time. At full illumination the fraction is 1.
Implementation. R/mechanics.R. Full function help · Solar, lunar and planetary events outline · Equinoctial full Moons and crescent crossovers