Go to the source code of this file.
Namespaces | |
| namespace | AstUtil |
Functions | |
| void | CalendarToJulian (int year, int month, int day, double hour, double &juliandate) |
| void | JulianToGMST (double juliandate, double &gmst) |
| void | JulianToGAST (double juliandate, double &gast) |
| void | GSTToLST (double gst, double longitude, double &lst) |
| void | LSTToGST (double lst, double longitude, double &gst) |
|
||||||||||||||||||||||||
|
Definition at line 20 of file AstTime.cxx. References julian_date(). Referenced by ANtpInfoObjectFiller::FillHeaderInformation(), NtpSRModule::FillNtpTrackCosmicRay(), Anp::HistTime::FillSid(), and NCAnalysisCutsCR::IsGoodBeamSnarlBR(). 00021 {
00022 // Static method to convert from calendar date to julian date (hours)
00023
00024 juliandate = julian_date(year,month,day,hour); // nova routine
00025
00026 }
|
|
||||||||||||||||
|
Definition at line 51 of file AstTime.cxx. Referenced by AstUtil::CelestialToEquatorial(), AstUtil::EquatorialToCelestial(), ANtpInfoObjectFiller::FillHeaderInformation(), NtpSRModule::FillNtpTrackCosmicRay(), Anp::HistTime::FillSid(), and AstValidate::TestJulianDateToSiderealTime(). 00051 {
00052 // Static method to convert from greenwich sidereal time (hours) to local
00053 // sidereal time (hours)
00054 // Longitude is expressed in degrees and east of 0^o is +, west -.
00055
00056 lst = gst + longitude*12./180.; // hours
00057 if ( lst < 0. ) lst += 24.;
00058 if ( lst > 24. ) lst -= 24.;
00059 }
|
|
||||||||||||
|
Definition at line 38 of file AstTime.cxx. References earthtilt(), and sidereal_time(). Referenced by NtpSRModule::FillNtpTrackCosmicRay(), Anp::HistTime::FillSid(), and AstValidate::TestJulianDateToSiderealTime(). 00038 {
00039 // Static method to convert from julian date to greenwich
00040 // apparent sidereal time (hours)
00041
00042 double oblm,oblt,eqeq,psi,eps;
00043 earthtilt(juliandate,&oblm,&oblt,&eqeq,&psi,&eps);
00044
00045 double fracjuliandate = fmod(juliandate,1.);
00046 double intjuliandate = juliandate - fracjuliandate;
00047 sidereal_time(intjuliandate,fracjuliandate,eqeq,&gast); // nova routine
00048
00049 }
|
|
||||||||||||
|
Definition at line 28 of file AstTime.cxx. References sidereal_time(). Referenced by ANtpInfoObjectFiller::FillHeaderInformation(), and AstValidate::TestJulianDateToSiderealTime(). 00028 {
00029 // Static method to convert from julian date (hours) to greenwich
00030 // mean sidereal time (hours)
00031
00032 double fracjuliandate = fmod(juliandate,1.);
00033 double intjuliandate = juliandate - fracjuliandate;
00034 sidereal_time(intjuliandate,fracjuliandate,0,&gmst); // nova routine
00035
00036 }
|
|
||||||||||||||||
|
Definition at line 61 of file AstTime.cxx. 00061 {
00062 // Static method to convert from lst to gst (hours)
00063 // Longitude is expressed in degrees and east of 0^o is +, west -.
00064
00065 gst = lst - longitude*12./180.; // hours
00066 if ( gst < 0. ) gst += 24.;
00067 if ( gst > 24. ) gst -= 24.;
00068 }
|
1.3.9.1