4 #include "../../catch2/catch.hpp"
7 #include "../../../include/astro/astroDynamics.hpp"
15 SCENARIO(
"calculating parallactic angles",
"[astroDynamics::parang]" )
17 GIVEN(
"a typical target")
21 double dec = -51.06575;
23 WHEN(
"before transit")
25 double ha = -0.739167/24.*360.;
28 double diff = fabs( parang - (-24.903));
31 REQUIRE(diff <= 1e-1);
36 double ha = 2.008889/24.*360.;
39 double diff = fabs( parang - (57.1241));
42 REQUIRE(diff <= 1e-1);
SCENARIO("calculating parallactic angles", "[astroDynamics::parang]")
realT parAngDeg(realT sinHA, realT cosHA, realT sinDec, realT cosDec, realT tanLat)
Calculate the Parallactic Angle from the pre-calculated trig functions. Result in degrees.