[2703] | 1 | // |
---|
| 2 | // C++ Interface: STCalibration |
---|
| 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 ASAPSTCALIBRATION_H |
---|
| 13 | #define ASAPSTCALIBRATION_H |
---|
| 14 | |
---|
| 15 | #include <casa/aips.h> |
---|
| 16 | #include <casa/Arrays/Vector.h> |
---|
| 17 | #include <casa/BasicSL/String.h> |
---|
| 18 | #include <casa/Utilities/CountedPtr.h> |
---|
[2749] | 19 | #include <casa/Logging/LogIO.h> |
---|
[2757] | 20 | #include <casa/Containers/Record.h> |
---|
[2703] | 21 | |
---|
| 22 | #include <scimath/Mathematics/InterpolateArray1D.h> |
---|
| 23 | |
---|
| 24 | #include "Scantable.h" |
---|
| 25 | #include "STDefs.h" |
---|
| 26 | #include "STApplyTable.h" |
---|
[2786] | 27 | #include "STSelector.h" |
---|
[2703] | 28 | |
---|
| 29 | namespace asap { |
---|
| 30 | |
---|
| 31 | /** |
---|
| 32 | * Calibration operations on Scantable objects |
---|
| 33 | * @author TakeshiNakazato |
---|
| 34 | */ |
---|
| 35 | class STCalibration { |
---|
| 36 | public: |
---|
[3106] | 37 | STCalibration(casacore::CountedPtr<Scantable> &s, const casacore::String target_column); |
---|
[2703] | 38 | |
---|
[2742] | 39 | void calibrate(); |
---|
[2703] | 40 | |
---|
| 41 | virtual ~STCalibration() {;} |
---|
| 42 | |
---|
[3106] | 43 | void save(casacore::String name) {applytable_->save(name);} |
---|
[2747] | 44 | //const STApplyTable &applytable() {return *applytable_;} |
---|
[3106] | 45 | const casacore::CountedPtr<STApplyTable> applytable() {return applytable_;} |
---|
[2757] | 46 | |
---|
[3106] | 47 | void setOption(casacore::Record &rec) {options_ = rec;} |
---|
[2757] | 48 | |
---|
[2703] | 49 | protected: |
---|
[2786] | 50 | virtual void setupSelector(const STSelector &sel) = 0; |
---|
[2915] | 51 | virtual void fillCalTable(); |
---|
[3106] | 52 | virtual void appenddata(casacore::uInt scanno, casacore::uInt cycleno, |
---|
| 53 | casacore::uInt beamno, casacore::uInt ifno, casacore::uInt polno, |
---|
| 54 | casacore::uInt freqid, casacore::Double time, casacore::Float elevation, |
---|
| 55 | const casacore::Vector<casacore::Float> &any_data, |
---|
| 56 | const casacore::Vector<casacore::uChar> &channel_flag) = 0; |
---|
[2742] | 57 | |
---|
| 58 | STSelector sel_; |
---|
[3106] | 59 | casacore::CountedPtr<Scantable> scantable_; |
---|
| 60 | casacore::CountedPtr<STApplyTable> applytable_; |
---|
| 61 | casacore::LogIO os_; |
---|
| 62 | casacore::Record options_; |
---|
| 63 | const casacore::String target_column_; |
---|
[2703] | 64 | }; |
---|
[2915] | 65 | |
---|
[2703] | 66 | } |
---|
| 67 | #endif |
---|