Celestial coordinates: systems, reference frames and epochs
Adds a coordinate hierarchy alongside the existing WCS wrapper, for the
positions themselves rather than the pixel-to-world mapping. SuperNOVAS
is vendored as a submodule and owns every constant and rotation matrix;
nothing astronomical is reimplemented locally.
Model
-----
A position is described by three independent things, and the API keeps
each one a separate operation:
* System (CoordSystem) - which pole and origin the angles are measured
from. EquatorialCoordinates, GalacticCoordinates and
EclipticCoordinates each fix one and name the angles accordingly.
* Frame (CoordFrame) - the orientation of the axes: FK4, FK5, ICRS,
HIPPARCOS. Changing frame rotates the position.
* Epoch - the date the position is valid at. atEpoch() transports the
star along its own space motion without rotating anything.
Angles are in degrees throughout, proper motions in mas/yr, parallax in
mas, radial velocity in km/s, epochs are Julian dates on the TT scale.
Added
-----
* Parallax, radial velocity and epoch on SkyCoordinates, carried
through every system and frame conversion.
* CoordFrame::HIPPARCOS - ICRS axes at the J1991.25 catalogue epoch.
* epochOf(CoordFrame), epochOf(std::string) and currentEpoch(), thin
forwards to novas_epoch() and novas_set_current_time(); no date
arithmetic or leap-second constant is duplicated here.
* EquatorialCoordinates::atEpoch() taking a Julian date, an epoch
string ("J2026.7"), or a frame, plus atCurrentEpoch(). Backed by
transform_cat(PROPER_MOTION, ...), so parallax and radial velocity
give a nearby fast mover its perspective acceleration.
* A convertFrame() overload carrying the full space-motion vector.
* Doxygen documentation for the whole hierarchy and a README section.
* test/gTest_SkyCoo.cxx - 82 tests over 11 suites. Reference values
come from IAU/Hipparcos defining constants, published epoch
definitions and Astropy, never from SuperNOVAS itself, so a bug in
the wrapper cannot agree with itself.
Build
-----
* SuperNOVAS added as a submodule; include/supernovas gitignored.
* ENABLE_CPP set so libsupernovas++ is built, with CXX_STANDARD forced
to 17 from the parent (the vendored target pins 11, but
supernovas.h includes <optional>). DSTfits still links only
supernovas::core - the C++ API has no catalog-epoch propagation and
its Equatorial::to_system() carries only a direction vector, so
switching would silently drop proper motion.
* The WITH_DEBUG prebuilt-library fast path now also requires
libsupernovas++ and exports a supernovas::cpp imported target.
Known limitations
-----------------
* Proper motion is not carried into or out of the galactic and
ecliptic systems; the rate would need re-projecting onto different
axes. Parallax, radial velocity and epoch do travel through.
* FK4 is the exception to "a frame change is only a rotation":
NOVAS routes those legs through CHANGE_EPOCH, which also transports
the star over the 50 years to or from B1950.0, so the epoch follows
the frame there.
* Epoch round-trips do not close exactly for a non-zero radial
velocity. transform_cat() scales the returned proper motion by the
input distance while reporting the updated parallax, leaving a
residual of order mu*dt*(v_r*dt/d) - about 0.4 mas for a 50 pc star
at 30 km/s over 50 years. Covered as an upper bound by
SkyCoo_atEpoch.radialMotionLeavesASmallRoundTripResidual, so the
test still passes if upstream fixes it.
* CoordSystem::UNDEFINED and CoordSystem::EQUATORIAL are both 0, so an
unset system reads as equatorial. Documented, not renumbered.