- Timestamp:
- 04/12/13 10:32:54 (12 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r2791 r2811 2490 2490 } 2491 2491 2492 std::vector<std::string> Scantable::applyBaselineTable(const std::string& bltable, const std::string& outbltable, const bool outbltableexists, const bool overwrite)2492 std::vector<std::string> Scantable::applyBaselineTable(const std::string& bltable, const bool returnfitresult, const std::string& outbltable, const bool outbltableexists, const bool overwrite) 2493 2493 { 2494 2494 STBaselineTable btin = STBaselineTable(bltable); … … 2520 2520 float rms; 2521 2521 std::vector<float> resfit = doApplyBaselineTable(spec, mask, ftype, fpar, params, rms); 2522 2523 2522 setSpectrum(resfit, whichrow); 2524 2523 2525 res.push_back(packFittingResults(whichrow, params, rms)); 2524 if (returnfitresult) { 2525 res.push_back(packFittingResults(whichrow, params, rms)); 2526 } 2526 2527 2527 2528 if (outBaselineTable) { … … 2556 2557 } 2557 2558 2558 std::vector<std::string> Scantable::subBaseline(const std::vector<std::string>& blInfoList, const std::string& outbltable, const bool outbltableexists, const bool overwrite)2559 std::vector<std::string> Scantable::subBaseline(const std::vector<std::string>& blInfoList, const bool returnfitresult, const std::string& outbltable, const bool outbltableexists, const bool overwrite) 2559 2560 { 2560 2561 int nRowBl = blInfoList.size(); … … 2602 2603 std::vector<float> resfit = doSubtractBaseline(spec, mask, ftype, fpar, params, rms, finalmask, clipth, clipn, uself, irow, lfth, lfedge, lfavg); 2603 2604 setSpectrum(resfit, irow); 2604 res.push_back(packFittingResults(irow, params, rms)); 2605 2606 if (returnfitresult) { 2607 res.push_back(packFittingResults(irow, params, rms)); 2608 } 2605 2609 2606 2610 if (outBaselineTable) { -
trunk/src/Scantable.h
r2791 r2811 511 511 bool getFlagtraFast(casa::uInt whichrow); 512 512 513 std::vector<std::string> applyBaselineTable(const std::string& bltable, const std::string& outbltable, const bool outbltableexists, const bool overwrite); 514 std::vector<std::string> subBaseline(const std::vector<std::string>& blInfoList, const std::string& outbltable, const bool outbltableexists, const bool overwrite); 513 std::vector<std::string> applyBaselineTable(const std::string& bltable, 514 const bool returnfitresult, 515 const std::string& outbltable, 516 const bool outbltableexists, 517 const bool overwrite); 518 std::vector<std::string> subBaseline(const std::vector<std::string>& blInfoList, 519 const bool returnfitresult, 520 const std::string& outbltable, 521 const bool outbltableexists, 522 const bool overwrite); 515 523 void polyBaseline(const std::vector<bool>& mask, 516 524 int order, -
trunk/src/ScantableWrapper.h
r2791 r2811 281 281 { table_->regridSpecChannel( dnu, nchan ); } 282 282 283 std::vector<std::string> applyBaselineTable(const std::string& bltable, const std::string& outbltable, const bool outbltableexists, const bool overwrite)284 { return table_->applyBaselineTable(bltable, outbltable, outbltableexists, overwrite); }285 std::vector<std::string> subBaseline(const std::vector<std::string>& blinfo, const std::string& outbltable, const bool outbltableexists, const bool overwrite)286 { return table_->subBaseline(blinfo, outbltable, outbltableexists, overwrite); }283 std::vector<std::string> applyBaselineTable(const std::string& bltable, const bool returnfitresult, const std::string& outbltable, const bool outbltableexists, const bool overwrite) 284 { return table_->applyBaselineTable(bltable, returnfitresult, outbltable, outbltableexists, overwrite); } 285 std::vector<std::string> subBaseline(const std::vector<std::string>& blinfo, const bool returnfitresult, const std::string& outbltable, const bool outbltableexists, const bool overwrite) 286 { return table_->subBaseline(blinfo, returnfitresult, outbltable, outbltableexists, overwrite); } 287 287 void polyBaseline(const std::vector<bool>& mask, int order, float clipthresh, int clipniter, bool getresidual=true, const std::string& showprogress="true,1000", const bool outlog=false, const std::string& blfile="", const std::string& bltable="") 288 288 { table_->polyBaseline(mask, order, clipthresh, clipniter, getresidual, showprogress, outlog, blfile, bltable); }
Note:
See TracChangeset
for help on using the changeset viewer.