Changeset 2187


Ignore:
Timestamp:
06/08/11 12:16:38 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: 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...

Bug fix on frequency increment handling.
Sign of INCREMENT value is determined from CHAN_FREQ.



Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MSFiller.cpp

    r2185 r2187  
    601601          Vector< Quantum<Double> > chanFreqs = (*sharedQDArrCol)( spwId ) ;
    602602          delete sharedQDArrCol ;
     603          if ( nchan > 1 && chanFreqs[0].getValue("Hz") > chanFreqs[1].getValue("Hz") )
     604            increment *= -1.0 ;
    603605          if ( freqRef == MFrequency::LSRK ) {
    604606            if ( even ) {
  • trunk/src/MSWriter.cpp

    r2185 r2187  
    12841284
    12851285  // RESOLUTION, CHAN_WIDTH, EFFECTIVE_BW
    1286   Vector<Double> sharedDoubleArr( nchan, inc ) ;
     1286  Vector<Double> sharedDoubleArr( nchan, abs(inc) ) ;
    12871287  msSpwCols.resolution().put( spwid, sharedDoubleArr ) ;
    12881288  msSpwCols.chanWidth().put( spwid, sharedDoubleArr ) ;
Note: See TracChangeset for help on using the changeset viewer.