Changeset 443 for trunk/src/SDAsciiWriter.cc
- Timestamp:
- 02/15/05 11:59:01 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDAsciiWriter.cc
r414 r443 69 69 70 70 71 Bool SDAsciiWriter::write(const SDMemTable& sdTable, const String& fileName )71 Bool SDAsciiWriter::write(const SDMemTable& sdTable, const String& fileName, Bool toStokes) 72 72 { 73 73 … … 112 112 // Get data 113 113 114 const MaskedArray<Float>& dataIn(sdTable.rowAsMaskedArray(iRow ));114 const MaskedArray<Float>& dataIn(sdTable.rowAsMaskedArray(iRow,False,toStokes)); 115 115 const Array<Float>& values = dataIn.getArray(); 116 116 const Array<Bool>& mask = dataIn.getMask(); … … 181 181 182 182 183 Int SDAsciiWriter::convertStokes(Int val)184 {185 Stokes::StokesTypes stokes = Stokes::RR;186 if (val==0) {187 stokes = Stokes::RR;188 } else if (val==1) {189 stokes = Stokes::LL;190 } else if (val==2) {191 stokes = Stokes::RL;192 } else if (val==3) {193 stokes = Stokes::LR;194 } else {195 stokes = Stokes::Undefined;196 }197 //198 return Int(stokes);199 }200 201 183 202 184 String SDAsciiWriter::formatDirection(const Vector<Double>& lonLat)
Note: See TracChangeset
for help on using the changeset viewer.