Changeset 10021 for trunk


Ignore:
Timestamp:
10/21/10 11:15:34 (14 years ago)
Author:
tbretz
Message:
Added conversion from apparent to mean place for celestial objects to get the meaning of Ra/Dec consistent with the ones in the base classes.
Location:
trunk/Cosy/catalog
Files:
2 edited

Legend:

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

    r9523 r10021  
    3333// coordinates of planet: topocentric, equatorial, J2000
    3434//
    35 RaDec SlaPlanets::CalcPlanetRaDec(ePlanets_t planet)
     35RaDec SlaPlanets::CalcPlanetRaDec(ePlanets_t planet) const
    3636{
    3737    // coordinates of planet: topocentric, equatorial, J2000
     
    4242    slaRdplan(GetTT(), planet, GetElong(), GetPhi(), &ra, &dec, &diam);
    4343
    44     return RaDec(ra, dec);
     44    //
     45    // ---- apparent to mean ----
     46    //
     47    // This is a stupid workaround because SlaStars assumes
     48    // RA/DEC to be mean values rather than apparent
     49    //
     50    double rm=0, dm=0;
     51    slaAmpqk (ra, dec, (double*)fAmprms, &rm, &dm);
     52
     53    return RaDec(rm, dm);
    4554}
    4655
  • trunk/Cosy/catalog/SlaPlanets.h

    r9523 r10021  
    4040    void SetMjd(double mjd);
    4141
    42     RaDec CalcPlanetRaDec(ePlanets_t planet);
     42    RaDec CalcPlanetRaDec(ePlanets_t planet) const;
    4343    void  UpdatePlanetPos(ePlanets_t planet);
    4444    ZdAz  GetPlanetPos(ePlanets_t planet) const { return fZdAz[planet]; }
Note: See TracChangeset for help on using the changeset viewer.