Ignore:
Timestamp:
12/01/09 13:03:41 (15 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/catalog
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/catalog/SlaPlanets.cc

    r9516 r9523  
    99using namespace std;
    1010
    11 SlaPlanets::SlaPlanets(MObservatory::LocationName_t key) : SlaStars(key), fDt(slaDt(2000.0)/60./60./24.)
     11SlaPlanets::SlaPlanets(MObservatory::LocationName_t key) : SlaStars(key)//, fDt(slaDt(2000.0)/60./60./24.)
    1212{
    1313}
     
    1717    SlaStars::SetMjd(mjd);
    1818
    19     fTt = GetMjd() + slaDtt(GetMjd())/60./60./24.;
    20 
    2119    //
    22     // coordinates of earth: heliocentric, equatoril, J2000
     20    // coordinates of earth: heliocentric, equatorial, J2000
    2321    //
     22    /*
    2423    double veb[3]; // barycentric velocity
    2524    double ceb[3]; // barycentric coordinates
     
    2726
    2827    slaEvp(GetMjd() + fDt, 2000.0, veb, ceb, veh, fEarth);
     28    */
    2929}
    3030
     
    4040    // One can use TT instead of TDB for all planets (except the moon?)
    4141    // 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);
    4343
    4444    return RaDec(ra, dec);
  • trunk/MagicSoft/Cosy/catalog/SlaPlanets.h

    r9516 r9523  
    2727{
    2828private:
    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
    3130
    3231    ZdAz fZdAz[10];    // [rad]
    3332
    34     double fEarth[3];  // heliocentric coordinates
     33    //double fEarth[3];  // heliocentric coordinates
    3534
    36     ZdAz   GetMoonPos() const;
     35    //ZdAz   GetMoonPos() const;
    3736
    3837public:
  • trunk/MagicSoft/Cosy/catalog/SlaStars.cc

    r9516 r9523  
    1212}
    1313
    14 SlaStars::~SlaStars()
    15 {
    16 }
    17 
    1814void SlaStars::Set(const AltAz &altaz)
    1915{
     
    4238    Slalib::SetMjd(mjd);
    4339
     40    fTt = GetMjd() + slaDtt(GetMjd())/60./60./24.;
     41
    4442    //
    4543    // ----- calculate star independent parameters ----------
     
    4745
    4846    // 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
    5049
    5150    // prepare: Apperent to observed place
     
    5453             0, 0,                         // polar motion x, y-coordinate (radians)
    5554             // 273.155, 1013.25, 0.5,     // temp, pressure, humidity
    56              273.155+10, 780.0, 0.25,     // temp, pressure, humidity
     55             273.155+10, 780.0, 0.25,      // temp, pressure, humidity
    5756             // 0.2, 0.0065,               // wavelength, tropo lapse rate
    5857             0.55, 0.0065,                 // wavelength, tropo lapse rate
    5958             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
    6062}
    6163
  • trunk/MagicSoft/Cosy/catalog/SlaStars.h

    r9522 r9523  
    2121    double   fAoprms[14];
    2222
     23    double   fTt;        // [mjd] timescale TT
     24
    2325public:
    2426    SlaStars(MObservatory::LocationName_t key);
    25     virtual ~SlaStars();
     27    virtual ~SlaStars() { }
    2628
    2729    //    const AltAz GetAltAz() const { return fAltAz*360/D2PI; }
     
    3133    const RaDec  GetRaDecRad() const  { return fRaDec; }
    3234    const double GetHourAngle() const { return fHourAngle; }
     35
     36    const double GetTT() const        { return fTt; }
    3337
    3438    virtual void SetMjd(double mjd);
Note: See TracChangeset for help on using the changeset viewer.