Changeset 2260 for trunk/src


Ignore:
Timestamp:
08/02/11 16:43:56 (13 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...

INCREMENT for channel averaged data depends on NET_SIDEBAND value
of MS SPW table.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MSFiller.cpp

    r2258 r2260  
    19421942  refval = 0.0 ;
    19431943  ROArrayQuantColumn<Double> sharedQDArrCol( spwtab, "CHAN_WIDTH" ) ;
     1944  ROTableColumn netSidebandCol( spwtab, "NET_SIDEBAND" ) ;
     1945  Int netSideband = netSidebandCol.asInt( spwId ) ;
    19441946  increment = sharedQDArrCol( spwId )( refip ).getValue( "Hz" ) ;
    19451947  //           os_ << "nchan = " << nchan << " refchan = " << refchan << "(even=" << even << ") refpix = " << refpix << LogIO::POST ;
    19461948  sharedQDArrCol.attach( spwtab, "CHAN_FREQ" ) ;
    19471949  Vector< Quantum<Double> > chanFreqs = sharedQDArrCol( spwId ) ;
    1948   if ( nchan > 1 && chanFreqs[0].getValue("Hz") > chanFreqs[1].getValue("Hz") )
     1950  if ( ( nchan > 1 &&
     1951         chanFreqs[0].getValue("Hz") > chanFreqs[1].getValue("Hz")  )
     1952       || ( nchan == 1 && netSideband == 1 ) ) 
    19491953    increment *= -1.0 ;
    19501954  if ( freqRef == MFrequency::LSRK ) {
Note: See TracChangeset for help on using the changeset viewer.