Changeset 2907 for trunk/src


Ignore:
Timestamp:
03/21/14 05:25:31 (11 years ago)
Author:
TakTsutsumi
Message:

New Development: No

JIRA Issue: Yes CAS-6303

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: test_sdsave

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Modified the way search the FITS header keywords

allowing more random ordering.
Fixed GBTFITSreader to work for GBT SDFITS with a single
binary table and a minor fix in PKSFiller side to force
npol=1 when pksrecord.polno = -1.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/PKSFiller.cpp

    r2268 r2907  
    326326    // Why is spectra.ncolumn() == 3 for haveXPol_ == True
    327327    uInt npol = (pksrec.spectra.ncolumn()==1 ? 1: 2);
    328     uInt polno =0;
     328    //uInt polno =0;
     329    Int polno =0;
    329330    for ( uInt i=0; i< npol; ++i ) {
    330331      tsysvec = pksrec.tsys(i);
    331332      if (isGBTFITS) {
    332333        polno = pksrec.polNo ;
     334        if (polno==-1) {
     335          polno = i;
     336        }
    333337      } else {
    334338        polno = i;
    335339      }
    336       setIndex(pksrec.scanNo-1, pksrec.cycleNo-1, pksrec.IFno-1, polno,
     340      setIndex(pksrec.scanNo-1, pksrec.cycleNo-1, pksrec.IFno-1, (uInt) polno,
    337341               pksrec.beamNo-1);
    338342      setSpectrum(pksrec.spectra.column(i), pksrec.flagged.column(i), tsysvec);
Note: See TracChangeset for help on using the changeset viewer.