Changeset 1994 for trunk/src/Scantable.h


Ignore:
Timestamp:
02/16/11 14:59:40 (13 years ago)
Author:
Kana Sugimoto
Message:

New Development: Yes

JIRA Issue: Yes (CAS-1306)

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: added row selection parameters to scantable.flag,

ScantableWrapper::flag and Scantable::flag.

Test Programs:

Put in Release Notes: No

Module(s): scantable class

Description:

Enabled a row selection in scantable.flag.

  • A parameter 'row' is added to scantable.flag. The default value -1 applies

specified channel flags to the all rows in the scantable (same as previous code).

  • A parameter 'whichrow' is also added to ScantableWrapper::flag and

Scantable::flag accordingly.

  • The actual flagg application part in the code Scantable::flag is moved to a new

private function Scantable::applyChanFlag(uInt whichrow, vector<bool> msk, uChar flagval).
The function applies flag with a value, 'flagval', to masked channels, 'msk',
in a selected row, 'whichrow'.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.h

    r1947 r1994  
    230230   */
    231231  //void flag( const std::vector<bool>& msk = std::vector<bool>());
    232   void flag( const std::vector<bool>& msk = std::vector<bool>(), bool unflag=false);
     232  //void flag( const std::vector<bool>& msk = std::vector<bool>(), bool unflag=false);
     233
     234  void flag( int whichrow = -1, const std::vector<bool>& msk = std::vector<bool>(), bool unflag=false);
    233235
    234236  /**
     
    607609
    608610  void doPolyBaseline(const std::vector<bool>& mask, int order, int rowno, Fitter& fitter);
     611
     612  void applyChanFlag( casa::uInt whichrow, const std::vector<bool>& msk, casa::uChar flagval);
     613
     614
    609615};
    610616
    611 
    612617} // namespace
    613618
Note: See TracChangeset for help on using the changeset viewer.