API Reference / solarEclipseLocal · function

Function: solarEclipseLocal()

function solarEclipseLocal(
   engine, 
   jd, 
   latDeg, 
   lonEastDeg, 
   altM?): SolarLocal;

Local circumstances of a solar eclipse as seen from one place: contact times, magnitude, and obscuration. Topocentric Sun and Moon disks, so it accounts for lunar parallax (which is what makes the same eclipse total in one town and partial in the next).

Parameters

ParameterTypeDefault valueDescription
engineEngineundefinedThe engine used to evaluate positions.
jdnumberundefinedA time near the eclipse, JD (UT) -- typically a SolarEclipse.tMax; the local maximum is found within a few hours.
latDegnumberundefinedObserver geodetic latitude in degrees (north positive).
lonEastDegnumberundefinedObserver longitude in degrees (east positive).
altMnumber0Observer height above the ellipsoid in metres (default 0).

Returns

SolarLocal

SolarLocal. type is "none" when the Sun is not eclipsed from this place at all; c2/c3 are null outside totality/annularity.

Start building

Quickstart →