source: trunk/src/STBaselineParamTable.h@ 2729

Last change on this file since 2729 was 2728, checked in by WataruKawasaki, 12 years ago

New Development: Yes

JIRA Issue: Yes CAS-4794

Ready for Test: No

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): sd

Description: STBaselineParamTable extended from STApplyTable.


File size: 2.2 KB
Line 
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
23namespace asap {
24
25/**
26ApplyTable for baseline subtraction
27
28@author Wataru Kawasaki
29@date $Date:$
30@version $Revision:$
31*/
32class STBaselineParamTable : public STApplyTable {
33public:
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
64private:
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
Note: See TracBrowser for help on using the repository browser.