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/STCalTsys.cpp

    r2924 r2955  
    7575                           uInt beamno, uInt ifno, uInt polno,
    7676                           uInt freqid, Double time, Float elevation,
    77                            Vector<Float> any_data)
     77                           const Vector<Float> &any_data,
     78                           const Vector<uChar> &channel_flag)
    7879{
    7980  STCalTsysTable *p = dynamic_cast<STCalTsysTable *>(&(*applytable_));
     
    8182    LogIO os(LogOrigin("STCalTsys", "appenddata", WHERE));
    8283    Vector<Float> averaged_data(any_data.size());
     84    Vector<uChar> averaged_flag(any_data.size(), 0);
    8385    Float averaged_value = 0.0;
    8486    size_t num_value = 0;
     
    104106    os << LogIO::DEBUGGING << "any_data = " << any_data << LogIO::POST;
    105107    p->appenddata(scanno, cycleno, beamno, ifno, polno,
    106                   freqid, time, elevation, averaged_data);
     108                  freqid, time, elevation, averaged_data,
     109                  averaged_flag);
    107110  }
    108111  else {
    109112    p->appenddata(scanno, cycleno, beamno, ifno, polno,
    110                   freqid, time, elevation, any_data);
     113                  freqid, time, elevation, any_data,
     114                  channel_flag);
    111115  }
    112116}
Note: See TracChangeset for help on using the changeset viewer.