Heading of bodies rising/setting ? #228
-
Im using Astronomy_SearchRiseSet which is working fine but I'd like to know the heading of were the body is ... to help someone with boinoculars locate it. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hi @achalmers. The easiest way to do this is to use the time returned by Astronomy_SearchRiseSet, and call Astronomy_Horizon with the same body and time. The return value will be horizontal coordinates in the type astro_horizon_t. The |
Beta Was this translation helpful? Give feedback.
-
As a clarification, you will need to call Astronomy_Equator, asking for EQUATOR_OF_DATE coordinates and enabling aberration. This will get you the angular RA (right ascension) and DEC (declination) coordinates, that you then pass to Astronomy_Horizon. Something like this: astro_equatorial_t eqd;
astro_horizon_t hor;
eqd = Astronomy_Equator(body, &time, observer, EQUATOR_OF_DATE, ABERRATION);
hor = Astronomy_Horizon(&time, observer, eqd.ra, eqd.dec, REFRACTION_NORMAL);
printf("compass direction = %0.3lf\n", hor.azimuth); |
Beta Was this translation helpful? Give feedback.
-
@achalmers Did the above answer your question sufficiently? |
Beta Was this translation helpful? Give feedback.
-
Yes it did, thx.
I posted my code so others can quickly get the position and azimuth.
A
…On Wed, Jun 1, 2022, 8:59 PM Don Cross ***@***.***> wrote:
@achalmers <https://github.com/achalmers> Did the above answer your
question sufficiently?
—
Reply to this email directly, view it on GitHub
<#228 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZPWCME5BTNU3P6B5S3363VNABOJANCNFSM5XOQXKWQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Hi @achalmers. The easiest way to do this is to use the time returned by Astronomy_SearchRiseSet, and call Astronomy_Horizon with the same body and time. The return value will be horizontal coordinates in the type astro_horizon_t. The
azimuth
field will tell you what compass direction to look. The azimuth value is oriented such that 0=North, 90=East, 180=South, 270=West.