Changeset 3048
- Timestamp:
- 08/25/15 19:56:55 (9 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r3047 r3048 12 12 #include <map> 13 13 #include <sys/time.h> 14 #include <iostream> 14 15 15 16 #include <atnf/PKSIO/SrcType.h> … … 2608 2609 std::vector<float> params; 2609 2610 float rms; 2610 std::vector<float> resfit = doApplyBaselineTable(spec, mask, ftype, fpar, params, rms );2611 std::vector<float> resfit = doApplyBaselineTable(spec, mask, ftype, fpar, params, rms, whichrow); 2611 2612 setSpectrum(resfit, whichrow); 2612 2613 … … 2743 2744 } 2744 2745 2745 std::vector<float> Scantable::doApplyBaselineTable(std::vector<float>& spec, 2746 std::vector<bool>& mask, 2747 const STBaselineFunc::FuncName ftype, 2746 std::vector<float> Scantable::doApplyBaselineTable(std::vector<float>& spec, 2747 std::vector<bool>& mask, 2748 const STBaselineFunc::FuncName ftype, 2748 2749 std::vector<int>& fpar, 2749 2750 std::vector<float>& params, 2750 float&rms) 2751 float&rms, 2752 int irow) 2751 2753 { 2752 2754 std::vector<bool> finalmask; 2753 2755 std::vector<int> lfedge; 2754 return doSubtractBaseline(spec, mask, ftype, fpar, params, rms, finalmask, 0.0, 0, false, 0, 0.0, lfedge, 0);2756 return doSubtractBaseline(spec, mask, ftype, fpar, params, rms, finalmask, 0.0, 0, false, irow, 0.0, lfedge, 0); 2755 2757 } 2756 2758 -
trunk/src/Scantable.h
r3043 r3048 991 991 std::string packFittingResults(const int irow, const std::vector<float>& params, const float rms); 992 992 void parseBlInfo(const std::string& blInfo, int& whichrow, STBaselineFunc::FuncName& ftype, std::vector<int>& fpar, std::vector<bool>& mask, float& thresClip, int& nIterClip, bool& useLineFinder, float& thresLF, std::vector<int>& edgeLF, int& avgLF); 993 std::vector<float> doApplyBaselineTable(std::vector<float>& spec, std::vector<bool>& mask, const STBaselineFunc::FuncName ftype, std::vector<int>& fpar, std::vector<float>& params, float&rms);993 std::vector<float> doApplyBaselineTable(std::vector<float>& spec, std::vector<bool>& mask, const STBaselineFunc::FuncName ftype, std::vector<int>& fpar, std::vector<float>& params, float&rms, int irow); 994 994 std::vector<float> doSubtractBaseline(std::vector<float>& spec, std::vector<bool>& mask, const STBaselineFunc::FuncName ftype, std::vector<int>& fpar, std::vector<float>& params, float&rms, std::vector<bool>& finalmask, float clipth, int clipn, bool uself, int irow, float lfth, std::vector<int>& lfedge, int lfavg); 995 995
Note:
See TracChangeset
for help on using the changeset viewer.