| Line |  | 
|---|
| 1 | #ifndef SLALIB_H | 
|---|
| 2 | #define SLALIB_H | 
|---|
| 3 |  | 
|---|
| 4 | #include "coord.h" | 
|---|
| 5 | #include "base/timer.h" | 
|---|
| 6 |  | 
|---|
| 7 | class Slalib : public Timer | 
|---|
| 8 | { | 
|---|
| 9 | private: | 
|---|
| 10 | double   fAlpha; | 
|---|
| 11 | double   fMjd; | 
|---|
| 12 |  | 
|---|
| 13 | double   fPhi;      // location of observatory | 
|---|
| 14 | double   fElong; | 
|---|
| 15 |  | 
|---|
| 16 | public: | 
|---|
| 17 | Slalib(); | 
|---|
| 18 | virtual ~Slalib(); | 
|---|
| 19 |  | 
|---|
| 20 | //    const AltAz GetAltAz() const { return fAltAz*360/D2PI; } | 
|---|
| 21 | //    const ZdAz  GetZdAz()  const { return ZdAz(DPI/2-fAltAz.Alt(), fAltAz.Az())*360/D2PI; } | 
|---|
| 22 | //    const RaDec GetRaDec() const { return fRaDec*360/D2PI; } | 
|---|
| 23 |  | 
|---|
| 24 | void SetMjd2Now(); | 
|---|
| 25 | void SetMjd(const struct timeval *tm); | 
|---|
| 26 |  | 
|---|
| 27 | virtual void SetMjd(const double mjd); | 
|---|
| 28 |  | 
|---|
| 29 | double GetAlpha() const { return fAlpha; } | 
|---|
| 30 | double GetMjd() const   { return fMjd; } | 
|---|
| 31 |  | 
|---|
| 32 | double GetPhi() const   { return fPhi; } | 
|---|
| 33 | double GetElong() const { return fElong; } | 
|---|
| 34 |  | 
|---|
| 35 | ZdAz   XYZ2ZdAz(double coord[3]) const; | 
|---|
| 36 | }; | 
|---|
| 37 |  | 
|---|
| 38 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.