Changeset 2028 for trunk


Ignore:
Timestamp:
03/02/11 18:32:41 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2718

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 getSrcType() that takes place if ALMA data.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MSFiller.cpp

    r2027 r2028  
    10201020    sep = "." ;
    10211021  }
    1022  
     1022
    10231023  // determine SRCTYPE
    10241024  Int srcType = SrcType::NOTYPE ;
     
    10811081    //    obsMode2=ON_SOURCE: PON
    10821082    //    obsMode2=OFF_SOURCE: POFF
    1083     Int epos = obsMode.find_first_of( sep ) ;
    1084     Int nextpos = obsMode.find_first_of( sep, epos+1 ) ;
    1085     String obsMode1 = obsMode.substr( 0, epos ) ;
    1086     String obsMode2 = obsMode.substr( epos+1, nextpos-epos-1 ) ;
     1083    string substr[2] ;
     1084    int numSubstr = split( obsMode, substr, 2, "," ) ;
     1085    //os_ << "numSubstr = " << numSubstr << LogIO::POST ;
     1086    //for ( int i = 0 ; i < numSubstr ; i++ )
     1087    //os_ << "substr[" << i << "] = " << substr[i] << LogIO::POST ;
     1088    String obsType( substr[0] ) ;
     1089    //os_ << "obsType = " << obsType << LogIO::POST ;
     1090    Int epos = obsType.find_first_of( sep ) ;
     1091    Int nextpos = obsType.find_first_of( sep, epos+1 ) ;
     1092    String obsMode1 = obsType.substr( 0, epos ) ;
     1093    String obsMode2 = obsType.substr( epos+1, nextpos-epos-1 ) ;
    10871094    if ( obsMode1.find( "CALIBRATE_" ) == 0 ) {
    10881095      if ( obsMode2 == "ON_SOURCE" ) srcType = SrcType::PONCAL ;
Note: See TracChangeset for help on using the changeset viewer.