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