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

ParameterTypeDescription
engineEngineThe engine used to evaluate positions.
jdnumberInstant to evaluate, Julian Day (UT).
latDegnumberObserver latitude in degrees (north positive).
lonEastDegnumberObserver longitude in degrees (east positive).

Returns

LunarLocal

LunarLocal with the Moon's altitude and a visibility flag.

Start building

Quickstart →