API Reference / lunarEclipseLocal · function
Function: lunarEclipseLocal()
function lunarEclipseLocal(
engine,
jd,
latDeg,
lonEastDeg): LunarLocal;
Local visibility of a lunar eclipse: a lunar eclipse happens at the same instant for the whole Earth, so "local circumstances" is simply whether the Moon is up. Pass a contact time (e.g. LunarEclipse.tMax or a phase boundary) to learn whether that phase is visible from a place.
Parameters
| Parameter | Type | Description |
|---|---|---|
engine | Engine | The engine used to evaluate positions. |
jd | number | Instant to evaluate, Julian Day (UT). |
latDeg | number | Observer latitude in degrees (north positive). |
lonEastDeg | number | Observer longitude in degrees (east positive). |
Returns
LunarLocal with the Moon's altitude and a visibility flag.