Changeset 2020


Ignore:
Timestamp:
03/01/11 18:43:34 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2718

Ready for Test: Yes/No

Interface Changes: Yes/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...

Bug fix on FEED subtable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MSWriter.cpp

    r2019 r2020  
    164164  RecordFieldPtr<Int> ddidRF( trec, "DATA_DESC_ID" ) ;
    165165  RecordFieldPtr<Int> stateidRF( trec, "STATE_ID" ) ;
    166 
     166  RecordFieldPtr< Array<Bool> > flagcatRF( trec, "FLAG_CATEGORY" ) ;
    167167
    168168  // OBSERVATION_ID is always 0
     
    455455             
    456456              // FLAG_CATEGORY is tentatively set
    457               RecordFieldPtr< Array<Bool> > flagcatRF( trec, "FLAG_CATEGORY" ) ;
    458457              //*flagcatRF = Cube<Bool>( nrow, nchan, 1, False ) ;
    459458              flagcatRF.define( Cube<Bool>( nrow, nchan, 1, False ) ) ;
     
    12261225  msFeed.addRow( 1, True ) ;
    12271226  Int nrow = msFeed.nrow() ;
     1227  Int numReceptors = 2 ;
     1228  Vector<String> polType( numReceptors ) ;
     1229  Matrix<Double> beamOffset( 2, numReceptors ) ;
     1230  beamOffset = 0.0 ;
     1231  Vector<Double> receptorAngle( numReceptors, 0.0 ) ;
     1232  if ( polType_ == "linear" ) {
     1233    polType[0] = "X" ;
     1234    polType[1] = "Y" ;
     1235  }
     1236  else if ( polType_ == "circular" ) {
     1237    polType[0] = "R" ;
     1238    polType[1] = "L" ;
     1239  }
     1240  else {
     1241    polType[0] = "X" ;
     1242    polType[1] = "Y" ;
     1243  }
     1244  Matrix<Complex> polResponse( numReceptors, numReceptors, 0.0 ) ;
     1245  for ( Int i = 0 ; i < numReceptors ; i++ )
     1246    polResponse( i, i ) = 0.0 ;
    12281247
    12291248  MSFeedColumns msFeedCols( mstable_->feed() ) ;
     
    12311250  msFeedCols.feedId().put( nrow-1, id ) ;
    12321251  msFeedCols.antennaId().put( nrow-1, 0 ) ;
     1252  msFeedCols.numReceptors().put( nrow-1, numReceptors ) ;
     1253  msFeedCols.polarizationType().put( nrow-1, polType ) ;
     1254  msFeedCols.beamOffset().put( nrow-1, beamOffset ) ;
     1255  msFeedCols.receptorAngle().put( nrow-1, receptorAngle ) ;
     1256  msFeedCols.polResponse().put( nrow-1, polResponse ) ;
    12331257
    12341258  double endSec = gettimeofday_sec() ;
     
    16881712  // MS: "s"
    16891713  me = midTime ;
    1690   interval = ( maxTime - minTime ) * 86400.0 ;
     1714  interval = ( maxTime - minTime ) * 86400.0 + mean( ainterval ) ;
    16911715
    16921716  double endSec = gettimeofday_sec() ;
Note: See TracChangeset for help on using the changeset viewer.