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
| Parameter | Type |
|---|---|
stage | TwilightStage |
moonAltDeg | number | null |
moonIllum | number | null |
bortle | number | undefined |
Returns
number