Go to the documentation of this file.
40 opts.AddProgramDescription(std::string() +
41 "Converts from CIRS coordinates to Galactic coordinates for a given " +
58 std::printf(
"******************************************\n") ;
59 std::printf(
"* Results of CIRS -> Galactic conversion *\n") ;
60 std::printf(
"******************************************\n") ;
61 std::printf(
"Galactic Coordinates (output)\n") ;
62 std::printf(
" Galactic Lon.: %f degrees\n", results.
XCoord().
Deg()) ;
63 std::printf(
" Galactic Lat.: %+f degrees\n", results.
YCoord().
Deg()) ;
64 std::printf(
"CIRS Coordinates (input)\n") ;
65 std::printf(
" Right Ascension: %f degrees\n", opts.AsDouble(
"ra")) ;
66 std::printf(
" Declination : %+f degrees\n", opts.AsDouble(
"dec")) ;
67 std::printf(
" Julian Date : %f\n", opts.AsDouble(
"juliandate")) ;
73 int main(
int argc,
char** argv)
77 if (opts.ParseCommandLine(argc, argv))
return 0;
RA, Dec (referenced at the center of the Earth)
CEExecOptions DefineOpts()
Define the command line options for this program.
CESkyCoord ConvertToGalactic(const CEDate &date=CEDate(), const CEObserver &observer=CEObserver())
Convert this coordinate to GALACTIC coordinates.
double Deg(void) const
Return angle in degrees as a double.
int main(int argc, char **argv)
static CEAngle Deg(const double &angle)
Return angle (radians) constructed from a degree angle.
void PrintResults(CEExecOptions &opts, const CESkyCoord &results)
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.