Changeset 404


Ignore:
Timestamp:
02/10/05 14:14:58 (20 years ago)
Author:
kil064
Message:

reference pixel caluclation was 1-rel instead of 0-rel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDReader.cc

    r390 r404  
    2929//# $Id:
    3030//#---------------------------------------------------------------------------
     31#include <casa/iostream.h>
     32#include <casa/iomanip.h>
     33
    3134#include <casa/Exceptions.h>
    3235#include <casa/OS/Path.h>
     
    269272        }
    270273        // add specific info
    271         // refPix = nChan/2+1 in  Integer arith.!
    272         Int refPix = header_.nchan/2+1;
     274        // refPix = nChan/2+1 in  1-rel Integer arith.!
     275        Int refPix = header_.nchan/2;                                         // 0-rel
    273276        uInt freqID = frequencies_.addFrequency(refPix, refFreq, freqInc);
    274277        uInt restFreqID = frequencies_.addRestFrequency(restFreq);
     
    287290      }
    288291    }
     292
    289293    if (cursor_ == seq[seqi] || getAll) {
    290294      // insert container into table/list
     
    293297    }
    294298    cursor_++;// increment position in file
     299
    295300  }
    296301  table_->putSDFreqTable(frequencies_);
Note: See TracChangeset for help on using the changeset viewer.