Expand description
Angular geometry helpers for sky directions and satellite body geometry.
Computes general angular separation between arbitrary directions or
(lon, lat) / (RA, Dec) pairs, position angle measured North through East,
and satellite nadir/Sun, nadir/Moon, Sun-elevation, phase, solar beta, and
Earth angular radius angles. Public angle-producing helpers in this module
return degrees unless their names state otherwise.
Enums§
- Angle
Error - Error while computing satellite angular geometry.
Functions§
- angular_
separation - On-sky angle (degrees) between two direction vectors, via the stable
atan2(|a x b|, a . b)form. - angular_
separation_ coords - On-sky angle (degrees) between two
(lon, lat)/(RA, Dec)pairs in degrees. The second tuple component is the latitude or declination in[-90, 90]. - beta_
angle - Solar beta angle (degrees, signed, in [-90, 90]): the elevation of the Sun
above the orbit plane,
beta = 90 - angle(orbit_normal, sun), computed in the normativepi/2 - acos(clamp(cos))operation order. - beta_
angle_ from_ state - Solar beta angle (degrees) from an inertial Cartesian state.
- earth_
angular_ radius - Angular radius (degrees) of the Earth as seen from the satellite:
asin(R_earth / |sat_pos|), clamped to theasindomain. - moon_
angle - Angle (degrees) between satellite nadir and the Moon direction.
- normalize_
geodetic_ lon_ rad - Snap a geodetic longitude (radians) off the
-pibranch cut onto+pi. - phase_
angle - Sun-satellite-observer phase angle (degrees): the angle at the satellite between the Sun and the observer.
- position_
angle - Position angle (degrees,
[0, 360)) oftoas seen fromfrom, measured from North (+lat) through East (+lon). Inputs are(lon, lat)in degrees. - 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 roundedRAD_TO_DEGconstant. - sun_
angle - Angle (degrees) between satellite nadir and the Sun direction.
- sun_
elevation - Sun elevation (degrees) above the satellite’s local horizontal plane.