Changeset 2207


Ignore:
Timestamp:
07/06/11 13:13:16 (13 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...

If getPt_ is True, path to POINTING subtable is not stored in header
keyword.

Bug fix on MSWriter:

write TARGET column in POINTING table
NUM_POLY must be dir.ncolumn()-1, not dir.ncolumn()


Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MSFiller.cpp

    r2206 r2207  
    979979
    980980  // save path to POINTING table
    981   // 2011/3/2 TN
    982   // So far, path to original POINTING table is always stored
    983   // since sd tasks and regressions don't support getpt control
    984   //if ( !getPt_ ) {
     981  // 2011/07/06 TN
     982  // Path to POINTING table in original MS will not be written
     983  // if getPt_ is True
    985984  Path datapath( tablename_ ) ;
    986   String pTabName = datapath.absoluteName() + "/POINTING" ;
    987   stab.rwKeywordSet().define( "POINTING", pTabName ) ;
    988   //}
     985  if ( !getPt_ ) {
     986    String pTabName = datapath.absoluteName() + "/POINTING" ;
     987    stab.rwKeywordSet().define( "POINTING", pTabName ) ;
     988  }
    989989
    990990  // for GBT
  • trunk/src/MSWriter.cpp

    r2190 r2207  
    13621362  *antennaRF = 0 ;
    13631363  RecordFieldPtr<Int> numpolyRF( rec, "NUM_POLY" ) ;
    1364   *numpolyRF = dir.ncolumn() ;
     1364  *numpolyRF = dir.ncolumn() - 1 ;
    13651365  RecordFieldPtr<Double> timeRF( rec, "TIME" ) ;
    13661366  *timeRF = me ;
     
    13761376  *dirRF = dir ;
    13771377  RecordFieldPtr< Array<Double> > targetRF( rec, "TARGET" ) ;
    1378   *dirRF = dir ;
     1378  *targetRF = dir ;
    13791379  row.put( nrow ) ;
    13801380
Note: See TracChangeset for help on using the changeset viewer.