|
LSSTApplications
1.1.2+25,10.0+13,10.0+132,10.0+133,10.0+224,10.0+41,10.0+8,10.0-1-g0f53050+14,10.0-1-g4b7b172+19,10.0-1-g61a5bae+98,10.0-1-g7408a83+3,10.0-1-gc1e0f5a+19,10.0-1-gdb4482e+14,10.0-11-g3947115+2,10.0-12-g8719d8b+2,10.0-15-ga3f480f+1,10.0-2-g4f67435,10.0-2-gcb4bc6c+26,10.0-28-gf7f57a9+1,10.0-3-g1bbe32c+14,10.0-3-g5b46d21,10.0-4-g027f45f+5,10.0-4-g86f66b5+2,10.0-4-gc4fccf3+24,10.0-40-g4349866+2,10.0-5-g766159b,10.0-5-gca2295e+25,10.0-6-g462a451+1
LSSTDataManagementBasePackage
|
Routines for converting right ascension and declination from degrees or radians into strings and back again. More...
Functions | |
| double | radToDeg (long double angleInRadians) |
| double | degToRad (long double angleInDegrees) |
| std::string | lsst::utils::raRadToStr (double raRad) |
| std::string | lsst::utils::raDegToStr (double raDeg) |
| std::string | lsst::utils::decRadToStr (double decRad) |
| std::string | lsst::utils::decDegToStr (double decDeg) |
| std::string | lsst::utils::raDecRadToStr (double raRad, double decRad) |
| std::string | lsst::utils::raDecDegToStr (double raDeg, double decDeg) |
| double | lsst::utils::raStrToRad (std::string raStr, std::string delimiter=":") |
| double | lsst::utils::raStrToDeg (std::string raStr, std::string delimiter=":") |
| double | lsst::utils::decStrToRad (std::string decStr, std::string delimiter=":") |
| double | lsst::utils::decStrToDeg (std::string decStr, std::string delimiter=":") |
Routines for converting right ascension and declination from degrees or radians into strings and back again.
Right ascensions and declinations (raDecs) are easiest read as strings in the form hh:mm:ss.ss +dd:mm::ss.s, but for calculations, they need to be in degrees or radians. These functions perform those calculations. The function names themselves use the following abbreviations
So, for example raStrToRad() converts a right ascension in the form of a string to radians.
The ouput strings are in fixed length Ra = hh:mm:ss.ss and Dec= +dd:mm::ss.s with all zeros present (not replaced with whitespace).
Input strings must be of a similar format, although some variation is allowed. The default delimiter (the colon) can be supplied as an optional argument
| string lsst::utils::decDegToStr | ( | double | decDeg | ) |
Definition at line 102 of file RaDecStr.cc.
| string lsst::utils::decRadToStr | ( | double | decRad | ) |
Definition at line 97 of file RaDecStr.cc.
| double lsst::utils::decStrToDeg | ( | std::string | decStr, |
| std::string | delimiter = ":" |
||
| ) |
Definition at line 195 of file RaDecStr.cc.
| double lsst::utils::decStrToRad | ( | std::string | decStr, |
| std::string | delimiter = ":" |
||
| ) |
Definition at line 190 of file RaDecStr.cc.
| double degToRad | ( | long double | angleInDegrees | ) |
Definition at line 67 of file RaDecStr.cc.
| string lsst::utils::raDecDegToStr | ( | double | raDeg, |
| double | decDeg | ||
| ) |
Definition at line 134 of file RaDecStr.cc.
| string lsst::utils::raDecRadToStr | ( | double | raRad, |
| double | decRad | ||
| ) |
Definition at line 127 of file RaDecStr.cc.
| string lsst::utils::raDegToStr | ( | double | raDeg | ) |
Definition at line 79 of file RaDecStr.cc.
| double radToDeg | ( | long double | angleInRadians | ) |
Definition at line 61 of file RaDecStr.cc.
| string lsst::utils::raRadToStr | ( | double | raRad | ) |
Convert a right ascension in radians to a string format
| raRad | Ra in radians |
Definition at line 75 of file RaDecStr.cc.
| double lsst::utils::raStrToDeg | ( | std::string | raStr, |
| std::string | delimiter = ":" |
||
| ) |
Definition at line 155 of file RaDecStr.cc.
| double lsst::utils::raStrToRad | ( | std::string | raStr, |
| std::string | delimiter = ":" |
||
| ) |
Definition at line 150 of file RaDecStr.cc.
1.8.5