- Timestamp:
- 02/14/05 13:26:04 (20 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMemTable.cc
r418 r426 346 346 } 347 347 348 std::vector<float> SDMemTable::getStokesSpectrum(Int whichRow, Bool doPol ) const348 std::vector<float> SDMemTable::getStokesSpectrum(Int whichRow, Bool doPol, Float paOffset) const 349 349 // 350 350 // Gets … … 376 376 out = SDPolUtil::polarizedIntensity(Q,U); 377 377 } else if (polSel_==2) { // P.A. 378 out = SDPolUtil::positionAngle(Q,U) ;378 out = SDPolUtil::positionAngle(Q,U) + paOffset; 379 379 } 380 380 // -
trunk/src/SDMemTable.h
r418 r426 94 94 virtual std::vector<float> getSpectrum(casa::Int whichRow=0) const; 95 95 virtual std::vector<bool> getMask(casa::Int whichRow=0) const; 96 // Get STokes at cursor location. One of either I,Q,U,V or I,P,PA,V (doPol=True) 97 // If the latter, you can add a PA offset (degrees) 96 98 virtual std::vector<float> getStokesSpectrum(casa::Int whichRow=0, 97 casa::Bool doPol=casa::False) const; 99 casa::Bool doPol=casa::False, 100 casa::Float paOffset=0.0) const; 98 101 99 102 virtual casa::Float getTsys(casa::Int whichRow=0) const; -
trunk/src/SDMemTableWrapper.h
r421 r426 81 81 } 82 82 83 std::vector<float> getStokesSpectrum(int whichRow=0, bool doPol=false ) const {84 return table_->getStokesSpectrum(whichRow, doPol );83 std::vector<float> getStokesSpectrum(int whichRow=0, bool doPol=false, float paOff=0.0) const { 84 return table_->getStokesSpectrum(whichRow, doPol, paOff); 85 85 } 86 86 -
trunk/src/SDPol.cc
r419 r426 230 230 const Array<Float>& U) 231 231 { 232 return Float(180.0/C::pi/2.0)*atan2(Q,U); 232 return Float(180.0/C::pi/2.0)*atan2(Q,U); // Degrees 233 233 } 234 234 -
trunk/src/python_SDMemTable.cc
r423 r426 74 74 .def("_getstokesspectrum", &SDMemTableWrapper::getStokesSpectrum, 75 75 (boost::python::arg("whichRow")=0), 76 (boost::python::arg("pol")=false) ) 76 (boost::python::arg("pol")=false), 77 (boost::python::arg("pa")=0.0) ) 77 78 .def("_setspectrum",&SDMemTableWrapper::setSpectrum, 78 79 (boost::python::arg("whichRow")=0) )
Note:
See TracChangeset
for help on using the changeset viewer.