Last change
on this file since 2707 was
2707,
checked in by Kana Sugimoto, 11 years ago
|
New Development: Yes
JIRA Issue: Yes (CAS-4141)
Ready for Test: Yes
Interface Changes: Yes
What Interface Changed:
- a new c++ class, STSideBandSep and its python interface.
- a new method set_lo1 in the sbseparator module.
Test Programs: manual tests by CSV scientists.
Put in Release Notes: No
Module(s): STSidebandSep (a new class) and sbseparator
Description:
Added a new c++ class, STSideBandSep, and its python interface (python_STSideBandSep.cpp).
The class works on calculating frequency information of image side band and fill scantable.
Also added a new python method, set_lo1(double), in sbseparator module. This is to allow
user to set LO1 frequency to solve frequencies of image side band manually.
|
File size:
1.1 KB
|
Line | |
---|
1 | //#--------------------------------------------------------------------------- |
---|
2 | //# python_STSideBandSep.cpp: python exposure of c++ STSideBandSep class |
---|
3 | //#--------------------------------------------------------------------------- |
---|
4 | //# Author: Kanako Sugimoto, (C) 2012 |
---|
5 | //# |
---|
6 | //# Copyright: See COPYING file that comes with this distribution |
---|
7 | //# |
---|
8 | //#--------------------------------------------------------------------------- |
---|
9 | #include <boost/python.hpp> |
---|
10 | #include <boost/python/args.hpp> |
---|
11 | |
---|
12 | |
---|
13 | #include "STSideBandSep.h" |
---|
14 | |
---|
15 | using namespace boost::python; |
---|
16 | |
---|
17 | namespace asap { |
---|
18 | namespace python { |
---|
19 | |
---|
20 | void python_STSideBandSep() { |
---|
21 | class_<STSideBandSep>("SBSeparator") |
---|
22 | .def( init <> () ) |
---|
23 | .def( "set_freq", &STSideBandSep::setFrequency, |
---|
24 | (boost::python::arg("frame")="") ) |
---|
25 | .def( "set_lo1", &STSideBandSep::setLO1, |
---|
26 | (boost::python::arg("frame")="TOPO", |
---|
27 | boost::python::arg("reftime")=-1, |
---|
28 | boost::python::arg("refdir")="") ) |
---|
29 | //.def( "set_asdm", &STSideBandSep::setLO1Asdm ) |
---|
30 | // temporal methods |
---|
31 | .def( "set_imgtable", &STSideBandSep::setImageTable ) |
---|
32 | .def( "solve_imgfreq", &STSideBandSep::solveImageFreqency ) |
---|
33 | ; |
---|
34 | }; |
---|
35 | |
---|
36 | } // python |
---|
37 | } // asap |
---|
Note: See
TracBrowser
for help on using the repository browser.