Changeset 2962 for trunk/src


Ignore:
Timestamp:
06/29/14 17:39:32 (10 years ago)
Author:
Kana Sugimoto
Message:

New Development: Yes

JIRA Issue: Yes (CAS-6590)

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: runUnitTest.main(test_sdgrid[test302])

Put in Release Notes: Yes

Module(s): asapgrid, asapgrid2, sdgrid, sdplot(plottype='grid')

Description: FLAG_ROW is set to scantable rows if all channels in the rows are flagged.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STGrid.cpp

    r2894 r2962  
    19751975  ArrayColumn<Float> spectraCol( tab, "SPECTRA" ) ;
    19761976  ArrayColumn<uChar> flagtraCol( tab, "FLAGTRA" ) ;
     1977  ScalarColumn<uInt> flagRowCol( tab, "FLAGROW" );
    19771978  ScalarColumn<uInt> polnoCol( tab, "POLNO" ) ;
    19781979  ScalarColumn<uInt> scannoCol( tab, "SCANNO" ) ;
     
    19891990  long offset ;
    19901991  uInt scanno = 0 ;
     1992  uChar rflag;
    19911993  for ( Int iy = 0 ; iy < ny_ ; iy++ ) {
    19921994    pix(1) = (Double)(iy);
     
    20022004        wdata_p = data_p + offset ;
    20032005        wflag_p = flag_p + offset ;
     2006        rflag = ~0 ; //11111111
    20042007        for ( Int ichan = 0 ; ichan < nchan_ ; ichan++ ) {
    20052008          *wsp_p = *wdata_p ;
    20062009          wsp_p++ ;
    20072010          wdata_p += step ;
    2008           flag[ichan] = *wflag_p;
     2011          flag[ichan] = *wflag_p ;
     2012          rflag &= flag[ichan] ;
    20092013          wflag_p += step ;
    20102014        }
     
    20122016        spectraCol.put( irow, sp ) ;
    20132017        flagtraCol.put( irow, flag ) ;
     2018        flagRowCol.put( irow, ((rflag>0) ? 1 : 0) ) ;
    20142019        directionCol.put( irow, dir ) ;
    20152020        polnoCol.put( irow, pollist_[ipol] ) ;
     
    20882093    weatheridCol.put( i, weatherId ) ;
    20892094    //flagtraCol.put( i, flagtra ) ;
    2090     rflagCol.put( i, 0 ) ;
     2095    //rflagCol.put( i, 0 ) ;
    20912096    tsysCol.put( i, defaultTsys ) ;
    20922097    srcnameCol.put( i, srcname ) ;
Note: See TracChangeset for help on using the changeset viewer.