[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 |
|
---|
| 24 | namespace asap {
|
---|
| 25 |
|
---|
| 26 | /**
|
---|
| 27 | ApplyTable for sky calibration
|
---|
| 28 |
|
---|
| 29 | @author Takeshi Nakazato
|
---|
| 30 | @date $Date:$
|
---|
| 31 | @version $Revision:$
|
---|
| 32 | */
|
---|
| 33 | class STCalSkyTable : public STApplyTable {
|
---|
| 34 | public:
|
---|
| 35 | STCalSkyTable() {;}
|
---|
| 36 | STCalSkyTable(const Scantable& parent, const casa::String &caltype);
|
---|
[2720] | 37 | STCalSkyTable(const casa::String &name);
|
---|
[2703] | 38 |
|
---|
| 39 | virtual ~STCalSkyTable();
|
---|
| 40 |
|
---|
| 41 | void setup();
|
---|
| 42 | void attachOptionalColumns();
|
---|
| 43 |
|
---|
| 44 | const casa::String& name() const {return name_;}
|
---|
| 45 |
|
---|
| 46 | void setdata(casa::uInt irow, casa::uInt scannos, casa::uInt cycleno,
|
---|
[2720] | 47 | casa::uInt beamno, casa::uInt ifno, casa::uInt polno,
|
---|
| 48 | casa::uInt freqid, casa::Double time, casa::Float elevation,
|
---|
[2703] | 49 | casa::Vector<casa::Float> spectra);
|
---|
| 50 | void appenddata(casa::uInt scanno, casa::uInt cycleno, casa::uInt beamno,
|
---|
[2720] | 51 | casa::uInt ifno, casa::uInt polno, casa::uInt freqid,
|
---|
[2703] | 52 | casa::Double time, casa::Float elevation,
|
---|
| 53 | casa::Vector<casa::Float> spectra);
|
---|
| 54 |
|
---|
| 55 | casa::Vector<casa::Float> getElevation() {return elCol_.getColumn();}
|
---|
| 56 | casa::Matrix<casa::Float> getSpectra() {return spectraCol_.getColumn();}
|
---|
[2720] | 57 | casa::uInt nchan(casa::uInt ifno);
|
---|
[2703] | 58 |
|
---|
[2720] | 59 | //casa::Vector<casa::Double> getBaseFrequency(casa::uInt whichrow);
|
---|
[2703] | 60 | private:
|
---|
| 61 | static const casa::String name_;
|
---|
| 62 | const casa::String caltype_;
|
---|
| 63 | casa::ArrayColumn<casa::Float> spectraCol_;
|
---|
| 64 | casa::ScalarColumn<casa::Float> elCol_;
|
---|
| 65 | };
|
---|
| 66 |
|
---|
| 67 | }
|
---|
| 68 |
|
---|
| 69 | #endif
|
---|