- Timestamp:
- 01/29/13 19:21:55 (12 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/CalibrationManager.cpp
r2747 r2750 182 182 } 183 183 184 void CalibrationManager::apply( )184 void CalibrationManager::apply(bool insitu, bool filltsys) 185 185 { 186 186 os_.origin(LogOrigin("CalibrationManager","apply",WHERE)); … … 191 191 for (size_t i = 0; i < skytables_.size(); i++) 192 192 applicator_->push(dynamic_cast<STCalSkyTable*>(&(*skytables_[i]))); 193 applicator_->apply( false);193 applicator_->apply(insitu, filltsys); 194 194 } 195 195 … … 198 198 os_.origin(LogOrigin("CalibrationManager","saveCaltable",WHERE)); 199 199 if (calmode_ == "TSYS") { 200 assert(tsystables_.size() > 0); 200 201 os_ << LogIO::DEBUGGING << "save latest STCalTsysTable as " << name << "." << LogIO::POST; 201 202 tsystables_[tsystables_.size()-1]->save(name); 202 203 } 203 204 else { 205 assert(skytables_.size() > 0); 204 206 os_ << LogIO::DEBUGGING << "save latest STCalSkyTable as " << name << "." << LogIO::POST; 205 207 skytables_[skytables_.size()-1]->save(name); -
trunk/src/CalibrationManager.h
r2742 r2750 55 55 56 56 void calibrate(); 57 void apply( );57 void apply(bool insitu=false, bool filltsys=true); 58 58 void saveCaltable(const std::string &name); 59 59 void split(const std::string &name); -
trunk/src/STApplyCal.cpp
r2742 r2750 168 168 { 169 169 os_.origin(LogOrigin("STApplyCal","apply",WHERE)); 170 171 assert(!target_.null()); 172 170 173 // calibrator 171 174 if (caltype_ == STCalEnum::CalPSAlma) … … 186 189 187 190 // working data 188 if (insitu) 191 if (insitu) { 192 os_.origin(LogOrigin("STApplyCal","apply",WHERE)); 193 os_ << "Overwrite input scantable" << LogIO::POST; 189 194 work_ = target_; 190 else 195 } 196 else { 197 os_.origin(LogOrigin("STApplyCal","apply",WHERE)); 198 os_ << "Create output scantable from input" << LogIO::POST; 191 199 work_ = new Scantable(*target_, false); 200 } 192 201 193 202 //os_ << "work_->nrow()=" << work_->nrow() << LogIO::POST; … … 219 228 Vector<uInt> rows = iter->getRows(SHARE); 220 229 if (rows.nelements() > 0) 221 doapply(ids[0], ids[2], ids[1], rows, skycalList );230 doapply(ids[0], ids[2], ids[1], rows, skycalList, filltsys); 222 231 iter->next(); 223 232 } -
trunk/src/STApplyCal.h
r2742 r2750 66 66 67 67 // apply tables 68 void apply(casa::Bool insitu= true, casa::Bool filltsys=false);68 void apply(casa::Bool insitu=false, casa::Bool filltsys=true); 69 69 70 70 // split target data and store it to disk … … 88 88 casa::Vector<casa::uInt> &rows, 89 89 casa::Vector<casa::uInt> &skylist, 90 casa::Bool filltsys= false);90 casa::Bool filltsys=true); 91 91 92 92 // get frequency information from FREQUENCIES subtable -
trunk/src/python_CalibrationManager.cpp
r2742 r2750 34 34 .def("set_tsys_transfer", &CalibrationManager::setTsysTransfer) 35 35 .def("calibrate", &CalibrationManager::calibrate) 36 .def("apply", &CalibrationManager::apply) 36 .def("apply", &CalibrationManager::apply, 37 (boost::python::arg("insitu")=false, 38 boost::python::arg("filltsys")=true)) 37 39 .def("save_caltable", &CalibrationManager::saveCaltable) 38 40 .def("split", &CalibrationManager::split)
Note:
See TracChangeset
for help on using the changeset viewer.