Changeset 2803 for trunk/src


Ignore:
Timestamp:
03/26/13 16:53:49 (12 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...

Flag out grids without data.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STGrid.cpp

    r2790 r2803  
    19681968  ArrayColumn<Double> directionCol( tab, "DIRECTION" ) ;
    19691969  ArrayColumn<Float> spectraCol( tab, "SPECTRA" ) ;
     1970  ArrayColumn<uChar> flagtraCol( tab, "FLAGTRA" ) ;
    19701971  ScalarColumn<uInt> polnoCol( tab, "POLNO" ) ;
    19711972  ScalarColumn<uInt> scannoCol( tab, "SCANNO" ) ;
    19721973  Int irow = 0 ;
    19731974  Vector<Float> sp( nchan_ ) ;
     1975  Vector<uChar> flag( nchan_, (uChar)1 ) ;
     1976  Vector<uChar> unflag( nchan_, (uChar)0 ) ;
    19741977  Bool bsp, bdata ;
    19751978  const Float *data_p = data_.getStorage( bdata ) ;
     
    19982001        sp.putStorage( sp_p, bsp ) ;
    19992002        spectraCol.put( irow, sp ) ;
     2003        if ( allEQ( sp, (Float)0.0 ) ) {
     2004          flagtraCol.put( irow, flag ) ;
     2005        }
     2006        else {
     2007          flagtraCol.put( irow, unflag ) ;
     2008        }
    20002009        directionCol.put( irow, dir ) ;
    20012010        polnoCol.put( irow, pollist_[ipol] ) ;
     
    20722081    focusidCol.put( i, focusId ) ;
    20732082    weatheridCol.put( i, weatherId ) ;
    2074     flagtraCol.put( i, flagtra ) ;
     2083    //flagtraCol.put( i, flagtra ) ;
    20752084    rflagCol.put( i, 0 ) ;
    20762085    tsysCol.put( i, defaultTsys ) ;
Note: See TracChangeset for help on using the changeset viewer.