- Timestamp:
- 03/14/13 16:22:24 (12 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r2774 r2789 5194 5194 5195 5195 5196 void Scantable::dropXPol() 5197 { 5198 if (npol() <= 2) { 5199 return; 5200 } 5201 if (!selector_.empty()) { 5202 throw AipsError("Can only operate with empty selection"); 5203 } 5204 std::string taql = "SELECT FROM $1 WHERE POLNO IN [0,1]"; 5205 Table tab = tableCommand(taql, table_); 5206 table_ = tab; 5207 table_.rwKeywordSet().define("nPol", Int(2)); 5208 originalTable_ = table_; 5209 attach(); 5210 } 5211 5196 5212 } 5197 5213 //namespace asap -
trunk/src/Scantable.h
r2773 r2789 635 635 int chanAvgLimit); 636 636 static std::vector<bool> getMaskFromMaskList(const int nchan, 637 const std::vector<int>& masklist); 638 static casa::Vector<casa::uInt> getMaskListFromMask(const std::vector<bool>& mask); 639 static std::vector<int> splitToIntList(const std::string& str, const char delim); 640 static std::vector<string> splitToStringList(const std::string& str, const char delim); 641 642 637 const std::vector<int>& masklist); 638 static casa::Vector<casa::uInt> getMaskListFromMask( 639 const std::vector<bool>& mask); 640 static std::vector<int> splitToIntList(const std::string& str, 641 const char delim); 642 static std::vector<string> splitToStringList(const std::string& str, 643 const char delim); 644 645 void dropXPol(); 643 646 644 647 private: -
trunk/src/ScantableWrapper.h
r2767 r2789 328 328 { return table_->calculateModelSelectionCriteria(valname, blfunc, order, inMask, whichrow, useLineFinder, edge, threshold, chanAvgLimit); } 329 329 330 void dropXPol() { table_->dropXPol(); } 331 330 332 private: 331 333 casa::CountedPtr<Scantable> table_; -
trunk/src/python_Scantable.cpp
r2767 r2789 166 166 .def("_setmolidcol_list", &ScantableWrapper::setMoleculeIdColumnData) 167 167 .def("_calc_aic", &ScantableWrapper::calculateModelSelectionCriteria) 168 .def("drop_xpol", &ScantableWrapper::dropXPol) 168 169 ; 169 170 };
Note:
See TracChangeset
for help on using the changeset viewer.