Changeset 2161 for trunk


Ignore:
Timestamp:
05/02/11 16:00:51 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: scantable._gettsysspectrum()

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Added scantable._gettsysspectrum() that retrieves channel-dependent Tsys.


Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r2133 r2161  
    28592859}
    28602860
     2861vector<float> Scantable::getTsysSpectrum( int whichrow ) const
     2862{
     2863  Vector<Float> tsys( tsysCol_(whichrow) ) ;
     2864  vector<float> stlTsys ;
     2865  tsys.tovector( stlTsys ) ;
     2866  return stlTsys ;
     2867}
    28612868
    28622869/*
  • trunk/src/Scantable.h

    r2111 r2161  
    336336  float getTsys(int whichrow) const
    337337    { return casa::Vector<casa::Float>(tsysCol_(whichrow))(0); }
     338  std::vector<float> getTsysSpectrum(int whichrow) const ;
    338339  float getElevation(int whichrow) const
    339340    { return elCol_(whichrow); }
  • trunk/src/ScantableWrapper.h

    r2111 r2161  
    8484    { return table_->getTsys(whichrow); }
    8585
     86  std::vector<float> getTsysSpectrum(int whichrow=0) const
     87    { return table_->getTsysSpectrum(whichrow); }
     88
    8689  //std::string getTime(int whichrow=0) const
    8790  //  { return table_->getTime(whichrow); }
  • trunk/src/python_Scantable.cpp

    r2125 r2161  
    9191         (boost::python::arg("whichrow")=0) )
    9292    .def("_gettsys", &ScantableWrapper::getTsys)
     93    .def("_gettsysspectrum", &ScantableWrapper::getTsysSpectrum )
    9394    .def("_getsourcename", &ScantableWrapper::getSourceName,
    9495         (boost::python::arg("whichrow")=0) )
Note: See TracChangeset for help on using the changeset viewer.