Changeset 7202 for trunk/MagicSoft/Mars/mreport/MReportStarguider.cc
- Timestamp:
- 07/21/05 11:44:05 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreport/MReportStarguider.cc
r7197 r7202 32 32 // This is the place to get the azimuth-/zenith mispointing of the telescope 33 33 // given by the starguider-camera. 34 // 35 // 36 // Starguider reports are available since 2004/11/17. 37 // The nomnial pointing position is available since 2005/03/22 38 // The sky brightness and the number of identified stars since 2005/03/17 34 39 // 35 40 // … … 129 134 Double_t MReportStarguider::GetDevAbs() const 130 135 { 131 // For the algorithm see also MReportDrive 132 const Double_t pzd = fNominalZd * TMath::DegToRad(); 133 const Double_t azd = fDevZd/60 * TMath::DegToRad(); 134 const Double_t aaz = fDevAz/60 * TMath::DegToRad(); 136 return MAstro::GetDevAbs(fNominalZd, fDevZd/60, fDevAz/60)*60; 137 /* 138 // For the algorithm see also MReportDrive 139 const Double_t pzd = fNominalZd * TMath::DegToRad(); 140 const Double_t azd = fDevZd/60 * TMath::DegToRad(); 141 const Double_t aaz = fDevAz/60 * TMath::DegToRad(); 135 142 136 const double el = TMath::Pi()/2-pzd;143 const double el = TMath::Pi()/2-pzd; 137 144 138 const double dphi2 = aaz/2.;139 const double cos2 = cos(dphi2)*cos(dphi2);140 const double sin2 = sin(dphi2)*sin(dphi2);141 const double d = cos(azd)*cos2 - cos(2*el)*sin2;145 const double dphi2 = aaz/2.; 146 const double cos2 = cos(dphi2)*cos(dphi2); 147 const double sin2 = sin(dphi2)*sin(dphi2); 148 const double d = cos(azd)*cos2 - cos(2*el)*sin2; 142 149 143 return acos(d)*TMath::RadToDeg()*60; 150 return acos(d)*TMath::RadToDeg()*60; 151 */ 144 152 } 145 153
Note:
See TracChangeset
for help on using the changeset viewer.