API Reference / limitingMag · function

Function: limitingMag()

function limitingMag(
   stage, 
   moonAltDeg, 
   moonIllum, 
   bortle): number;

Effective naked-eye limiting magnitude: the more restrictive of the twilight-brightness ceiling and the site's dark-sky limit, then reduced when a bright Moon is up. With no Bortle class, the dark-site limit defaults to 6.0 (suburban), matching the original behavior.

Parameters

ParameterType
stageTwilightStage
moonAltDegnumber | null
moonIllumnumber | null
bortlenumber | undefined

Returns

number

Start building

Quickstart →