Changeset 867
- Timestamp:
- 03/06/06 10:50:34 (19 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMath.cpp
r862 r867 344 344 convertArray(flags1, !m1); 345 345 flagCol.put(1, flags1); 346 346 ++iter; 347 347 } 348 348 … … 362 362 for (uInt i=0; i < tab.nrow(); ++i ) { 363 363 Vector<Float> spec; specCol.get(i, spec); 364 MaskedArray<Float> ma = maskedArray(spec, flagCol(i)); 365 float outstat; 364 Vector<uChar> flag; flagCol.get(i, flag); 365 MaskedArray<Float> ma = maskedArray(spec, flag); 366 float outstat = 0.0; 366 367 if ( spec.nelements() == m.nelements() ) { 367 368 outstat = mathutil::statistics(which, ma(m)); … … 513 514 514 515 CountedPtr< Scantable > STMath::gainElevation( const CountedPtr< Scantable >& in, 515 const Vector< Float > & coeffs,516 const vector< float > & coeff, 516 517 const std::string & filename, 517 518 const std::string& method) … … 524 525 x *= Float(180 / C::pi); // Degrees 525 526 527 Vector<Float> coeffs(coeff); 526 528 const uInt nc = coeffs.nelements(); 527 529 if ( filename.length() > 0 && nc > 0 ) { … … 743 745 flagCol.put(i, flagsFromMA(ma)); 744 746 } 747 ++iter; 745 748 } 746 749 } … … 801 804 specCol.put(i, specout); 802 805 } 806 ++iter; 803 807 } 804 808 return out; -
trunk/src/STMath.h
r858 r867 86 86 casa::CountedPtr<Scantable> 87 87 gainElevation(const casa::CountedPtr<Scantable>& in, 88 const casa::Vector<casa::Float>& coeffs,88 const std::vector<float>& coeff, 89 89 const std::string& fileName, 90 90 const std::string& method);
Note:
See TracChangeset
for help on using the changeset viewer.