source: trunk/src/python_STGrid.cpp@ 2356

Last change on this file since 2356 was 2356, checked in by Takeshi Nakazato, 13 years ago

New Development: Yes

JIRA Issue: Yes CAS-2816

Ready for Test: No

Interface Changes: 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 new class STGrid and its python interface.
The STGrid class performs single dish gridding.
At the moment, only single polarization data is supported.


File size: 1.0 KB
Line 
1//#---------------------------------------------------------------------------
2//# python_STGrid.cc: python exposure of c++ STGrid class
3//#---------------------------------------------------------------------------
4#include <string>
5
6#include <boost/python.hpp>
7#include <boost/python/args.hpp>
8
9#include "STGrid.h"
10//#include "STGridWrapper.h"
11
12using namespace boost::python;
13
14namespace asap {
15 namespace python {
16
17void python_STGrid() {
18 //class_<STGridWrapper>("stgrid")
19 class_<STGrid>("stgrid")
20 .def( init <> () )
21 .def( init < const std::string > () )
22 //.def( init < const STGrid& > () )
23// .def("_defineimage", &STGridWrapper::defineImage)
24// .def("_setoption", &STGridWrapper::setOption)
25// .def("_grid", &STGridWrapper::grid)
26 .def("_defineimage", &STGrid::defineImage)
27 .def("_setoption", &STGrid::setOption)
28 .def("_grid", &STGrid::grid)
29 .def("_setin", &STGrid::setFileIn)
30// .def("_setout", &STGrid::setFileOut)
31 .def("_save", &STGrid::saveData)
32 ;
33};
34
35 } // python
36} // asap
Note: See TracBrowser for help on using the repository browser.