source: trunk/src/STCalSkyTable.h@ 3148

Last change on this file since 3148 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.3 KB
RevLine 
[2703]1//
2// C++ Interface: STCalSkyTable
3//
4// Description:
5//
6// ApplyTable for sky 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_CALSKY_TABLE_H
14#define ASAP_CALSKY_TABLE_H
15
16#include <casa/Arrays/Vector.h>
17#include <casa/Arrays/Matrix.h>
18#include <tables/Tables/ArrayColumn.h>
19#include <tables/Tables/ScalarColumn.h>
20
21#include "Scantable.h"
22#include "STApplyTable.h"
23
24namespace asap {
25
26/**
27ApplyTable for sky calibration
28
29@author Takeshi Nakazato
30@date $Date:$
31@version $Revision:$
32*/
33class STCalSkyTable : public STApplyTable {
34public:
35 STCalSkyTable() {;}
[3106]36 STCalSkyTable(const Scantable& parent, const casacore::String &caltype);
37 STCalSkyTable(const casacore::String &name);
[2703]38
39 virtual ~STCalSkyTable();
40
41 void setup();
42 void attachOptionalColumns();
43
[3106]44 const casacore::String& name() const {return name_;}
[2703]45
[3106]46 void setdata(casacore::uInt irow, casacore::uInt scannos, casacore::uInt cycleno,
47 casacore::uInt beamno, casacore::uInt ifno, casacore::uInt polno,
48 casacore::uInt freqid, casacore::Double time, casacore::Float elevation,
49 const casacore::Vector<casacore::Float> &spectra,
50 const casacore::Vector<casacore::uChar> &flagtra);
51 void appenddata(casacore::uInt scanno, casacore::uInt cycleno, casacore::uInt beamno,
52 casacore::uInt ifno, casacore::uInt polno, casacore::uInt freqid,
53 casacore::Double time, casacore::Float elevation,
54 const casacore::Vector<casacore::Float> &spectra,
55 const casacore::Vector<casacore::uChar> &flagtra);
[2703]56
[3106]57 casacore::Vector<casacore::Float> getElevation() const {return elCol_.getColumn();}
58 casacore::Matrix<casacore::Float> getSpectra() const {return spectraCol_.getColumn();}
59 casacore::Matrix<casacore::uChar> getFlagtra() const {return flagtraCol_.getColumn();}
60 casacore::uInt nchan(casacore::uInt ifno);
[2703]61
[3106]62 //casacore::Vector<casacore::Double> getBaseFrequency(casacore::uInt whichrow);
[2742]63
[2703]64private:
[3106]65 static const casacore::String name_;
66 const casacore::String caltype_;
67 casacore::ArrayColumn<casacore::Float> spectraCol_;
68 casacore::ArrayColumn<casacore::uChar> flagtraCol_;
69 casacore::ScalarColumn<casacore::Float> elCol_;
[2703]70};
71
72}
73
74#endif
Note: See TracBrowser for help on using the repository browser.