Go to the documentation of this file.
40 opts.AddProgramDescription(std::string() +
41 "Converts from ICRS (solar system barycentric) coordinates to " +
42 "Galactic coordinates.");
60 std::printf(
"******************************************\n") ;
61 std::printf(
"* Results of ICRS -> Galactic conversion *\n") ;
62 std::printf(
"******************************************\n") ;
63 std::printf(
"Galactic Coordinates (output)\n") ;
64 std::printf(
" Galactic Lon.: %f degrees\n", output.
XCoord().
Deg()) ;
65 std::printf(
" Galactic Lat.: %+f degrees\n", output.
YCoord().
Deg()) ;
66 std::printf(
"ICRS Coordinates (input)\n") ;
67 std::printf(
" Right Ascension: %02dh %02dm %04.1fs (%f deg)\n",
68 int(input_hms[0]),
int(input_hms[1]), input_hms[2],
70 std::printf(
" Declination : %+f degrees\n", input.
YCoord().
Deg()) ;
77 int main(
int argc,
char** argv)
81 if (opts.ParseCommandLine(argc, argv))
return 0;
RA, Dec (referenced at the barycenter of the solarsystem)
std::vector< double > HmsVect(void) const
Return vector of doubles representing the {hours, min, sec, sec-fraction}.
CEExecOptions DefineOpts()
Define the command line options for this program.
int main(int argc, char **argv)
Main method.
CESkyCoord ConvertToGalactic(const CEDate &date=CEDate(), const CEObserver &observer=CEObserver())
Convert this coordinate to GALACTIC coordinates.
void PrintResults(const CESkyCoord &input, const CESkyCoord &output)
Print the results of the analysis.
double Deg(void) const
Return angle in degrees as a double.
static CEAngle Deg(const double &angle)
Return angle (radians) constructed from a degree angle.
virtual CEAngle XCoord(const CEDate &jd=CppEphem::julian_date_J2000()) const
Return x coordinate at given Julian date.
virtual CEAngle YCoord(const CEDate &jd=CppEphem::julian_date_J2000()) const
Return y coordinate at given Julian date.