Changeset 867


Ignore:
Timestamp:
03/06/06 10:50:34 (18 years ago)
Author:
mar637
Message:

gainEl interface change to std::vector
bug fix: forgot ++iter

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STMath.cpp

    r862 r867  
    344344    convertArray(flags1, !m1);
    345345    flagCol.put(1, flags1);
    346 
     346    ++iter;
    347347  }
    348348
     
    362362  for (uInt i=0; i < tab.nrow(); ++i ) {
    363363    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;
    366367    if ( spec.nelements() == m.nelements() ) {
    367368      outstat = mathutil::statistics(which, ma(m));
     
    513514
    514515CountedPtr< Scantable > STMath::gainElevation( const CountedPtr< Scantable >& in,
    515                                                const Vector< Float > & coeffs,
     516                                               const vector< float > & coeff,
    516517                                               const std::string & filename,
    517518                                               const std::string& method)
     
    524525  x *= Float(180 / C::pi);                        // Degrees
    525526
     527  Vector<Float> coeffs(coeff);
    526528  const uInt nc = coeffs.nelements();
    527529  if ( filename.length() > 0 && nc > 0 ) {
     
    743745      flagCol.put(i, flagsFromMA(ma));
    744746    }
     747  ++iter;
    745748  }
    746749}
     
    801804      specCol.put(i, specout);
    802805    }
     806    ++iter;
    803807  }
    804808  return out;
  • trunk/src/STMath.h

    r858 r867  
    8686  casa::CountedPtr<Scantable>
    8787    gainElevation(const casa::CountedPtr<Scantable>& in,
    88                   const casa::Vector<casa::Float>& coeffs,
     88                  const std::vector<float>& coeff,
    8989                  const std::string& fileName,
    9090                  const std::string& method);
Note: See TracChangeset for help on using the changeset viewer.