[2696] | 1 | //
|
---|
| 2 | // C++ Interface: STCalSky
|
---|
| 3 | //
|
---|
| 4 | // Description:
|
---|
| 5 | //
|
---|
| 6 | // ApplyTable for sky calibration.
|
---|
| 7 | //
|
---|
| 8 | // Author: Takeshi Nakazato
|
---|
| 9 | //
|
---|
| 10 | // Copyright: See COPYING file that comes with this distribution
|
---|
| 11 | //
|
---|
| 12 | //
|
---|
| 13 | #ifndef ASAPCALSKY_H
|
---|
| 14 | #define ASAPCALSKY_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 STCalSky : public STApplyTable {
|
---|
| 34 | public:
|
---|
| 35 | STCalSky() {;}
|
---|
| 36 | STCalSky(const Scantable& parent);
|
---|
| 37 |
|
---|
| 38 | virtual ~STCalSky();
|
---|
| 39 |
|
---|
| 40 | void setup();
|
---|
| 41 | void attachOptionalColumns();
|
---|
| 42 |
|
---|
| 43 | const casa::String& name() const {return name_;}
|
---|
| 44 |
|
---|
| 45 | void setdata(casa::uInt irow, casa::uInt scannos, casa::uInt cycleno,
|
---|
| 46 | casa::uInt beamno, casa::uInt ifno,
|
---|
| 47 | casa::uInt polno, casa::Double time, casa::Float elevation,
|
---|
| 48 | casa::Vector<casa::Float> spectra);
|
---|
| 49 | void appenddata(casa::uInt scanno, casa::uInt cycleno, casa::uInt beamno,
|
---|
| 50 | casa::uInt ifno, casa::uInt polno,
|
---|
| 51 | casa::Double time, casa::Float elevation,
|
---|
| 52 | casa::Vector<casa::Float> spectra);
|
---|
| 53 |
|
---|
| 54 | casa::Vector<casa::Float> getElevation() {return elCol_.getColumn();}
|
---|
| 55 | casa::Matrix<casa::Float> getSpectra() {return spectraCol_.getColumn();}
|
---|
| 56 |
|
---|
| 57 | private:
|
---|
| 58 | static const casa::String name_ ;
|
---|
| 59 | casa::ArrayColumn<casa::Float> spectraCol_;
|
---|
| 60 | casa::ScalarColumn<casa::Float> elCol_;
|
---|
| 61 | };
|
---|
| 62 |
|
---|
| 63 | }
|
---|
| 64 |
|
---|
| 65 | #endif
|
---|