- Timestamp:
- 07/06/06 11:28:58 (18 years ago)
- Location:
- trunk/src
- Files:
-
- 3 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); -
trunk/src/STMath.h
r1069 r1078 61 61 casa::CountedPtr<Scantable> 62 62 averageChannel( const casa::CountedPtr<Scantable> & in, 63 const std::string& mode = "MEDIAN"); 63 const std::string& mode = "MEDIAN", 64 const std::string& avmode = "SCAN"); 64 65 65 66 casa::CountedPtr< Scantable > -
trunk/src/STMathWrapper.h
r1069 r1078 49 49 ScantableWrapper 50 50 averageChannel( const ScantableWrapper& in, 51 const std::string& mode = "MEDIAN") 51 const std::string& mode = "MEDIAN", 52 const std::string& avmode = "NONE") 52 53 { 53 return ScantableWrapper(STMath::averageChannel(in.getCP(), mode ));54 return ScantableWrapper(STMath::averageChannel(in.getCP(), mode, avmode)); 54 55 } 55 56
Note:
See TracChangeset
for help on using the changeset viewer.