API Reference / gauquelinSector · function

Function: gauquelinSector()

function gauquelinSector(
   engine, 
   body, 
   jdUt, 
   latDeg, 
   lonDeg): number | null;

The Gauquelin sector of a body (1–36, fractional) from the rise/set times of the disc centre with refraction (Swiss Ephemeris method 3). Sectors run from rise: 1–18 above the horizon, 19–36 below.

Parameters

ParameterTypeDescription
engineEngineThe engine used to evaluate positions.
bodyBodyIdA body id from Engine.bodies.
jdUtnumberJulian Day (UT).
latDegnumberObserver latitude in degrees, north positive.
lonDegnumberObserver longitude in degrees, east positive.

Returns

number | null

The sector in [1, 37), or null in polar no-rise/no-set conditions.

Start building

Quickstart →