Ignore:
Timestamp:
02/22/11 20:24:33 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes .CAS-2718

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...

The MSFiller is called instead of PKSFiller when input data is MS.
I have tested all task regressions as well as sdsave unit test and passed.

A few modification was needed for STMath::dototalpower() and
STWriter::write().


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STWriter.cpp

    r1819 r2004  
    228228          inst->molecules().getEntry(pksrec.restFreq,stmp0,stmp1,
    229229                                   rec.asuInt("MOLECULE_ID"));
    230           inst->tcal().getEntry(pksrec.tcalTime, pksrec.tcal,
    231                               rec.asuInt("TCAL_ID"));
     230//           inst->tcal().getEntry(pksrec.tcalTime, pksrec.tcal,
     231//                               rec.asuInt("TCAL_ID"));
    232232          inst->weather().getEntry(pksrec.temperature, pksrec.pressure,
    233233                                 pksrec.humidity, pksrec.windSpeed,
     
    240240          // dummy data
    241241          uInt npol = pksrec.spectra.ncolumn();
     242
     243          // TCAL
     244          inst->tcal().getEntry( pksrec.tcalTime, pksrec.tcal,
     245                                 rec.asuInt("TCAL_ID") ) ;
     246          if ( pksrec.tcal.nelements() == 1 ) {
     247            ROScalarColumn<uInt> uintCol( itable, "TCAL_ID" ) ;
     248            Vector<uInt> tcalids = uintCol.getColumn() ;
     249            pksrec.tcal.resize( npol ) ;
     250            Vector<Float> dummyA ;
     251            String dummyS ;
     252            for ( uInt ipol = 0 ; ipol < npol ; ipol++ ) {
     253              inst->tcal().getEntry( dummyS, dummyA, tcalids[ipol] ) ;
     254              pksrec.tcal[ipol] = dummyA[0] ;
     255            }
     256          }
     257          else if ( pksrec.tcal.nelements() == nchan ) {
     258            ROScalarColumn<uInt> uintCol( itable, "TCAL_ID" ) ;
     259            Vector<uInt> tcalids = uintCol.getColumn() ;
     260            pksrec.tcal.resize( npol ) ;
     261            Vector<Float> dummyA ;
     262            String dummyS ;
     263            for ( uInt ipol = 0 ; ipol < npol ; ipol++ ) {
     264              inst->tcal().getEntry( dummyS, dummyA, tcalids[ipol] ) ;
     265              pksrec.tcal[ipol] = mean( dummyA ) ;
     266            }
     267          }
     268          //LogIO os ;
     269          //os << "npol = " << npol << " pksrec.tcal = " << pksrec.tcal << LogIO::POST ;
    242270
    243271          pksrec.mjd       = rec.asDouble("TIME");
Note: See TracChangeset for help on using the changeset viewer.