Ignore:
Timestamp:
02/21/05 18:05:58 (19 years ago)
Author:
kil064
Message:

rework bindings for stokes conversion and associated functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/python_SDMemTable.cc

    r483 r494  
    7070    .def("_getspectrum", &SDMemTableWrapper::getSpectrum,
    7171         (boost::python::arg("whichRow")=0))
     72    .def("nstokes", &SDMemTableWrapper::nStokes)
    7273    .def("_getstokesspectrum", &SDMemTableWrapper::getStokesSpectrum,
    7374         (boost::python::arg("whichRow")=0),
    74          (boost::python::arg("pol")=false),
     75         (boost::python::arg("linpol")=false),
    7576         (boost::python::arg("pa")=0.0) )
    76     .def("_getcircularspectrum", &SDMemTableWrapper::getCircularSpectrum,
     77    .def("_stokestopolspectrum", &SDMemTableWrapper::stokesToPolSpectrum,
    7778         (boost::python::arg("whichRow")=0),
    78          (boost::python::arg("rr")=true))
     79         (boost::python::arg("linear")=false),
     80         (boost::python::arg("thepol")=0) )
     81    .def("_getpolarizationlabel", &SDMemTableWrapper::getPolarizationLabel,
     82         (boost::python::arg("linear")=false),
     83         (boost::python::arg("stokes")=false),
     84         (boost::python::arg("linpol")=false) )
     85//         (boost::python::arg("thepol")=0) )        // Boost fails with 4 arguments
    7986    .def("_setspectrum",&SDMemTableWrapper::setSpectrum,
    8087         (boost::python::arg("whichRow")=0) )
Note: See TracChangeset for help on using the changeset viewer.