source: trunk/src/STCalTsysTable.h @ 2955

Last change on this file since 2955 was 2955, checked in by Takeshi Nakazato, 10 years ago

New Development: No

JIRA Issue: Yes CAS-6585, CAS-6571

Ready for Test: Yes

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...

Added FLAGTRA column to sky and Tsys caltable.
To support previous versions of caltabls that don't have FLAGTRA
column, the code automatically add FLAGTRA column and initialize
it with initial value (uChar)0 if no FLAGTRA exists.


File size: 1.9 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 casa::String &name);
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,
45               casa::uInt beamno, casa::uInt ifno, casa::uInt polno,
46               casa::uInt freqid, casa::Double time, casa::Float elevation,
47               const casa::Vector<casa::Float> &tsys,
48               const casa::Vector<casa::uChar> &flagtra);
49  void appenddata(casa::uInt scanno, casa::uInt cycleno,
50                  casa::uInt beamno, casa::uInt ifno, casa::uInt polno,
51                  casa::uInt freqid, casa::Double time, casa::Float elevation,
52                  const casa::Vector<casa::Float> &tsys,
53                  const casa::Vector<casa::uChar> &flagtra);
54 
55  casa::Vector<casa::Float> getElevation() {return elCol_.getColumn();}
56  casa::Matrix<casa::Float> getTsys() {return tsysCol_.getColumn();}
57  casa::uInt nchan(casa::uInt ifno);
58
59  casa::Vector<casa::Double> getBaseFrequency(casa::uInt whichrow);
60
61private:
62  static const casa::String name_ ;
63  casa::ArrayColumn<casa::Float> tsysCol_;
64  casa::ArrayColumn<casa::uChar> flagtraCol_;
65  casa::ScalarColumn<casa::Float> elCol_;
66};
67
68}
69
70#endif
Note: See TracBrowser for help on using the repository browser.