Changeset 2317
- Timestamp:
- 09/29/11 17:11:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMath.cpp
r2289 r2317 396 396 vector< Vector<Double> > dirs ; 397 397 vector<int> indexes ; 398 // Handle MX mode averaging 399 if (in->nbeam() > 1 ) { 400 length = 1; 401 } 398 402 for ( Int i = 0 ; i < length ; i++ ) { 399 403 Vector<Double> t = dircol(i).getAngle(Unit(String("rad"))).getValue() ; … … 419 423 for ( uInt i = 0 ; i < rowNum ; i++ ) { 420 424 TableCopy::copyRows(tout, subt, outrowCount+i, indexes[i], 1) ; 425 // Handle MX mode averaging 421 426 if ( avmode != "SCAN") { 422 //scanColOut.put(outrowCount+i, uInt(0));427 scanColOut.put(outrowCount+i, uInt(0)); 423 428 } 424 429 } … … 426 431 dircolOut.attach( tout, "DIRECTION" ) ; 427 432 for ( uInt irow = 0 ; irow < rowNum ; irow++ ) { 428 Vector<Double> t = dircolOut(outrowCount+irow).getAngle(Unit(String("rad"))).getValue() ; 433 Vector<Double> t = \ 434 dircolOut(outrowCount+irow).getAngle(Unit(String("rad"))).getValue() ; 429 435 Vector<Float> tmp; 430 436 specCol.get(0, tmp); … … 435 441 // mask spectra for different DIRECTION 436 442 for ( uInt jrow = 0 ; jrow < subt.nrow() ; jrow++ ) { 437 Vector<Double> direction = dircol(jrow).getAngle(Unit(String("rad"))).getValue() ; 443 Vector<Double> direction = \ 444 dircol(jrow).getAngle(Unit(String("rad"))).getValue() ; 438 445 //if ( t[0] != direction[0] || t[1] != direction[1] ) { 439 446 Double dx = t[0] - direction[0] ; … … 441 448 Double dd = sqrt( dx * dx + dy * dy ) ; 442 449 //if ( !allNearAbs( t, direction, tol ) ) { 443 if ( dd > tol ) {450 if ( dd > tol && in->nbeam() < 2 ) { 444 451 flags[jrow] = userflag ; 445 452 }
Note:
See TracChangeset
for help on using the changeset viewer.