Documentation / @interstellar-tools/equations / localSiderealTime
Function: localSiderealTime()
ts
function localSiderealTime(date: Date, longitude: Radians): Radians;Defined in: cartography/earth-rotation.ts:165
Compute local mean sidereal time: Greenwich mean sidereal time turned by a longitude, the angle from the mean equinox to the local meridian.
Where:
is greenwichMeanSiderealTime (rad) is the longitude, east positive (rad)
Units
- Inputs: a
Date, and the longitude in radians. - Output:
in radians, in [0, 2π).
Notes
- A star is on the local meridian when its right ascension equals the local sidereal time.
Parameters
| Parameter | Type | Description |
|---|---|---|
date | Date | The moment, as a Date. |
longitude | Radians | Longitude |
Returns
Local mean sidereal time
Throws
If date is not a valid Date, or longitude is not a finite number.
Example
ts
// Vallado, Example 3-5: 104° W, 1992-08-20 12:14 UT1
localSiderealTime(new Date('1992-08-20T12:14:00Z'), toRad(-104)); // ≈ 0.848 rad, 48.58°