Changeset 1078 for trunk/src/STMath.cpp
- Timestamp:
- 07/06/06 11:28:58 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMath.cpp
r1069 r1078 191 191 CountedPtr< Scantable > 192 192 STMath::averageChannel( const CountedPtr < Scantable > & in, 193 const std::string & mode ) 193 const std::string & mode, 194 const std::string& avmode ) 194 195 { 195 196 // clone as this is non insitu … … 207 208 cols[1] = String("IFNO"); 208 209 cols[2] = String("POLNO"); 210 if ( avmode == "SCAN") { 211 cols.resize(4); 212 cols[3] = String("SCANNO"); 213 } 209 214 uInt outrowCount = 0; 210 215 uChar userflag = 1 << 7; … … 222 227 specCol.get(0, tmp); 223 228 uInt nchan = tmp.nelements(); 229 // have to do channel by channel here as MaskedArrMath 230 // doesn't have partialMedians 224 231 Vector<uChar> flags = flagCol.getColumn(Slicer(Slice(0))); 225 232 Vector<Float> outspec(nchan);
Note: See TracChangeset
for help on using the changeset viewer.