- Timestamp:
- 03/02/11 18:32:41 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MSFiller.cpp
r2027 r2028 1020 1020 sep = "." ; 1021 1021 } 1022 1022 1023 1023 // determine SRCTYPE 1024 1024 Int srcType = SrcType::NOTYPE ; … … 1081 1081 // obsMode2=ON_SOURCE: PON 1082 1082 // 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 ) ; 1087 1094 if ( obsMode1.find( "CALIBRATE_" ) == 0 ) { 1088 1095 if ( obsMode2 == "ON_SOURCE" ) srcType = SrcType::PONCAL ;
Note:
See TracChangeset
for help on using the changeset viewer.