Changeset 2414 for trunk


Ignore:
Timestamp:
02/17/12 19:54:37 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2816

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

Fill Main columns: FLAGTRA, TSYS


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STGrid.cpp

    r2413 r2414  
    16751675void STGrid::fillMainColumns( Table &tab )
    16761676{
     1677  // values for fill
    16771678  Table t( infileList_[0], Table::Old ) ;
    16781679  Table tsel = t( t.col( "IFNO" ) == (uInt)ifno_, 1 ) ;
    1679   ROTableRow row( tab ) ;
     1680  ROTableRow row( tsel ) ;
    16801681  row.get( 0 ) ;
    16811682  const TableRecord &rec = row.record() ;
    16821683  uInt freqId = rec.asuInt( "FREQ_ID" ) ;
     1684  Vector<Float> defaultTsys( 1, 1.0 ) ;
     1685  // @todo how to set flagtra for gridded spectra?
     1686  Vector<uChar> flagtra = rec.asArrayuChar( "FLAGTRA" ) ;
     1687  flagtra = (uChar)0 ;
     1688
     1689  // fill columns
    16831690  Int nrow = tab.nrow() ;
    16841691  ScalarColumn<uInt> ifnoCol( tab, "IFNO" ) ;
    16851692  ScalarColumn<uInt> freqIdCol( tab, "FREQ_ID" ) ;
     1693  ArrayColumn<uChar> flagtraCol( tab, "FLAGTRA" ) ;
     1694  ArrayColumn<Float> tsysCol( tab, "TSYS" ) ;
    16861695  for ( Int i = 0 ; i < nrow ; i++ ) {
    16871696    ifnoCol.put( i, (uInt)ifno_ ) ;
    16881697    freqIdCol.put( i, freqId ) ;
    1689   }
    1690 }
    1691 
    1692 }
     1698    flagtraCol.put( i, flagtra ) ;
     1699    tsysCol.put( i, defaultTsys ) ;
     1700  }
     1701}
     1702
     1703}
Note: See TracChangeset for help on using the changeset viewer.