Skip to content

Commit 1494ac4

Browse files
committed
Yet more fixes, yet more tests
1 parent 56f6b3a commit 1494ac4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+3189
-1060
lines changed

README-headless.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,11 @@ on how they are appropriate for the old and new methodologies respectively.
500500
* for J2000 - TOD - ITRS (old methodology): `j2000_to_tod()`, `tod_to_itrs()`, and `itrs_to_tod()`,
501501
`tod_to_j2000()`.
502502

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

507509
- New `refract_astro()` function that complements the existing `refract()` but takes an unrefracted zenith angle
508510
as its argument.

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -512,9 +512,11 @@ on how they are appropriate for the old and new methodologies respectively.
512512
* for J2000 - TOD - ITRS (old methodology): `j2000_to_tod()`, `tod_to_itrs()`, and `itrs_to_tod()`,
513513
`tod_to_j2000()`.
514514

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

519521
- New `refract_astro()` function that complements the existing `refract()` but takes an unrefracted zenith angle
520522
as its argument.

include/novas.h

+6-3
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ enum novas_reference_system {
236236
enum novas_equator_type {
237237
NOVAS_MEAN_EQUATOR = 0, ///< Mean equator without nutation (pre IAU 2006 system).
238238
NOVAS_TRUE_EQUATOR, ///< True equator (pre IAU 2006 system).
239-
NOVAS_ICRS_EQUATOR ///< International Celestiual Reference system (ICRS). The equatorial system fixed to the frame of distant quasars.
239+
NOVAS_GCRS_EQUATOR ///< Geocentric Celestial Reference system (GCRS).
240240
};
241241

242242
/**
@@ -390,8 +390,8 @@ enum novas_wobble_direction {
390390
* @sa TIE_J2000_TO_ICRS
391391
*/
392392
enum novas_frametie_direction {
393-
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).
394-
TIE_J2000_TO_ICRS ///< Change coordinates from J2000 (dynamical) frame to the ICRS. (You can use any value &gt;=0 for the same effect).
393+
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).
394+
TIE_ICRS_TO_J2000 ///< Change coordinates from J2000 (dynamical) frame to the ICRS. (You can use any value &gt;=0 for the same effect).
395395
};
396396

397397
/**
@@ -786,6 +786,9 @@ int tod_to_j2000(double jd_tt, enum novas_accuracy accuracy, const double *in, d
786786
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,
787787
double dec, double *zd, double *az);
788788

789+
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,
790+
double dec, double *zd, double *az);
791+
789792
#include "solarsystem.h"
790793

791794
#endif /* _NOVAS_ */

0 commit comments

Comments
 (0)