Skip to content

Documentation / @interstellar-tools/equations / greenwichMeanSiderealTime

Function: greenwichMeanSiderealTime() ​

ts
function greenwichMeanSiderealTime(date: Date): Radians;

Defined in: cartography/earth-rotation.ts:116

Compute Greenwich mean sidereal time (GMST) with the IAU 1982 model: the angle from the mean equinox of date to the Greenwich meridian, as the 1982 standard defines it.

θGMST=24110.54841+8640184.812866T+0.093104T2−6.2×10−6T3 s+UT1

Where:

  • T is the number of Julian centuries of UT1 since J2000.0
  • UT1 is the time of day in UT1 (s); a day of time is 2π

Units

  • Input: a Date.
  • Output: θGMST in radians, in [0, 2π).

Notes

  • This is the angle SGP4's TEME frame uses. To rotate an SGP4 position into Earth-fixed coordinates, turn it by GMST about the z axis (Vallado et al. 2006). Newer IAU 2000 work uses earthRotationAngle instead.
  • UT1 is taken as UTC, as in earthRotationAngle.

Parameters ​

ParameterTypeDescription
dateDateThe moment, as a Date.

Returns ​

Radians

Greenwich mean sidereal time θGMST in radians, in [0, 2π).

Throws ​

If date is not a valid Date.

Example ​

ts
// Vallado, Example 3-5: 1992-08-20 12:14 UT1
greenwichMeanSiderealTime(new Date('1992-08-20T12:14:00Z')); // ≈ 2.663 rad, 152.58°

See ​