source: trunk/src/STCalibration.h @ 2742

Last change on this file since 2742 was 2742, checked in by Takeshi Nakazato, 11 years ago

New Development: No

JIRA Issue: Yes CAS-4770

Ready for Test: Yes

Interface Changes: Yes/No?

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Defined python interface for calibration that supports both
on-the-fly and interferometry-style (generate caltable and apply)
calibration.

File size: 1.1 KB
Line 
1//
2// C++ Interface: STCalibration
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 ASAPSTCALIBRATION_H
13#define ASAPSTCALIBRATION_H
14
15#include <memory>
16
17#include <casa/aips.h>
18#include <casa/Arrays/Vector.h>
19#include <casa/BasicSL/String.h>
20#include <casa/Utilities/CountedPtr.h>
21
22#include <scimath/Mathematics/InterpolateArray1D.h>
23
24#include "Scantable.h"
25#include "STDefs.h"
26#include "STApplyTable.h"
27
28class CalibrationManager;
29
30namespace asap {
31
32/**
33 * Calibration operations on Scantable objects
34 * @author TakeshiNakazato
35 */
36class STCalibration {
37
38  friend class CalibrationManager;
39
40public:
41  STCalibration(casa::CountedPtr<Scantable> &s);
42
43  void calibrate();
44
45  virtual ~STCalibration() {;}
46
47  void save(casa::String name) {applytable_->save(name);}
48  const STApplyTable &applytable() {return *applytable_;}
49protected:
50  virtual void setupSelector() = 0;
51  virtual void fillCalTable() = 0;
52
53  STSelector sel_;
54  casa::CountedPtr<Scantable> scantable_;
55  casa::CountedPtr<STApplyTable> applytable_;
56};
57
58}
59#endif
Note: See TracBrowser for help on using the repository browser.