Ignore:
Timestamp:
07/25/05 10:35:31 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mastro
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mastro/MAstroSky2Local.cc

    r3568 r7217  
    129129// seen with an Alt/Az telescope.
    130130//
     131// dzd and daz is a pointing offset, which is subtracted from the
     132// calculated local coordinates correspoding to time, observatory
     133// and ra/dec.
     134//
    131135// For more information see MAstro::RotationAngle
    132136//
    133 Double_t MAstroSky2Local::RotationAngle(Double_t ra, Double_t dec) const
     137Double_t MAstroSky2Local::RotationAngle(Double_t ra, Double_t dec, Double_t dzd, Double_t daz) const
    134138{
    135139    TVector3 v;
     
    137141    v *= *this;
    138142
    139     return MAstro::RotationAngle(ZZ(), XZ(), v.Theta(), v.Phi());
     143    return MAstro::RotationAngle(ZZ(), XZ(), v.Theta()-dzd, v.Phi()-daz);
    140144}
  • trunk/MagicSoft/Mars/mastro/MAstroSky2Local.h

    r3533 r7217  
    1818    MAstroSky2Local(const MTime &t, const MObservatory &obs);
    1919
    20     Double_t RotationAngle(Double_t ra, Double_t dec) const;
     20    Double_t RotationAngle(Double_t ra, Double_t dec, Double_t dzd=0, Double_t daz=0) const;
    2121
    2222    ClassDef(MAstroSky2Local, 1) // Rotation Matrix to convert sky coordinates to ideal local coordinates
Note: See TracChangeset for help on using the changeset viewer.