Ignore:
Timestamp:
06/25/14 15:28:36 (10 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-6585, CAS-6571

Ready for Test: Yes

Interface Changes: Yes/No?

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Added FLAGTRA column to sky and Tsys caltable.
To support previous versions of caltabls that don't have FLAGTRA
column, the code automatically add FLAGTRA column and initialize
it with initial value (uChar)0 if no FLAGTRA exists.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STCalibration.cpp

    r2916 r2955  
    7979      uInt irow = rows[0];
    8080      appenddata(0, 0, current.asuInt("BEAMNO"), current.asuInt("IFNO"), current.asuInt("POLNO"),
    81                  freqidCol(irow), timeSec[irow], elevation[irow], specCol(irow));
     81                 freqidCol(irow), timeSec[irow], elevation[irow], specCol(irow),
     82                 flagCol(irow));
    8283      iter.next();
    8384      continue;
     
    126127          timeCen /= (Double)count * 86400.0; // sec->day
    127128          elCen /= (Float)count;
    128           appenddata(0, 0, current.asuInt("BEAMNO"), current.asuInt("IFNO"), current.asuInt("POLNO"),
    129                      freqidCol(irow), timeCen, elCen, acc.getSpectrum());
     129          const Vector<Bool> &mask = acc.getMask();
     130          Vector<uChar> flag(mask.shape(), (uChar)0);
     131          const uChar userFlag = 1 << 7;
     132          for (uInt k = 0; k < flag.nelements(); ++k) {
     133            if (mask[k] == True)
     134              flag[k] = userFlag;
     135          }
     136          appenddata(0, 0, current.asuInt("BEAMNO"), current.asuInt("IFNO"),
     137                     current.asuInt("POLNO"),
     138                     freqidCol(irow), timeCen, elCen,
     139                     acc.getSpectrum(), flag);
    130140        }
    131141        acc.reset() ;
Note: See TracChangeset for help on using the changeset viewer.