| Line | |
|---|
| 1 | #ifndef COSY_SlaStars
|
|---|
| 2 | #define COSY_SlaStars
|
|---|
| 3 |
|
|---|
| 4 | #ifndef COSY_Slalib
|
|---|
| 5 | #include "Slalib.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | #ifndef MARS_MPointing
|
|---|
| 9 | #include "MPointing.h"
|
|---|
| 10 | #endif
|
|---|
| 11 |
|
|---|
| 12 | class SlaStars : public Slalib
|
|---|
| 13 | {
|
|---|
| 14 | private:
|
|---|
| 15 | AltAz fAltAz; // [rad]
|
|---|
| 16 | RaDec fRaDec; // [rad]
|
|---|
| 17 |
|
|---|
| 18 | double fAmprms[21];
|
|---|
| 19 | double fAoprms[14];
|
|---|
| 20 |
|
|---|
| 21 | public:
|
|---|
| 22 | SlaStars(MObservatory::LocationName_t key);
|
|---|
| 23 | virtual ~SlaStars();
|
|---|
| 24 |
|
|---|
| 25 | // const AltAz GetAltAz() const { return fAltAz*360/D2PI; }
|
|---|
| 26 | // const ZdAz GetZdAz() const { return ZdAz(DPI/2-fAltAz.Alt(), fAltAz.Az())*360/D2PI; }
|
|---|
| 27 | // const RaDec GetRaDec() const { return fRaDec*360/D2PI; }
|
|---|
| 28 |
|
|---|
| 29 | virtual void SetMjd(double mjd);
|
|---|
| 30 |
|
|---|
| 31 | void Set(const AltAz &altaz);
|
|---|
| 32 | void Set(const ZdAz &zdaz);
|
|---|
| 33 | void Set(const RaDec &radec);
|
|---|
| 34 |
|
|---|
| 35 | ZdAz GetApproxVel(const RaDec &radec) const; // [rad/rad];
|
|---|
| 36 |
|
|---|
| 37 | RaDec CalcRaDec(const AltAz &altaz) const;
|
|---|
| 38 | RaDec CalcRaDec(const ZdAz &altaz) const;
|
|---|
| 39 |
|
|---|
| 40 | RaDec CalcRaDecFast(const AltAz &altaz) const;
|
|---|
| 41 | RaDec CalcRaDecFast(const ZdAz &altaz) const;
|
|---|
| 42 |
|
|---|
| 43 | AltAz CalcAltAz(const RaDec &radec) const;
|
|---|
| 44 | ZdAz CalcZdAz (const RaDec &radec) const;
|
|---|
| 45 |
|
|---|
| 46 | AltAz CalcAltAz(const RaDec &radec, double mjd)
|
|---|
| 47 | { SetMjd(mjd); return CalcAltAz(radec); }
|
|---|
| 48 | ZdAz CalcZdAz (const RaDec &radec, double mjd)
|
|---|
| 49 | { SetMjd(mjd); return CalcZdAz(radec); }
|
|---|
| 50 |
|
|---|
| 51 | AltAz CalcAltAzFast(const RaDec &radec) const;
|
|---|
| 52 | ZdAz CalcZdAzFast (const RaDec &radec) const;
|
|---|
| 53 |
|
|---|
| 54 | ClassDef(SlaStars, 0)
|
|---|
| 55 | };
|
|---|
| 56 |
|
|---|
| 57 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.