-
Notifications
You must be signed in to change notification settings - Fork 6
/
ITRFConverter.h
51 lines (37 loc) · 1.27 KB
/
ITRFConverter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//# Dir2ITRF.h: Convertor that maps time to an ITRF direction.
#ifndef LOFAR_STATIONRESPONSE_DIR2ITRF_H
#define LOFAR_STATIONRESPONSE_DIR2ITRF_H
// \file
// Functor that maps J2000 to an ITRF direction.
#include "Types.h"
#include <casacore/measures/Measures/MeasFrame.h>
#include <casacore/measures/Measures/MeasConvert.h>
#include <casacore/measures/Measures/MCDirection.h>
#include <memory>
namespace LOFAR
{
namespace StationResponse
{
// \addtogroup StationResponse
// @{
class ITRFConverter
{
public:
typedef std::unique_ptr<ITRFDirection> Ptr;
typedef std::unique_ptr<const ITRFDirection> ConstPtr;
ITRFConverter(real_t time);
void setTime(real_t time);
vector3r_t j2000ToITRF(const vector2r_t &j2000Direction) const;
vector3r_t j2000ToITRF(const vector3r_t &j2000Direction) const;
vector3r_t toITRF(const casacore::MDirection &direction) const;
casacore::MDirection toDirection(const vector2r_t &j2000Direction) const;
casacore::MDirection toDirection(const vector3r_t &j2000Direction) const;
casacore::MDirection toDirection(const casacore::MDirection &direction) const;
private:
casacore::MeasFrame itsFrame;
mutable casacore::MDirection::Convert itsConverter;
};
// @}
} //# namespace BBS
} //# namespace LOFAR
#endif