Changeset 1805 for branches/newfiller


Ignore:
Timestamp:
08/02/10 11:28:11 (14 years ago)
Author:
Malte Marquarding
Message:

Use nchan directly from spectrum

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/newfiller/src/PKSFiller.cpp

    r1795 r1805  
    295295      setReferenceBeam(pksrec.refBeam-1);
    296296    }
    297     setFrequency(Double(header_->nchan/2), pksrec.refFreq, pksrec.freqInc);
    298     /*
    299     if ( pksrec.nchan == 1 ) {
    300        setFrequency(0.0, pksrec.refFreq, pksrec.freqInc)
    301     }
    302     else {
    303       setFrequency(Double(pksrec.nchan/2), pksrec.refFreq, pksrec.freqInc);
    304     }
    305     */
     297
    306298    setMolecule(pksrec.restFreq);
    307299    setTcal(pksrec.tcalTime, pksrec.tcal);
     
    312304             pksrec.focusRot);
    313305    setDirection(pksrec.direction, pksrec.azimuth, pksrec.elevation);
     306
     307    setFrequency(Double(pksrec.spectra.nrow()/2),
     308                 pksrec.refFreq, pksrec.freqInc);
    314309
    315310    // Turn the (nchan,npol) matrix and possible complex xPol vector
Note: See TracChangeset for help on using the changeset viewer.