[2703] | 1 | // |
---|
| 2 | // C++ Interface: STCalTsysTable |
---|
| 3 | // |
---|
| 4 | // Description: |
---|
| 5 | // |
---|
| 6 | // ApplyTable for Tsys calibration. |
---|
| 7 | // |
---|
| 8 | // Author: Takeshi Nakazato <takeshi.nakazato@nao.ac.jp> (C) 2012 |
---|
| 9 | // |
---|
| 10 | // Copyright: See COPYING file that comes with this distribution |
---|
| 11 | // |
---|
| 12 | // |
---|
| 13 | #ifndef ASAP_CALTSYS_TABLE_H |
---|
| 14 | #define ASAP_CALTSYS_TABLE_H |
---|
| 15 | |
---|
| 16 | #include <tables/Tables/ArrayColumn.h> |
---|
| 17 | #include <tables/Tables/ScalarColumn.h> |
---|
| 18 | |
---|
| 19 | #include "Scantable.h" |
---|
| 20 | #include "STApplyTable.h" |
---|
| 21 | |
---|
| 22 | namespace asap { |
---|
| 23 | |
---|
| 24 | /** |
---|
| 25 | ApplyTable for Tsys calibration |
---|
| 26 | |
---|
| 27 | @author Takeshi Nakazato |
---|
| 28 | @date $Date:$ |
---|
| 29 | @version $Revision:$ |
---|
| 30 | */ |
---|
| 31 | class STCalTsysTable : public STApplyTable { |
---|
| 32 | public: |
---|
| 33 | STCalTsysTable() {;} |
---|
| 34 | STCalTsysTable(const Scantable& parent); |
---|
[2720] | 35 | STCalTsysTable(const casa::String &name); |
---|
[2703] | 36 | |
---|
| 37 | virtual ~STCalTsysTable(); |
---|
| 38 | |
---|
| 39 | void setup(); |
---|
| 40 | const casa::String& name() const {return name_;}; |
---|
| 41 | |
---|
| 42 | void attachOptionalColumns(); |
---|
| 43 | |
---|
| 44 | void setdata(casa::uInt irow, casa::uInt scanno, casa::uInt cycleno, |
---|
[2720] | 45 | casa::uInt beamno, casa::uInt ifno, casa::uInt polno, |
---|
| 46 | casa::uInt freqid, casa::Double time, casa::Float elevation, |
---|
[2703] | 47 | casa::Vector<casa::Float> tsys); |
---|
| 48 | void appenddata(casa::uInt scanno, casa::uInt cycleno, |
---|
| 49 | casa::uInt beamno, casa::uInt ifno, casa::uInt polno, |
---|
[2720] | 50 | casa::uInt freqid, casa::Double time, casa::Float elevation, |
---|
[2703] | 51 | casa::Vector<casa::Float> tsys); |
---|
| 52 | |
---|
| 53 | casa::Vector<casa::Float> getElevation() {return elCol_.getColumn();} |
---|
| 54 | casa::Matrix<casa::Float> getTsys() {return tsysCol_.getColumn();} |
---|
[2720] | 55 | casa::uInt nchan(casa::uInt ifno); |
---|
[2703] | 56 | |
---|
[2720] | 57 | casa::Vector<casa::Double> getBaseFrequency(casa::uInt whichrow); |
---|
| 58 | |
---|
[2703] | 59 | private: |
---|
| 60 | static const casa::String name_ ; |
---|
| 61 | casa::ArrayColumn<casa::Float> tsysCol_; |
---|
| 62 | casa::ScalarColumn<casa::Float> elCol_; |
---|
| 63 | }; |
---|
| 64 | |
---|
| 65 | } |
---|
| 66 | |
---|
| 67 | #endif |
---|