mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
Utilities for calculating sky positions
Functions | |
template<typename realT > | |
int | mx::astro::calcAzEl (realT &az, realT &el, realT ha, realT dec, realT lat) |
Calculates the Azimuth and Elevation for a given Hour-Angle, Declination, and Latitude. More... | |
template<typename realT > | |
realT | mx::astro::parAngRad (realT sinHA, realT cosHA, realT sinDec, realT cosDec, realT tanLat) |
Calculate the Parallactic Angle from the pre-calculated trig functions. Result in radians. More... | |
template<typename realT > | |
realT | mx::astro::parAngDeg (realT sinHA, realT cosHA, realT sinDec, realT cosDec, realT tanLat) |
Calculate the Parallactic Angle from the pre-calculated trig functions. Result in degrees. More... | |
template<typename realT > | |
realT | mx::astro::parAngRad (realT ha, realT dec, realT lat) |
Calculate the Parallactic Angle, with angles in radians. More... | |
template<typename realT > | |
realT | mx::astro::parAngDeg (realT ha, realT dec, realT lat, bool newflag) |
Calculate the Parallactic Angle, with angles in degrees. More... | |
int mx::astro::calcAzEl | ( | realT & | az, |
realT & | el, | ||
realT | ha, | ||
realT | dec, | ||
realT | lat | ||
) |
Calculates the Azimuth and Elevation for a given Hour-Angle, Declination, and Latitude.
References: J. Meeus "Astronomical Algorithms", 1991; V. Pisacane "Fundamentals of Space Systems", 2nd ed., 2005.
realT | the real floating point type for calculations |
[out] | az | the calculated azimuth [degrees] |
[out] | el | the calculate elevation [degrees] |
[in] | ha | the hour ange [degrees] |
[in] | dec | the declination [degrees] |
[in] | lat | the latitude [degrees] |
Definition at line 212 of file astroDynamics.hpp.
realT mx::astro::parAngDeg | ( | realT | ha, |
realT | dec, | ||
realT | lat, | ||
bool | newflag | ||
) |
Calculate the Parallactic Angle, with angles in degrees.
[in] | ha | the hour angle, in degrees, negative to the east |
[in] | dec | the object declination, in degrees. |
[in] | lat | the observer latitude, in degrees. |
[in] | newflag | [temporary] to force adaptation of new argument order. Unused, so can be true or false. Added 2020-Jan-19. |
Definition at line 301 of file astroDynamics.hpp.
References mx::math::dtor(), mx::astro::parAngRad(), and mx::math::rtod().
realT mx::astro::parAngDeg | ( | realT | sinHA, |
realT | cosHA, | ||
realT | sinDec, | ||
realT | cosDec, | ||
realT | tanLat | ||
) |
Calculate the Parallactic Angle from the pre-calculated trig functions. Result in degrees.
[in] | sinHA | the sine of the target hour angle |
[in] | cosHA | the cosine of the target hour angle |
[in] | sinDec | the sine of the target declination |
[in] | cosDec | the cosine of the target declination |
[in] | tanLat | the tangent of the observer latitude |
Definition at line 263 of file astroDynamics.hpp.
References mx::astro::parAngRad(), and mx::math::rtod().
Referenced by SCENARIO().
realT mx::astro::parAngRad | ( | realT | ha, |
realT | dec, | ||
realT | lat | ||
) |
Calculate the Parallactic Angle, with angles in radians.
[in] | ha | the hour angle, in radians, negative to the east |
[in] | dec | the object declination, in radians. |
[in] | lat | the observer latitude, in radians. |
Definition at line 282 of file astroDynamics.hpp.
Referenced by mx::astro::parAngDeg().
realT mx::astro::parAngRad | ( | realT | sinHA, |
realT | cosHA, | ||
realT | sinDec, | ||
realT | cosDec, | ||
realT | tanLat | ||
) |
Calculate the Parallactic Angle from the pre-calculated trig functions. Result in radians.
[in] | sinHA | the sine of the target hour angle |
[in] | cosHA | the cosine of the target hour angle |
[in] | sinDec | the sine of the target declination |
[in] | cosDec | the cosine of the target declination |
[in] | tanLat | the tangent of the observer latitude |
Definition at line 244 of file astroDynamics.hpp.