source: trunk/src/STCalTsysTable.h@ 3115

Last change on this file since 3115 was 3106, checked in by Takeshi Nakazato, 8 years ago

New Development: No

JIRA Issue: No

Ready for Test: Yes/No

Interface Changes: Yes/No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...


Check-in asap modifications from Jim regarding casacore namespace conversion.

File size: 2.1 KB
Line 
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
22namespace asap {
23
24/**
25ApplyTable for Tsys calibration
26
27@author Takeshi Nakazato
28@date $Date:$
29@version $Revision:$
30*/
31class STCalTsysTable : public STApplyTable {
32public:
33 STCalTsysTable() {;}
34 STCalTsysTable(const Scantable& parent);
35 STCalTsysTable(const casacore::String &name);
36
37 virtual ~STCalTsysTable();
38
39 void setup();
40 const casacore::String& name() const {return name_;};
41
42 void attachOptionalColumns();
43
44 void setdata(casacore::uInt irow, casacore::uInt scanno, casacore::uInt cycleno,
45 casacore::uInt beamno, casacore::uInt ifno, casacore::uInt polno,
46 casacore::uInt freqid, casacore::Double time, casacore::Float elevation,
47 const casacore::Vector<casacore::Float> &tsys,
48 const casacore::Vector<casacore::uChar> &flagtra);
49 void appenddata(casacore::uInt scanno, casacore::uInt cycleno,
50 casacore::uInt beamno, casacore::uInt ifno, casacore::uInt polno,
51 casacore::uInt freqid, casacore::Double time, casacore::Float elevation,
52 const casacore::Vector<casacore::Float> &tsys,
53 const casacore::Vector<casacore::uChar> &flagtra);
54
55 casacore::Vector<casacore::Float> getElevation() const {return elCol_.getColumn();}
56 casacore::Matrix<casacore::Float> getTsys() const {return tsysCol_.getColumn();}
57 casacore::Matrix<casacore::uChar> getFlagtra() const {return flagtraCol_.getColumn();}
58 casacore::uInt nchan(casacore::uInt ifno);
59
60 casacore::Vector<casacore::Double> getBaseFrequency(casacore::uInt whichrow);
61
62private:
63 static const casacore::String name_ ;
64 casacore::ArrayColumn<casacore::Float> tsysCol_;
65 casacore::ArrayColumn<casacore::uChar> flagtraCol_;
66 casacore::ScalarColumn<casacore::Float> elCol_;
67};
68
69}
70
71#endif
Note: See TracBrowser for help on using the repository browser.