source: trunk/MagicSoft/Cosy/catalog/Slalib.h@ 1018

Last change on this file since 1018 was 912, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 863 bytes
Line 
1#ifndef SLALIB_H
2#define SLALIB_H
3
4#include "coord.h"
5#include "base/timer.h"
6
7class Slalib : public Timer
8{
9private:
10 double fAlpha;
11 double fMjd;
12
13 double fPhi; // location of observatory
14 double fElong;
15
16public:
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.