Changeset 2292 for trunk/src


Ignore:
Timestamp:
09/12/11 12:42:59 (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...

Support MS without SYSCAL table.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MSFiller.cpp

    r2291 r2292  
    280280    const TableRecord &hdr = table.keywordSet();
    281281    obstab = hdr.asTable( "OBSERVATION" ) ;
    282     sctab = hdr.asTable( "SYSCAL" ) ;
    283282    spwtab = hdr.asTable( "SPECTRAL_WINDOW" ) ;
    284283    statetab = hdr.asTable( "STATE" ) ;
     
    287286    fieldtab = hdr.asTable( "FIELD" ) ;
    288287    anttab = hdr.asTable( "ANTENNA" ) ;
    289     srctab = hdr.asTable( "SOURCE" ) ;
     288    if ( hdr.isDefined( "SYSCAL" ) )
     289      sctab = hdr.asTable( "SYSCAL" ) ;
     290    if ( hdr.isDefined( "SOURCE" ) )
     291      srctab = hdr.asTable( "SOURCE" ) ;
    290292
    291293    // attach to columns
Note: See TracChangeset for help on using the changeset viewer.