Errors with NOVAS_FULL_ACCURACY and default solsys3 #71
-
So, I'm trying to follow the readme on getting az/el for a sidereal source with the new methods and am running into some issues. I'm trying #include "novas.h"
#include "solarsystem.h"
#include <stdio.h>
int main(void) {
cat_entry star;
object source;
observer obs;
novas_timespec t_obs;
sky_pos apparent;
novas_frame obs_frame;
double az, el;
novas_debug(NOVAS_DEBUG_EXTRA);
make_cat_entry("Antares", "FK4", 1, 16.43894213, -26.323094, -12.11, -23.30, 5.89, -3.4, &star);
transform_cat(CHANGE_EPOCH, NOVAS_JD_B1950, &star, NOVAS_JD_J2000, "FK5", &star);
transform_cat(CHANGE_J2000_TO_ICRS, 0.0, &star, 0.0, "ICRS", &star);
make_cat_object(&star, &source);
make_observer_on_surface(-50.7374, -60.0982, 60.0, 0.0, 0.0, &obs);
novas_set_time(NOVAS_TAI, 2460570.659259, 37, 0.114, &t_obs);
novas_make_frame(NOVAS_FULL_ACCURACY, &obs, &t_obs, 0.0, 0.0, &obs_frame);
novas_sky_pos(&source, &obs_frame, NOVAS_CIRS, &apparent);
novas_app_to_hor(&obs_frame, NOVAS_CIRS, apparent.ra, apparent.dec, novas_standard_refraction, &az, &el);
printf("AZ: %f, EL: %f", az, el);
} But
If I'm understanding this correctly - with all the default Makefile options, linking against Trying one other thing, letting the "lower performance" solsys stuff take the place of the enable_earth_sun_hp(1); results in some other error
Which I suppose all points to the fact that |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Right, you cannot construct a high-precision frame without having positions for the massive planets, around which gravitational bending cannot be ignored, in general, if you want μas precision. But, you can still construct reduced precision frames with mas precision without those planets. And that should work. |
Beta Was this translation helpful? Give feedback.
-
Basically, there are limited number of high-precision calculations that you can do without having a proper ephemeris plugin... For v1.2 (expected Feb 2025), I'm thinking of implementing a |
Beta Was this translation helpful? Give feedback.
-
I'll transfer this to discussion, since it's not really an issue. It's just an inconvenient feature. |
Beta Was this translation helpful? Give feedback.
-
Ok sounds good! This is for radio, and we only need arcmin pointing anyway haha. I see in the docs for |
Beta Was this translation helpful? Give feedback.
-
You'll probably want to observe planets, moons, asteroids, and comets with DSA-2000, and you'll inevitable have to have an ephemeris provider. And once you have that, you can integrate it with SuperNOVAS, and you'll have all the high-precision features unlocked.... |
Beta Was this translation helpful? Give feedback.
-
I added a note to the |
Beta Was this translation helpful? Give feedback.
-
And also in the README, in the example section, at b345d4f |
Beta Was this translation helpful? Give feedback.
Right, you cannot construct a high-precision frame without having positions for the massive planets, around which gravitational bending cannot be ignored, in general, if you want μas precision. But, you can still construct reduced precision frames with mas precision without those planets. And that should work.