Skip to main content

Module angles

Module angles 

Source
Expand description

Satellite angular geometry against celestial bodies.

Computes nadir/Sun, nadir/Moon, Sun-elevation, phase, and Earth angular radius angles from GCRS position vectors (km), returning degrees. This is the authoritative implementation; the Elixir binding is a thin marshaling layer over it, and the high-level compute orchestration (TLE propagation plus ephemeris lookup) stays caller-side over the already-core kernels.

Enums§

AngleError
Error while computing satellite angular geometry.

Functions§

earth_angular_radius
Angular radius (degrees) of the Earth as seen from the satellite: asin(R_earth / |sat_pos|), clamped to the asin domain.
moon_angle
Angle (degrees) between satellite nadir and the Moon direction.
normalize_geodetic_lon_rad
Snap a geodetic longitude (radians) off the -pi branch cut onto +pi.
phase_angle
Sun-satellite-observer phase angle (degrees): the angle at the satellite between the Sun and the observer.
rad_to_deg_ref
Radians to degrees in the reference operation order (rad * 180 / pi, multiply before divide), required for bit-exact parity with the prior Elixir reference rather than a single rounded RAD_TO_DEG constant.
sun_angle
Angle (degrees) between satellite nadir and the Sun direction.
sun_elevation
Sun elevation (degrees) above the satellite’s local horizontal plane.