Changeset 2986 for trunk/src/STMath.cpp
- Timestamp:
- 08/15/14 19:24:40 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMath.cpp
r2978 r2986 372 372 } 373 373 const Vector<Bool>& msk = acc.getMask(); 374 uInt outFlagRow = 0; 374 375 if ( allEQ(msk, False) ) { 375 376 rowstodelB[nrowdel] = i ; 376 377 nrowdel++ ; 377 outrowCount++; 378 acc.reset(); 379 iter.next(); 380 continue; 378 outFlagRow = 1; 381 379 } 382 380 //write out … … 406 404 // which requires resetting this value 407 405 cycColOut.put(i, uInt(0)); 408 // completely flagged rows are removed anyway 409 flagRowColOut.put(i, uInt(0)); 406 flagRowColOut.put(i, outFlagRow); 410 407 } else { 411 408 os << "For output row="<<i<<", all input rows of data are flagged. no averaging" << LogIO::POST; … … 420 417 421 418 if ( nrowdel > 0 ) { 422 Vector<uInt> rowstodelete( IPosition(1,nrowdel), rowstodelB.storage(), SHARE ) ;423 //os << rowstodelete << LogIO::POST;424 tout.removeRow(rowstodelete);419 if (nrowdel == tout.nrow()) { 420 os << LogIO::WARN << "Output data are fully flagged." << LogIO::POST; 421 } 425 422 if (tout.nrow() == 0) { 426 423 throw(AipsError("Can't average fully flagged data."));
Note: See TracChangeset
for help on using the changeset viewer.