source: trunk/src/CalibrationManager.h@ 2804

Last change on this file since 2804 was 2762, 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: test_sdcal2

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Added new method CalibrationManger::addApplyTable and its python interface.
The method understands what kind of apply table is given, and call
appropriate addXXX method.


File size: 2.1 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);
[2762]45 void addApplyTable(const std::string &c);
[2742]46 void addSkyTable(const std::string &c);
47 void addTsysTable(const std::string &c);
48 void setMode(const std::string &mode);
49 void setTimeInterpolation(const std::string &interp, int order=-1);
50 void setFrequencyInterpolation(const std::string &interp, int order=-1);
51 void setTsysSpw(const std::vector<int> &spwlist);
52 void setTsysTransfer(unsigned int from,
53 const std::vector<unsigned int> &to);
[2757]54 void setCalibrationOptions(const casa::Record &options) {options_ = options;}
[2742]55 void resetCalSetup();
56 void reset();
57
58 void calibrate();
[2750]59 void apply(bool insitu=false, bool filltsys=true);
[2742]60 void saveCaltable(const std::string &name);
61 void split(const std::string &name);
62private:
63 STCalEnum::InterpolationType stringToInterpolationEnum(const std::string &s);
64
[2757]65 casa::Bool isAlmaAntenna();
66
[2742]67 casa::CountedPtr<STApplyCal> applicator_;
68
69 std::vector<casa::CountedPtr<STApplyTable> > skytables_;
70 std::vector<casa::CountedPtr<STApplyTable> > tsystables_;
71
72 casa::CountedPtr<Scantable> target_;
73
74 casa::String calmode_;
75 std::vector<int> spwlist_;
76
77 casa::LogIO os_;
[2757]78
79 casa::Record options_;
[2742]80};
81
82}
83#endif
Note: See TracBrowser for help on using the repository browser.