IMPORTANT: This function differs from astro_sphere_from_vector in two ways:
The longitude value represents azimuth defined clockwise from north
(e.g., east = +90), preserving traditional navigational conventions.
This function optionally corrects for atmospheric refraction.
The returned structure contains the azimuth in the lon field, measured in
degrees clockwise from north: east = +90 degrees, west = +270 degrees.
IMPORTANT: This function differs from astro_sphere_from_vector() in two ways:
astro_sphere_from_vector() returns a lon value that represents azimuth defined
counterclockwise from north (e.g., west = +90), but this function represents a
clockwise rotation (e.g., east = +90). The difference is because
astro_sphere_from_vector() is intended to preserve the vector "right-hand rule",
while this function defines azimuth in a more traditional way as used in
navigation and cartography.
This function optionally corrects for atmospheric refraction, while
astro_sphere_from_vector() does not.
The returned structure contains the azimuth in lon.
It is measured in degrees clockwise from north: east = +90 degrees, west = +270 degrees.
The altitude is stored in lat.
The distance to the observed object is stored in dist, and is expressed in
astronomical units (AU).