Go to the documentation of this file.
39 opts.AddProgramDescription(std::string() +
40 "Converts from CIRS (Earth centric) coordinates to ICRS (solar " +
41 "system barycentric) coordinates for a given Julian date.");
61 std::printf(
"**********************************************\n") ;
62 std::printf(
"* Results of CIRS -> ICRS *\n") ;
63 std::printf(
"**********************************************\n") ;
64 std::printf(
"ICRS Coordinates (output)\n") ;
65 std::printf(
" Julian Date : %f\n", jd) ;
66 std::printf(
" Right Ascension: %02dh %02dm %04.1fs (%f deg)\n",
67 int(output_hms[0]),
int(output_hms[1]), output_hms[2]+output_hms[3],
69 std::printf(
" Declination : %+f degrees\n", output.
YCoord().
Deg()) ;
70 std::printf(
"CIRS Coordinates (input)\n") ;
71 std::printf(
" Right Ascension: %02dh %02dm %04.1fs (%f deg)\n",
72 int(input_hms[0]),
int(input_hms[1]), input_hms[2]+input_hms[3],
74 std::printf(
" Declination : %+f degrees\n", input.
YCoord().
Deg()) ;
82 int main (
int argc,
char** argv)
86 if (opts.ParseCommandLine(argc, argv))
return 0 ;
97 PrintResults(input, output, opts.AsDouble(
"juliandate")) ;
RA, Dec (referenced at the center of the Earth)
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.
double Deg(void) const
Return angle in degrees as a double.
int main(int argc, char **argv)
MAIN.
void PrintResults(const CESkyCoord &input, const CESkyCoord &output, double jd)
Print the results of the conversion.
static CEAngle Deg(const double &angle)
Return angle (radians) constructed from a degree angle.
CESkyCoord ConvertToICRS(const CEDate &date=CEDate(), const CEObserver &observer=CEObserver())
Convert this coordinate to ICRS coordinates.
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.