source: trunk/src/CalibrationManager.h@ 2760

Last change on this file since 2760 was 2757, checked in by Takeshi Nakazato, 12 years ago

New Development: No

JIRA Issue: Yes CAS-4770

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs:

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

First version of Calibrator class for OTF scan without OFF.


File size: 2.0 KB
RevLine 
[2742]1//
2// C++ Interface: CalibrationManager
3//
4// Description:
5//
6//
7// Author: Takeshi Nakazato <takeshi.nakazato@nao.ac.jp>, (C) 2012
8//
9// Copyright: See COPYING file that comes with this distribution
10//
11//
12#ifndef ASAP_CALIBRATION_MANAGER_H
13#define ASAP_CALIBRATION_MANAGER_H
14
15#include <string>
16#include <vector>
17
18//#include <boost/scoped_ptr>
19
20#include <casa/BasicSL/String.h>
21#include <casa/Utilities/CountedPtr.h>
22#include <casa/Logging/LogIO.h>
23
24#include "ScantableWrapper.h"
25#include "STApplyCal.h"
26#include "STCalTsys.h"
27#include "STCalibration.h"
28#include "STCalEnum.h"
29
30namespace asap {
31
32/**
33 * Class for calibration management.
34 * It also intends to be an interface for Python layer.
35 * @author TakeshiNakazato
36 */
37class CalibrationManager {
38public:
39 CalibrationManager();
40
41 virtual ~CalibrationManager();
42
43 void setScantable(ScantableWrapper &s);
44 void setScantableByName(const std::string &s);
45 void addSkyTable(const std::string &c);
46 void addTsysTable(const std::string &c);
47 void setMode(const std::string &mode);
48 void setTimeInterpolation(const std::string &interp, int order=-1);
49 void setFrequencyInterpolation(const std::string &interp, int order=-1);
50 void setTsysSpw(const std::vector<int> &spwlist);
51 void setTsysTransfer(unsigned int from,
52 const std::vector<unsigned int> &to);
[2757]53 void setCalibrationOptions(const casa::Record &options) {options_ = options;}
[2742]54 void resetCalSetup();
55 void reset();
56
57 void calibrate();
[2750]58 void apply(bool insitu=false, bool filltsys=true);
[2742]59 void saveCaltable(const std::string &name);
60 void split(const std::string &name);
61private:
62 STCalEnum::InterpolationType stringToInterpolationEnum(const std::string &s);
63
[2757]64 casa::Bool isAlmaAntenna();
65
[2742]66 casa::CountedPtr<STApplyCal> applicator_;
67
68 std::vector<casa::CountedPtr<STApplyTable> > skytables_;
69 std::vector<casa::CountedPtr<STApplyTable> > tsystables_;
70
71 casa::CountedPtr<Scantable> target_;
72
73 casa::String calmode_;
74 std::vector<int> spwlist_;
75
76 casa::LogIO os_;
[2757]77
78 casa::Record options_;
[2742]79};
80
81}
82#endif
Note: See TracBrowser for help on using the repository browser.