Celestine API Documentation - v0.9.0
    Preparing search index...

    Function findLunarPhases

    • Find principal apparent geocentric Moon−Sun longitude phases in an inclusive TT JD interval. The phase instants do not depend on the frame (nutation cancels in the difference); jd is TT, jdUT uses time.toUT. One-day sampling is well below half a lunation; neither luminary reverses geocentric motion.

      Each event also carries the apparent geocentric ecliptic longitudes of the Moon and the Sun at that instant, in the same frame as the position API: mean equinox of date by default (as getMoonPosition, getSunPosition and calculateChart), true equinox of date with includeNutation. Use them to match lunations against natal points.

      Parameters

      • startJD: number

        Inclusive start, TT Julian Date.

      • endJD: number

        Inclusive end, TT Julian Date.

      • options: EventFrameOptions & { phases?: (LunarPhase | LunarPhaseAlias)[] } = {}

        Optional principal phases to include (duplicates are ignored; the short names 'new', 'first', 'full', 'last' are accepted too) and the longitude frame.

      Returns LunarPhaseEvent[]

      Ordered exact phases with TT jd, UT jdUT and both longitudes in degrees [0,360).

      RangeError listing the valid names for an unknown phase.

      findLunarPhases(2451545, 2451910, { phases: ['full'] })[0].moonLongitude