Ignore:
Timestamp:
02/11/10 09:45:47 (14 years ago)
Author:
Malte Marquarding
Message:

Ticket #172: inverse scaling factor was used in coordinate resampling. Also added no of channels to each IF in scantable.summary and made all get{IF/Beam/Pol}No functions const

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STFrequencies.cpp

    r1375 r1694  
    212212{
    213213  Vector<Float> offset(1,0.0);
    214   Vector<Float> factors(1,1.0/width);
     214  Vector<Float> factors(1,width);
    215215  Vector<Int> newshape;
    216216  CoordinateSystem csys;
     
    287287        << rec.asDouble("REFVAL") << setw(7)
    288288        << rec.asDouble("REFPIX")
    289         << setw(12)
     289        << setw(15)
    290290        << rec.asDouble("INCREMENT");
    291291  }
     
    294294    int f = outstr.find_first_not_of(' ');
    295295    int l = outstr.find_last_not_of(' ', outstr.size());
    296     if (f < 0) { 
    297       f = 0; 
    298     }
    299     if ( l < f  || l < f ) { 
     296    if (f < 0) {
     297      f = 0;
     298    }
     299    if ( l < f  || l < f ) {
    300300      l = outstr.size();
    301301    }
     
    409409}
    410410
    411 void STFrequencies::shiftRefPix(int npix, uInt id) 
     411void STFrequencies::shiftRefPix(int npix, uInt id)
    412412{
    413413  Table t = table_(table_.col("ID") == Int(id) );
Note: See TracChangeset for help on using the changeset viewer.