View Source SpaceDust.Observations.AzEl (Space Dust v0.3.0)
Azimuth and Elevation (Altitude) observation.
Represents an angular observation in the local horizontal coordinate system:
- Azimuth (Az): Angle measured clockwise from true North, in radians [0, 2π)
- Elevation (El): Angle measured above the local horizon, in radians [-π/2, +π/2] Also called "altitude" in astronomical contexts.
Optionally includes range (slant range) and range rate if available.
Summary
Functions
Check if the target is above a minimum elevation.
Check if the target is above the horizon.
Get compass direction from azimuth.
Create Az/El from degrees instead of radians.
Create a new Az/El observation.
Convert to degrees. Returns {az_degrees, el_degrees}.
Get a formatted string representation.
Types
Functions
Check if the target is above a minimum elevation.
Check if the target is above the horizon.
Get compass direction from azimuth.
@spec from_degrees(DateTime.t(), float(), float(), keyword()) :: t()
Create Az/El from degrees instead of radians.
@spec new(DateTime.t(), float(), float(), keyword()) :: t()
Create a new Az/El observation.
Parameters
- epoch: UTC DateTime of the observation
- azimuth: Azimuth in radians [0, 2π), measured clockwise from North
- elevation: Elevation in radians [-π/2, +π/2], measured above horizon
- opts: Optional parameters
- :range - Slant range in kilometers
- :range_rate - Range rate in km/s
- :azimuth_rate - Azimuth rate in rad/s
- :elevation_rate - Elevation rate in rad/s
Example
iex> SpaceDust.Observations.AzEl.new(~U[2024-01-01 12:00:00Z], 1.5, 0.3)
Convert to degrees. Returns {az_degrees, el_degrees}.
Get a formatted string representation.