Changeset 2848


Ignore:
Timestamp:
09/05/13 14:01:03 (11 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: No

Module(s): sd

Description: Describe your changes here...

Fixed a bug that frequency label for Tsys is not properly set.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STApplyCal.cpp

    r2806 r2848  
    283283  }
    284284  else {
    285     nchanTsys = tsystable_[0]->nchan(tsysifno);
    286     ftsys = tsystable_[0]->getBaseFrequency(0);
    287     interpolatorF_->setX(ftsys.data(), nchanTsys);
    288285    id[0] = (int)tsysifno;
    289286    sel.setIFs(id);
    290287    for (uInt i = 0; i < tsystable_.size() ; i++) {
    291288      tsystable_[i]->setSelection(sel);
    292       nrowTsys += tsystable_[i]->nrow();
    293     }
     289      uInt nrowThisTsys = tsystable_[i]->nrow();
     290      nrowTsys += nrowThisTsys;
     291      if (nrowThisTsys > 0 and nchanTsys == 0) {
     292        nchanTsys = tsystable_[i]->nchan(tsysifno);
     293        ftsys = tsystable_[i]->getBaseFrequency(0);
     294      }
     295    }
     296    interpolatorF_->setX(ftsys.data(), nchanTsys);
    294297  }
    295298
Note: See TracChangeset for help on using the changeset viewer.