Dear support,
I am trying to run the transform example code that is included in libnova distribution.
I also have made the same ra/dec to alt/az conversion using Stellarium and an online conversion tool but unfortunatelly I have got different results.
Here is libnova example result:
JD 2453121.013067
(Alnilam) Equ to Horiz ALT 24.410553
(Alnilam) Equ to Horiz AZ 247.293709
ALT 24:24:37.991195 AZ 247:17:37.352136
(Alnilam) Horiz to Equ RA 84.109089
(Alnilam) Horiz to Equ DEC -1.200000
RA 5:36:26.181311 DEC 1:12:0.000000
Please se attached picture showing different result: ALT 26:34:34.9 AZ 119:26:56.9
I have also used this online calculator
http://www.convertalot.com/celestial_horizon_co-ordinates_calculator.html.
Its result was consistent with Stellarium but also different from your
LIBNOVA example:
Online tool result: ALT 26.65 AZ 119.55
Notice I had to put my local computer time (GMT -3) to get the correct JD time.
Hope you can help me.
Best
Andre
Here is the example code:
struct lnh_equ_posn hobject, hequ;
struct lnh_lnlat_posn hobserver;
struct ln_equ_posn object, equ;
struct ln_hrz_posn hrz;
struct lnh_hrz_posn hhrz;
struct ln_lnlat_posn observer;
struct ln_date date;
double JD;