Changeset 2244
- Timestamp:
- 07/22/11 16:03:36 (13 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MSWriter.cpp
r2211 r2244 1093 1093 else { 1094 1094 // os_ << "NOT sorted at irow=" << irow << " ids[0]=" << ids[0] << LogIO::POST ; 1095 t = stt( stt.col("ID") == ids[0] ) ;1095 t = stt( stt.col("ID") == ids[0], 1 ) ; 1096 1096 Vector<Float> dummyC = tcalCol( 0 ) ; 1097 tcal.resize( npol, dummyC.size() ) ;1097 tcal.resize( npol, dummyC.size(), True ) ; 1098 1098 tcal.row( 0 ) = dummyC ; 1099 1099 } … … 1105 1105 else { 1106 1106 // os_ << "NOT sorted at irow=" << irow << " ids[1]=" << ids[1] << LogIO::POST ; 1107 t = stt( stt.col("ID") == ids[1] ) ;1107 t = stt( stt.col("ID") == ids[1], 1 ) ; 1108 1108 tcalCol.attach( t, "TCAL" ) ; 1109 tcal.row( 1 ) = tcalCol( 1) ;1109 tcal.row( 1 ) = tcalCol( 0 ) ; 1110 1110 } 1111 1111 } … … 1114 1114 tcal.row( 1 ) = tcalCol( ids[2] ) ; 1115 1115 else { 1116 t = stt( stt.col("ID") == ids[2] ) ;1116 t = stt( stt.col("ID") == ids[2], 1 ) ; 1117 1117 tcalCol.attach( t, "TCAL" ) ; 1118 1118 tcal.row( 1 ) = tcalCol( 0 ) ; … … 1121 1121 tcal.row( 2 ) = tcalCol( ids[1] ) ; 1122 1122 else { 1123 t = stt( stt.col("ID") == ids[1] ) ;1123 t = stt( stt.col("ID") == ids[1], 1 ) ; 1124 1124 tcalCol.attach( t, "TCAL" ) ; 1125 1125 tcal.row( 2 ) = tcalCol( 0 ) ; … … 1130 1130 tcal.row( 1 ) = tcalCol( ids[2] ) ; 1131 1131 else { 1132 t = stt( stt.col("ID") == ids[2] ) ;1132 t = stt( stt.col("ID") == ids[2], 1 ) ; 1133 1133 tcalCol.attach( t, "TCAL" ) ; 1134 1134 tcal.row( 1 ) = tcalCol( 0 ) ; … … 1137 1137 tcal.row( 2 ) = tcalCol( ids[3] ) ; 1138 1138 else { 1139 t = stt( stt.col("ID") == ids[3] ) ;1139 t = stt( stt.col("ID") == ids[3], 1 ) ; 1140 1140 tcalCol.attach( t, "TCAL" ) ; 1141 1141 tcal.row( 2 ) = tcalCol( 0 ) ; … … 1144 1144 tcal.row( 2 ) = tcalCol( ids[1] ) ; 1145 1145 else { 1146 t = stt( stt.col("ID") == ids[1] ) ;1146 t = stt( stt.col("ID") == ids[1], 1 ) ; 1147 1147 tcalCol.attach( t, "TCAL" ) ; 1148 1148 tcal.row( 3 ) = tcalCol( 0 ) ; … … 1324 1324 if ( srcIdArr.size() != 0 ) { 1325 1325 srcId = srcIdArr[0] ; 1326 MSSource msSrcSel = msSrc( msSrc.col("SOURCE_ID") == srcId ) ;1326 MSSource msSrcSel = msSrc( msSrc.col("SOURCE_ID") == srcId, 1 ) ; 1327 1327 ROMSSourceColumns msSrcCols( msSrcSel ) ; 1328 1328 Vector<Double> srcDir = msSrcCols.direction()( 0 ) ; -
trunk/src/Scantable.cpp
r2193 r2244 672 672 // take the first SCANNO,POLNO,BEAMNO,CYCLENO as nbeam shouldn't 673 673 // vary with these 674 Table t = table_(table_.col("IFNO") == ifno );674 Table t = table_(table_.col("IFNO") == ifno, 1); 675 675 if ( t.nrow() == 0 ) return 0; 676 676 ROArrayColumn<Float> v(t, "SPECTRA"); … … 1018 1018 oss << setw(15) << "Rest Freqs:"; 1019 1019 for (int i=0; i<nid; i++) { 1020 Table t = table_(table_.col("MOLECULE_ID") == i);1020 Table t = table_(table_.col("MOLECULE_ID") == i, 1); 1021 1021 if (t.nrow() > 0) { 1022 1022 Vector<Double> vec(moleculeTable_.getRestFrequency(i));
Note:
See TracChangeset
for help on using the changeset viewer.