-
Notifications
You must be signed in to change notification settings - Fork 1
getMoonIllumination
github-actions[bot] edited this page May 30, 2026
·
1 revision
moon-sighting / getMoonIllumination
getMoonIllumination(
date?):MoonIlluminationResult
Defined in: api/index.ts:592
Compute the Moon's illumination fraction, phase cycle position, and bright limb angle.
Works WITHOUT a kernel (uses Meeus Ch. 47/48 approximation). Accuracy: illumination fraction ~0.5%, phase fraction ~0.003. Drop-in replacement for suncalc.getMoonIllumination() — same field names and conventions.
Date = ...
Date to compute illumination for (default: now)
fraction (0-1), phase (0-1 cycle), angle (bright limb position angle, radians), isWaxing
const illum = getMoonIllumination(new Date())
console.log(illum.fraction) // e.g. 0.43 (43% illuminated)
console.log(illum.phase) // e.g. 0.18 (waxing crescent territory)moon-sighting · MIT License · npm · Issues
Guides
Examples
API Reference
- getMoonSightingReport
- getMoonPhase
- getMoonPosition
- getMoonIllumination
- getMoonVisibilityEstimate
- getMoon
- getSunMoonEvents
- initKernels
- downloadKernels
- verifyKernels
Domain Reference
Package Reference
Community