| 1 | //
|
|---|
| 2 | // C++ Interface: STBaselineParamTable
|
|---|
| 3 | //
|
|---|
| 4 | // Description:
|
|---|
| 5 | //
|
|---|
| 6 | // ApplyTable for baseline subtraction.
|
|---|
| 7 | //
|
|---|
| 8 | // Author: Wataru Kawasaki <wataru.kawasaki@nao.ac.jp> (C) 2013
|
|---|
| 9 | //
|
|---|
| 10 | // Copyright: See COPYING file that comes with this distribution
|
|---|
| 11 | //
|
|---|
| 12 | //
|
|---|
| 13 | #ifndef ASAP_BASELINEPARAM_TABLE_H
|
|---|
| 14 | #define ASAP_BASELINEPARAM_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 | #include "STBaselineEnum.h"
|
|---|
| 22 |
|
|---|
| 23 | namespace asap {
|
|---|
| 24 |
|
|---|
| 25 | /**
|
|---|
| 26 | ApplyTable for baseline subtraction
|
|---|
| 27 |
|
|---|
| 28 | @author Wataru Kawasaki
|
|---|
| 29 | @date $Date:$
|
|---|
| 30 | @version $Revision:$
|
|---|
| 31 | */
|
|---|
| 32 | class STBaselineParamTable : public STApplyTable {
|
|---|
| 33 | public:
|
|---|
| 34 | STBaselineParamTable() {;}
|
|---|
| 35 | STBaselineParamTable(const Scantable& parent);
|
|---|
| 36 | STBaselineParamTable(const casa::String &name);
|
|---|
| 37 |
|
|---|
| 38 | virtual ~STBaselineParamTable();
|
|---|
| 39 |
|
|---|
| 40 | void setup();
|
|---|
| 41 | const casa::String& name() const {return name_;};
|
|---|
| 42 |
|
|---|
| 43 | void attachOptionalColumns();
|
|---|
| 44 |
|
|---|
| 45 | void setdata(casa::uInt irow, casa::uInt scanno, casa::uInt cycleno,
|
|---|
| 46 | casa::uInt beamno, casa::uInt ifno, casa::uInt polno,
|
|---|
| 47 | casa::uInt freqid, casa::Double time,
|
|---|
| 48 | casa::uInt blfunc, casa::uInt order,
|
|---|
| 49 | casa::Vector<casa::Float> boundary,
|
|---|
| 50 | casa::Vector<casa::Float> param);
|
|---|
| 51 | void appenddata(casa::uInt scanno, casa::uInt cycleno,
|
|---|
| 52 | casa::uInt beamno, casa::uInt ifno, casa::uInt polno,
|
|---|
| 53 | casa::uInt freqid, casa::Double time,
|
|---|
| 54 | casa::uInt blfunc, casa::uInt order,
|
|---|
| 55 | casa::Vector<casa::Float> boundary,
|
|---|
| 56 | casa::Vector<casa::Float> param);
|
|---|
| 57 |
|
|---|
| 58 | casa::Vector<casa::uInt> getBlfunc() {return blfuncCol_.getColumn();}
|
|---|
| 59 | //casa::Vector<STBaselineEnum::BaselineType> getBlfunc() {return blfuncCol_.getColumn();}
|
|---|
| 60 | casa::Vector<casa::uInt> getOrder() {return orderCol_.getColumn();}
|
|---|
| 61 | casa::Matrix<casa::Float> getBoundary() {return boundaryCol_.getColumn();}
|
|---|
| 62 | casa::Matrix<casa::Float> getParam() {return paramCol_.getColumn();}
|
|---|
| 63 |
|
|---|
| 64 | private:
|
|---|
| 65 | static const casa::String name_ ;
|
|---|
| 66 | casa::ScalarColumn<casa::uInt> blfuncCol_;
|
|---|
| 67 | casa::ScalarColumn<casa::uInt> orderCol_;
|
|---|
| 68 | casa::ArrayColumn<casa::Float> boundaryCol_;
|
|---|
| 69 | casa::ArrayColumn<casa::Float> paramCol_;
|
|---|
| 70 | };
|
|---|
| 71 |
|
|---|
| 72 | }
|
|---|
| 73 |
|
|---|
| 74 | #endif
|
|---|