Ignore:
Timestamp:
07/27/11 15:59:08 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-1913

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...

Bug fix on retrieving Tsys and Tcal: return default value ([1.0])
when no corresponding row in SysCal table.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/external-alma/asdm2ASAP/ASDMReader.cc

    r2248 r2249  
    11161116    return defaultTsys ;
    11171117  SysCalRow *scrow = sctab.getRowByKey( anttag, spwtag, tint, feedid ) ;
    1118   if ( scrow->isTsysSpectrumExists() ) {
     1118  if ( scrow != 0 && scrow->isTsysSpectrumExists() ) {
    11191119    vector< vector<Temperature> > tsysSpec = scrow->getTsysSpectrum() ;
    11201120    unsigned int numReceptor = tsysSpec.size() ;
     
    11571157    return defaultTcal ;
    11581158  SysCalRow *scrow = sctab.getRowByKey( anttag, spwtag, tint, feedid ) ;
    1159   if ( scrow->isTcalSpectrumExists() ) {
     1159  if ( scrow != 0 && scrow->isTcalSpectrumExists() ) {
    11601160    vector< vector<Temperature> > tcalSpec = scrow->getTcalSpectrum() ;
    11611161    unsigned int numReceptor = tcalSpec.size() ;
Note: See TracChangeset for help on using the changeset viewer.