- Timestamp:
- 06/19/14 11:21:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r2946 r2947 763 763 void Scantable::clip(const Float uthres, const Float dthres, bool clipoutside, bool unflag) 764 764 { 765 Vector<uInt> flagrow = flagrowCol_.getColumn(); 765 766 for (uInt i=0; i<table_.nrow(); ++i) { 766 Vector<uChar> flgs = flagsCol_(i); 767 srchChannelsToClip(i, uthres, dthres, clipoutside, unflag, flgs); 768 flagsCol_.put(i, flgs); 767 // apply flag only when specified row is vaild 768 if (flagrow[i] == 0) { 769 Vector<uChar> flgs = flagsCol_(i); 770 srchChannelsToClip(i, uthres, dthres, clipoutside, unflag, flgs); 771 flagsCol_.put(i, flgs); 772 } 769 773 } 770 774 } … … 833 837 } 834 838 if (whichrow > -1 ) { 835 applyChanFlag(uInt(whichrow), msk, userflag); 839 // apply flag only when specified row is vaild 840 if (flagrowCol_(whichrow) == 0) { 841 applyChanFlag(uInt(whichrow), msk, userflag); 842 } 836 843 } else { 837 844 for ( uInt i=0; i<table_.nrow(); ++i) { 838 applyChanFlag(i, msk, userflag); 845 // apply flag only when specified row is vaild 846 if (flagrowCol_(i) == 0) { 847 applyChanFlag(i, msk, userflag); 848 } 839 849 } 840 850 }
Note:
See TracChangeset
for help on using the changeset viewer.