// // C++ Interface: STCalTsysTable // // Description: // // ApplyTable for Tsys calibration. // // Author: Takeshi Nakazato (C) 2012 // // Copyright: See COPYING file that comes with this distribution // // #ifndef ASAP_CALTSYS_TABLE_H #define ASAP_CALTSYS_TABLE_H #include #include #include "Scantable.h" #include "STApplyTable.h" namespace asap { /** ApplyTable for Tsys calibration @author Takeshi Nakazato @date $Date:$ @version $Revision:$ */ class STCalTsysTable : public STApplyTable { public: STCalTsysTable() {;} STCalTsysTable(const Scantable& parent); STCalTsysTable(const casa::String &name); virtual ~STCalTsysTable(); void setup(); const casa::String& name() const {return name_;}; void attachOptionalColumns(); void setdata(casa::uInt irow, casa::uInt scanno, casa::uInt cycleno, casa::uInt beamno, casa::uInt ifno, casa::uInt polno, casa::uInt freqid, casa::Double time, casa::Float elevation, const casa::Vector &tsys, const casa::Vector &flagtra); void appenddata(casa::uInt scanno, casa::uInt cycleno, casa::uInt beamno, casa::uInt ifno, casa::uInt polno, casa::uInt freqid, casa::Double time, casa::Float elevation, const casa::Vector &tsys, const casa::Vector &flagtra); casa::Vector getElevation() const {return elCol_.getColumn();} casa::Matrix getTsys() const {return tsysCol_.getColumn();} casa::Matrix getFlagtra() const {return flagtraCol_.getColumn();} casa::uInt nchan(casa::uInt ifno); casa::Vector getBaseFrequency(casa::uInt whichrow); private: static const casa::String name_ ; casa::ArrayColumn tsysCol_; casa::ArrayColumn flagtraCol_; casa::ScalarColumn elCol_; }; } #endif