source: trunk/MagicSoft/Cosy/catalog/SlaStars.h@ 7787

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