Changeset 9523 for trunk/MagicSoft/Cosy/catalog
- Timestamp:
- 12/01/09 13:03:41 (15 years ago)
- Location:
- trunk/MagicSoft/Cosy/catalog
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/catalog/SlaPlanets.cc
r9516 r9523 9 9 using namespace std; 10 10 11 SlaPlanets::SlaPlanets(MObservatory::LocationName_t key) : SlaStars(key) , fDt(slaDt(2000.0)/60./60./24.)11 SlaPlanets::SlaPlanets(MObservatory::LocationName_t key) : SlaStars(key)//, fDt(slaDt(2000.0)/60./60./24.) 12 12 { 13 13 } … … 17 17 SlaStars::SetMjd(mjd); 18 18 19 fTt = GetMjd() + slaDtt(GetMjd())/60./60./24.;20 21 19 // 22 // coordinates of earth: heliocentric, equatori l, J200020 // coordinates of earth: heliocentric, equatorial, J2000 23 21 // 22 /* 24 23 double veb[3]; // barycentric velocity 25 24 double ceb[3]; // barycentric coordinates … … 27 26 28 27 slaEvp(GetMjd() + fDt, 2000.0, veb, ceb, veh, fEarth); 28 */ 29 29 } 30 30 … … 40 40 // One can use TT instead of TDB for all planets (except the moon?) 41 41 // TDB, planet, elong, phi, *ra, *dec, *diam 42 slaRdplan( fTt, planet, GetElong(), GetPhi(), &ra, &dec, &diam);42 slaRdplan(GetTT(), planet, GetElong(), GetPhi(), &ra, &dec, &diam); 43 43 44 44 return RaDec(ra, dec); -
trunk/MagicSoft/Cosy/catalog/SlaPlanets.h
r9516 r9523 27 27 { 28 28 private: 29 double fDt; // [mjd] const: rootcint/TMemberInspector 30 double fTt; // [mjd] timescale TT 29 //double fDt; // [mjd] The result is a rough estimate of ET-UT (after 1984, TT-UT1) at the given epoch, in seconds 31 30 32 31 ZdAz fZdAz[10]; // [rad] 33 32 34 double fEarth[3]; // heliocentric coordinates33 //double fEarth[3]; // heliocentric coordinates 35 34 36 ZdAz GetMoonPos() const;35 //ZdAz GetMoonPos() const; 37 36 38 37 public: -
trunk/MagicSoft/Cosy/catalog/SlaStars.cc
r9516 r9523 12 12 } 13 13 14 SlaStars::~SlaStars()15 {16 }17 18 14 void SlaStars::Set(const AltAz &altaz) 19 15 { … … 42 38 Slalib::SetMjd(mjd); 43 39 40 fTt = GetMjd() + slaDtt(GetMjd())/60./60./24.; 41 44 42 // 45 43 // ----- calculate star independent parameters ---------- … … 47 45 48 46 // prepare calculation: Mean Place to geocentric apperent 49 slaMappa(2000.0, GetMjd(), fAmprms); // Epoche, TDB 47 // (UTC would also do, except for the moon?) 48 slaMappa(2000.0, fTt, fAmprms); // Epoche, TDB 50 49 51 50 // prepare: Apperent to observed place … … 54 53 0, 0, // polar motion x, y-coordinate (radians) 55 54 // 273.155, 1013.25, 0.5, // temp, pressure, humidity 56 273.155+10, 780.0, 0.25, // temp, pressure, humidity55 273.155+10, 780.0, 0.25, // temp, pressure, humidity 57 56 // 0.2, 0.0065, // wavelength, tropo lapse rate 58 57 0.55, 0.0065, // wavelength, tropo lapse rate 59 58 fAoprms); 59 60 // Delta UT should be less than 0.9s which is its definition 61 // so we can fairly assume it to be neglegible 60 62 } 61 63 -
trunk/MagicSoft/Cosy/catalog/SlaStars.h
r9522 r9523 21 21 double fAoprms[14]; 22 22 23 double fTt; // [mjd] timescale TT 24 23 25 public: 24 26 SlaStars(MObservatory::LocationName_t key); 25 virtual ~SlaStars() ;27 virtual ~SlaStars() { } 26 28 27 29 // const AltAz GetAltAz() const { return fAltAz*360/D2PI; } … … 31 33 const RaDec GetRaDecRad() const { return fRaDec; } 32 34 const double GetHourAngle() const { return fHourAngle; } 35 36 const double GetTT() const { return fTt; } 33 37 34 38 virtual void SetMjd(double mjd);
Note:
See TracChangeset
for help on using the changeset viewer.