ssapy_toolkit.Coordinates.unit_conversions
Functions
|
Normalize angle(s) in degrees to the range [0, 360). |
|
Normalize a list/array of angles (deg) to [0, 360). |
|
Normalize angle(s) in degrees to the range [-90, 90]. |
|
Normalize a list/array of angles (deg) to [-90, 90]. |
|
Convert degrees/minutes/seconds (DMS) to decimal degrees. |
|
Convert degrees/minutes/seconds (DMS) to radians. |
|
Normalize angle(s) in radians to the range [0, 2π). |
- ssapy_toolkit.Coordinates.unit_conversions.deg0to360(x)[source]
Normalize angle(s) in degrees to the range [0, 360).
- Parameters:
- Returns:
Normalized angle(s) in degrees.
- Return type:
- ssapy_toolkit.Coordinates.unit_conversions.deg0to360array(array_)[source]
Normalize a list/array of angles (deg) to [0, 360).
- Parameters:
array (sequence of float or numpy.ndarray)
- Returns:
Normalized angles in degrees.
- Return type:
- ssapy_toolkit.Coordinates.unit_conversions.deg90to90(x)[source]
Normalize angle(s) in degrees to the range [-90, 90].
Note
Uses the standard wrap formula: ((x + 90) % 180) - 90
- Parameters:
- Returns:
Normalized angle(s) in degrees.
- Return type:
- ssapy_toolkit.Coordinates.unit_conversions.deg90to90array(array_)[source]
Normalize a list/array of angles (deg) to [-90, 90].
- Parameters:
array (sequence of float or numpy.ndarray)
- Returns:
Normalized angles in degrees.
- Return type:
- ssapy_toolkit.Coordinates.unit_conversions.dms_to_deg(coords)[source]
Convert degrees/minutes/seconds (DMS) to decimal degrees.