Changeset 1703


Ignore:
Timestamp:
02/17/10 11:53:11 (15 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready to Release: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Fixed several bugs in Scantable::clip() method.

Location:
branches/alma/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/src/Scantable.cpp

    r1700 r1703  
    708708    Vector<Float> spcs = specCol_(i);
    709709    Vector<uChar> flgs = flagsCol_(i);
    710     if (spcs.nelements() != nchan) {
     710    if (spcs.nelements() != nchan()) {
    711711      throw(AipsError("Data has incorrect number of channels"));
    712712    }
     
    716716    }
    717717    if (clipoutside) {
    718       for (uInt j = 0; j < nchan; ++j) {
     718      for (uInt j = 0; j < nchan(); ++j) {
    719719        Float spc = spcs(j);
    720720        if ((spc >= uthres) || (spc <= dthres)) {
     
    723723      }
    724724    } else {
    725       for (uInt j = 0; j < nchan; ++j) {
     725      for (uInt j = 0; j < nchan(); ++j) {
    726726        Float spc = spcs(j);
    727727        if ((spc < uthres) && (spc > dthres)) {
  • branches/alma/src/Scantable.h

    r1700 r1703  
    247247   * (CAS-1807 Wataru Kawasaki)
    248248   */
    249   void Scantable::clip(const Float uthres, const Float dthres, bool clipoutside, bool unflag);
     249  void clip(const casa::Float uthres, const casa::Float dthres, bool clipoutside, bool unflag);
    250250
    251251  /**
  • branches/alma/src/ScantableWrapper.h

    r1700 r1703  
    114114    { return table_->getFlagRow(whichrow); }
    115115
    116   void clip(const Float uthres, const Float dthres, bool clipoutside=true, bool unflag=false)
     116  void clip(const casa::Float uthres, const casa::Float dthres, bool clipoutside=true, bool unflag=false)
    117117    { table_->clip(uthres, dthres, clipoutside, unflag); }
    118118
Note: See TracChangeset for help on using the changeset viewer.