View Source SpaceDust.Time.GMST (Space Dust v0.3.0)

Greenwich Mean Sidereal Time (GMST).

GMST is the hour angle of the mean vernal equinox measured from the Greenwich meridian. It represents the Earth's rotation angle and is essential for converting between Earth-fixed and inertial reference frames.

GMST differs from Greenwich Apparent Sidereal Time (GAST) by the equation of the equinoxes (nutation in right ascension).

Internally stores the GMST angle in radians.

Summary

Functions

Create from degrees.

Create from hours.

Create from Nx tensor.

Create a GMST from radians.

Normalize to range [0, 2π).

Get the GMST angle in degrees.

Get the GMST angle in hours.

Get the GMST angle in radians.

Convert to Nx tensor (radians).

Types

t()

@type t() :: %SpaceDust.Time.GMST{radians: float()}

Functions

from_degrees(degrees)

@spec from_degrees(float()) :: t()

Create from degrees.

from_hours(hours)

@spec from_hours(float()) :: t()

Create from hours.

from_tensor(tensor)

@spec from_tensor(Nx.Tensor.t()) :: t()

Create from Nx tensor.

new(radians)

@spec new(float()) :: t()

Create a GMST from radians.

normalize(gmst)

@spec normalize(t()) :: t()

Normalize to range [0, 2π).

to_degrees(gmst)

@spec to_degrees(t()) :: float()

Get the GMST angle in degrees.

to_hours(gmst)

@spec to_hours(t()) :: float()

Get the GMST angle in hours.

to_radians(gmst)

@spec to_radians(t()) :: float()

Get the GMST angle in radians.

to_tensor(gmst)

@spec to_tensor(t()) :: Nx.Tensor.t()

Convert to Nx tensor (radians).