Changeset 2906 for trunk/src


Ignore:
Timestamp:
03/14/14 19:32:29 (11 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-6284

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: Describe your changes here...

Fixed an issue that MS POINTING.DIRECTION column may be non-conformant
when Scantable SCANRATE is a mixture of zero and nonzeros.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MSWriter.cpp

    r2869 r2906  
    675675  MSWriterVisitor(const Table &table, Table &mstable)
    676676    : BaseMSWriterVisitor(table),
    677       ms(mstable)
     677      ms(mstable),
     678      addScanrate_(False)
    678679  {
    679680    rowidx = 0 ;
     
    716717    attachMain() ;
    717718    attachPointing() ;
     719
     720    // decide whether put SCANRATE to MS POINTING column
     721    if (anyNE(scanRateCol.getColumn(), (Double)0.0)) {
     722      addScanrate_ = True;
     723    }
    718724  }
    719725 
     
    803809      Vector<Double> dir = directionCol( recordNo ) ;
    804810      Vector<Double> rate = scanRateCol( recordNo ) ;
    805       if ( anyNE( rate, 0.0 ) ) {
     811      //if ( anyNE( rate, 0.0 ) ) {
     812      if (addScanrate_) {
    806813        Matrix<Double> msdir( 2, 2 ) ;
    807814        msdir.column( 0 ) = dir ;
     
    14801487  Bool useFloat;
    14811488  String poltype;
     1489  Bool addScanrate_;
    14821490
    14831491  // MS subtables
Note: See TracChangeset for help on using the changeset viewer.