1 | //
|
---|
2 | // C++ Interface: STCalTsys
|
---|
3 | //
|
---|
4 | // Description:
|
---|
5 | //
|
---|
6 | //
|
---|
7 | // Author: Takeshi Nakazato <takeshi.nakazato@nao.ac.jp>, (C) 2012
|
---|
8 | //
|
---|
9 | // Copyright: See COPYING file that comes with this distribution
|
---|
10 | //
|
---|
11 | //
|
---|
12 | #ifndef ASAP_CALTSYS_H
|
---|
13 | #define ASAP_CALTSYS_H
|
---|
14 |
|
---|
15 | #include <memory>
|
---|
16 | #include <vector>
|
---|
17 |
|
---|
18 | #include <casa/aips.h>
|
---|
19 | #include <casa/Arrays/Vector.h>
|
---|
20 | #include <casa/BasicSL/String.h>
|
---|
21 | #include <casa/Utilities/CountedPtr.h>
|
---|
22 | #include <casa/Containers/Record.h>
|
---|
23 |
|
---|
24 | #include <scimath/Mathematics/InterpolateArray1D.h>
|
---|
25 |
|
---|
26 | #include "RowAccumulator.h"
|
---|
27 | #include "Scantable.h"
|
---|
28 | #include "STDefs.h"
|
---|
29 | #include "STApplyTable.h"
|
---|
30 | #include "STCalibration.h"
|
---|
31 | #include "STCalTsysTable.h"
|
---|
32 |
|
---|
33 | namespace asap {
|
---|
34 |
|
---|
35 | /**
|
---|
36 | * Calibration operations on Scantable objects
|
---|
37 | * @author TakeshiNakazato
|
---|
38 | */
|
---|
39 | class STCalTsys : public STCalibration {
|
---|
40 | public:
|
---|
41 | STCalTsys(casacore::CountedPtr<Scantable> &s, vector<int> &iflist);
|
---|
42 | STCalTsys(casacore::CountedPtr<Scantable> &s, casacore::Record &iflist, bool average=false);
|
---|
43 |
|
---|
44 | ~STCalTsys() {;}
|
---|
45 |
|
---|
46 | private:
|
---|
47 | void setupSelector(const STSelector &sel);
|
---|
48 | virtual void appenddata(casacore::uInt scanno, casacore::uInt cycleno,
|
---|
49 | casacore::uInt beamno, casacore::uInt ifno, casacore::uInt polno,
|
---|
50 | casacore::uInt freqid, casacore::Double time, casacore::Float elevation,
|
---|
51 | const casacore::Vector<casacore::Float> &any_data,
|
---|
52 | const casacore::Vector<casacore::uChar> &channel_flag);
|
---|
53 |
|
---|
54 | vector<int> iflist_;
|
---|
55 | casacore::Record tsysspw_;
|
---|
56 | bool do_average_;
|
---|
57 | };
|
---|
58 |
|
---|
59 | }
|
---|
60 | #endif
|
---|