Changeset 2345
- Timestamp:
- 11/08/11 19:03:54 (13 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STLineFinder.cpp
r2196 r2345 955 955 // can be achieved using a spectrum mask only 956 956 int STLineFinder::findLines(const std::vector<bool> &in_mask, 957 958 957 const std::vector<int> &in_edge, 958 const casa::uInt &whichRow) throw(casa::AipsError) 959 959 { 960 960 if (useScantable && scan.null()) -
trunk/src/STMath.cpp
r2317 r2345 224 224 Vector<Double> x0 = (subt.col("DIRECTION").getArrayDouble(TableExprId(irow))) ; 225 225 Vector<Double> x1 = rec.asArrayDouble("DIRECTION") ; 226 double dx = x0[0] - x1[0] 227 double dy = x0[ 0] - x1[0];226 double dx = x0[0] - x1[0]; 227 double dy = x0[1] - x1[1]; 228 228 Double dd = sqrt( dx * dx + dy * dy ) ; 229 229 //if ( !allNearAbs((subt.col("DIRECTION").getArrayDouble(TableExprId(irow))), rec.asArrayDouble("DIRECTION"), tol ) ) { … … 444 444 dircol(jrow).getAngle(Unit(String("rad"))).getValue() ; 445 445 //if ( t[0] != direction[0] || t[1] != direction[1] ) { 446 Double dx = t[0] - direction[0] 447 Double dy = t[1] - direction[1] 448 Double dd = sqrt( dx * dx + dy * dy );446 Double dx = t[0] - direction[0]; 447 Double dy = t[1] - direction[1]; 448 Double dd = sqrt(dx*dx + dy*dy); 449 449 //if ( !allNearAbs( t, direction, tol ) ) { 450 450 if ( dd > tol && in->nbeam() < 2 ) { … … 3711 3711 } 3712 3712 3713 return out 3713 return out; 3714 3714 } 3715 3715
Note:
See TracChangeset
for help on using the changeset viewer.