Skip to content

Commit

Permalink
Yet more fixes, yet more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Feb 8, 2024
1 parent 56f6b3a commit 1494ac4
Show file tree
Hide file tree
Showing 58 changed files with 3,189 additions and 1,060 deletions.
8 changes: 5 additions & 3 deletions README-headless.md
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,11 @@ on how they are appropriate for the old and new methodologies respectively.
* for J2000 - TOD - ITRS (old methodology): `j2000_to_tod()`, `tod_to_itrs()`, and `itrs_to_tod()`,
`tod_to_j2000()`.

- New `cirs_to_hor()` function similar to the existing `equ2hor()`. Whereas the latter converts from TOD to
to local horizontal (old methodology), the new function does the same from CIRS (new IAU standard methodology).
As such it can be used after `place()` is called with `NOVAS_CIRS` as the coordinate system.
- New `cirs_to_hor()` and `tod_to_hor()` functions similar to the existing `equ2hor()`. Whereas `tod_to_hor()` is
effectively a just better named bersion of `equ2hor()` for converting from TOD to to local horizontal (old
methodology), the `cirs_to_hor()` does the same from CIRS (new IAU standard methodology), and had no equivalent
in NOVAS C 3.1. As such, `cirs_to_hor()` may be used after `place()` is called with `NOVAS_CIRS` as the coordinate
system.

- New `refract_astro()` function that complements the existing `refract()` but takes an unrefracted zenith angle
as its argument.
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,11 @@ on how they are appropriate for the old and new methodologies respectively.
* for J2000 - TOD - ITRS (old methodology): `j2000_to_tod()`, `tod_to_itrs()`, and `itrs_to_tod()`,
`tod_to_j2000()`.

- New `cirs_to_hor()` function similar to the existing `equ2hor()`. Whereas the latter converts from TOD to
to local horizontal (old methodology), the new function does the same from CIRS (new IAU standard methodology).
As such it can be used after `place()` is called with `NOVAS_CIRS` as the coordinate system.
- New `cirs_to_hor()` and `tod_to_hor()` functions similar to the existing `equ2hor()`. Whereas `tod_to_hor()` is
effectively a just better named bersion of `equ2hor()` for converting from TOD to to local horizontal (old
methodology), the `cirs_to_hor()` does the same from CIRS (new IAU standard methodology), and had no equivalent
in NOVAS C 3.1. As such, `cirs_to_hor()` may be used after `place()` is called with `NOVAS_CIRS` as the coordinate
system.

- New `refract_astro()` function that complements the existing `refract()` but takes an unrefracted zenith angle
as its argument.
Expand Down
9 changes: 6 additions & 3 deletions include/novas.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ enum novas_reference_system {
enum novas_equator_type {
NOVAS_MEAN_EQUATOR = 0, ///< Mean equator without nutation (pre IAU 2006 system).
NOVAS_TRUE_EQUATOR, ///< True equator (pre IAU 2006 system).
NOVAS_ICRS_EQUATOR ///< International Celestiual Reference system (ICRS). The equatorial system fixed to the frame of distant quasars.
NOVAS_GCRS_EQUATOR ///< Geocentric Celestial Reference system (GCRS).
};

/**
Expand Down Expand Up @@ -390,8 +390,8 @@ enum novas_wobble_direction {
* @sa TIE_J2000_TO_ICRS
*/
enum novas_frametie_direction {
TIE_ICRS_TO_J2000 = -1, ///< Change coordinates from ICRS to the J2000 (dynamical) frame. (You can also use any negative value for the same effect).
TIE_J2000_TO_ICRS ///< Change coordinates from J2000 (dynamical) frame to the ICRS. (You can use any value &gt;=0 for the same effect).
TIE_J2000_TO_ICRS = -1, ///< Change coordinates from ICRS to the J2000 (dynamical) frame. (You can also use any negative value for the same effect).
TIE_ICRS_TO_J2000 ///< Change coordinates from J2000 (dynamical) frame to the ICRS. (You can use any value &gt;=0 for the same effect).
};

/**
Expand Down Expand Up @@ -786,6 +786,9 @@ int tod_to_j2000(double jd_tt, enum novas_accuracy accuracy, const double *in, d
int cirs_to_hor(double jd_ut1, double ut1_to_tt, enum novas_accuracy accuracy, double xp, double yp, const on_surface *location, double ra,
double dec, double *zd, double *az);

int tod_to_hor(double jd_ut1, double ut1_to_tt, enum novas_accuracy accuracy, double xp, double yp, const on_surface *location, double ra,
double dec, double *zd, double *az);

#include "solarsystem.h"

#endif /* _NOVAS_ */
Loading

0 comments on commit 1494ac4

Please sign in to comment.