Replies: 7 comments
-
How accurate is libnova? |
Beta Was this translation helpful? Give feedback.
-
What is Horizon? Doesn't seem to be an easily googlable name :) I get lots of irrelevant search results.
Yes, at least the marker is exactly in the center of solar disc.
I didn't try to compute these. And yes, libnova does have a function for deltaT: ln_get_dynamical_time_diff.
From the docs, |
Beta Was this translation helpful? Give feedback.
-
Sorry, JPL Horizons. https://ssd.jpl.nasa.gov/?horizons You must compute planet positions in JDE time frame before determining their location relative to the observer in UT time frame. Please read e.g. Meeus, Astronomical Algorithms or other astronomy ephemeris calculation books (or at least our Guide) about DeltaT. |
Beta Was this translation helpful? Give feedback.
-
Reading now the Guide. I actually didn't even know there was such a thing before creating this issue, much less that it explains such details! BTW, in §17.4.2, I see a strange statement that "a double precision float can keep only about 13 decimal places". This is actually wrong: for IEEE754 binary64, 15 decimal digits are guaranteed to round-trip through decimal-binary-decimal conversion with the standard rounding to nearest/ties-to-even. See e.g. the value your compiler provides for So the calculations saying that 12:34:56UT is computed to be 2451545.02426 are misleading: the closest representable binary64 JD to this date is 2451545.0242592594586312770843505859375 (in hex |
Beta Was this translation helpful? Give feedback.
-
OK, compared with JPL Horizons' ephemeris, and the differences from Stellarium appear much smaller: 0.007° for azimuth and 0.01° for elevation. This looks much closer to the 20" you mentioned for light aberration. |
Beta Was this translation helpful? Give feedback.
-
Indeed, thanks for noting. For some reason I had falsely remembered 13 digits, it's 15 and somewhat more (WP says 15.95). That's fine! |
Beta Was this translation helpful? Give feedback.
-
OK, since Stellarium is reasonably close to JPL Horizons in the output, and the latter must be much more reliable than some largely-unmaintained library like libnova, I think Stellarium's ephemeris are good enough. (libnova even in its |
Beta Was this translation helpful? Give feedback.
-
I was comparing the ephemeris calculated by Stellarium's tool with the results given by libnova. From my experiments with whole day 2019-04-14 at latitude 59°56'19.06" and longitude 30°18'50.87", the difference is up to 0.39° in azimuth and 0.22° in altitude when refraction is disabled.
What is actual expected error of Stellarium's calculations? Is the difference above within the error tolerance?
For reference, here's the code I used to get libnova's results:
Beta Was this translation helpful? Give feedback.
All reactions