Changeset 2012 for trunk/src/Scantable.h
- Timestamp:
- 02/25/11 16:51:50 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.h
r2005 r2012 16 16 #include <string> 17 17 #include <vector> 18 #include <iostream> 19 #include <fstream> 18 20 // AIPS++ 19 21 #include <casa/aips.h> … … 493 495 bool getFlagtraFast(int whichrow); 494 496 495 void polyBaselineBatch(const std::vector<bool>& mask, int order); 496 STFitEntry polyBaseline(const std::vector<bool>& mask, int order, int rowno); 497 void polyBaseline(const std::vector<bool>& mask, 498 int order, 499 bool outLogger=false, 500 const std::string& blfile=""); 501 void autoPolyBaseline(const std::vector<bool>& mask, 502 int order, 503 const std::vector<int>& edge, 504 float threshold=3.0, 505 int chanAvgLimit=1, 506 bool outLogger=false, 507 const std::string& blfile=""); 508 void cubicSplineBaseline(const std::vector<bool>& mask, 509 int nPiece, 510 float thresClip, 511 int nIterClip, 512 bool outLogger=false, 513 const std::string& blfile=""); 514 void autoCubicSplineBaseline(const std::vector<bool>& mask, 515 int nPiece, 516 float thresClip, 517 int nIterClip, 518 const std::vector<int>& edge, 519 float threshold=3.0, 520 int chanAvgLimit=1, 521 bool outLogger=false, 522 const std::string& blfile=""); 523 float getRms(const std::vector<bool>& mask, int whichrow); 524 std::string formatBaselineParams(const std::vector<float>& params, 525 const std::vector<bool>& fixed, 526 float rms, 527 const std::string& masklist, 528 int whichrow, 529 bool verbose=false) const; 530 std::string formatPiecewiseBaselineParams(const std::vector<int>& ranges, 531 const std::vector<float>& params, 532 const std::vector<bool>& fixed, 533 float rms, 534 const std::string& masklist, 535 int whichrow, 536 bool verbose=false) const; 537 497 538 498 539 private: … … 608 649 const casa::Array<T2>&); 609 650 610 void doPolyBaseline(const std::vector<bool>& mask, int order, int rowno, Fitter& fitter); 651 void fitBaseline(const std::vector<bool>& mask, int whichrow, Fitter& fitter); 652 std::vector<float> doCubicSplineFitting(const std::vector<float>& data, 653 const std::vector<bool>& mask, 654 std::vector<int>& sectionRanges, 655 std::vector<float>& params, 656 int nPiece=2, 657 float thresClip=3.0, 658 int nIterClip=1); 659 bool hasSameNchanOverIFs(); 660 std::string getMaskRangeList(const std::vector<bool>& mask, 661 int whichrow, 662 const casa::String& coordInfo, 663 bool hasSameNchan, 664 int firstIF, 665 bool silent=false); 666 std::vector<int> getMaskEdgeIndices(const std::vector<bool>& mask, bool getStartIndices=true); 667 std::string formatBaselineParamsHeader(int whichrow, const std::string& masklist, bool verbose) const; 668 std::string formatBaselineParamsFooter(float rms, bool verbose) const; 669 std::vector<bool> getCompositeChanMask(int whichrow, const std::vector<bool>& inMask); 670 //std::vector<bool> getCompositeChanMask(int whichrow, const std::vector<bool>& inMask, const std::vector<int>& edge, const int minEdgeSize, STLineFinder& lineFinder); 611 671 612 672 void applyChanFlag( casa::uInt whichrow, const std::vector<bool>& msk, casa::uChar flagval);
Note: See TracChangeset
for help on using the changeset viewer.