source: trunk/src/python_CalibrationManager.cpp @ 2922

Last change on this file since 2922 was 2922, checked in by Takeshi Nakazato, 10 years ago

New Development: No

JIRA Issue: Yes CAS-6382

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: test_tsdcal2

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Define new method, setTsysSpwWithRange, to support channel averaging of Tsys.
Implementation is not completed so that it only supports similar
behavior with previous one (which is using setTsysSpw).


File size: 2.0 KB
Line 
1//#---------------------------------------------------------------------------
2//# python_CalibrationManager.cc: python exposure of c++ calibration classes
3//#---------------------------------------------------------------------------
4#include <boost/python.hpp>
5#include <boost/python/args.hpp>
6
7#include <string>
8#include <vector>
9
10#include "CalibrationManager.h"
11#include "ScantableWrapper.h"
12
13using namespace boost::python;
14
15namespace asap {
16  namespace python {
17
18void python_CalibrationManager() {
19  class_<CalibrationManager>("_calmanager")
20    .def( init <> () )
21    .def("set_data", &CalibrationManager::setScantable)
22    .def("set_data", &CalibrationManager::setScantableByName)
23    .def("add_applytable", &CalibrationManager::addApplyTable)
24    .def("add_skytable", &CalibrationManager::addSkyTable)
25    .def("add_tsystable", &CalibrationManager::addTsysTable)
26    .def("set_calmode", &CalibrationManager::setMode)
27    .def("set_time_interpolation", &CalibrationManager::setTimeInterpolation,
28         (boost::python::arg("interp"),
29          boost::python::arg("order")=-1))
30    .def("set_freq_interpolation", &CalibrationManager::setFrequencyInterpolation,
31         (boost::python::arg("interp"),
32          boost::python::arg("order")=-1))
33    .def("set_calibration_options", &CalibrationManager::setCalibrationOptions)
34    .def("reset", &CalibrationManager::reset)
35    .def("set_tsys_spw", &CalibrationManager::setTsysSpw)
36    .def("set_tsys_spw_withrange", &CalibrationManager::setTsysSpwWithRange,
37         (boost::python::arg("spwlist"),
38          boost::python::arg("average")=false))
39    .def("set_tsys_transfer", &CalibrationManager::setTsysTransfer)
40    .def("calibrate", &CalibrationManager::calibrate)
41    .def("apply", &CalibrationManager::apply,
42         (boost::python::arg("insitu")=false,
43          boost::python::arg("filltsys")=true))
44    .def("save_caltable", &CalibrationManager::saveCaltable)
45    .def("split", &CalibrationManager::split)
46    ;
47   
48};
49
50  } // python
51} // asap
Note: See TracBrowser for help on using the repository browser.