- Timestamp:
- 01/19/05 12:36:04 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDAsciiWriter.cc
r209 r211 146 146 lonLat[1] = whichDir(posDir); 147 147 148 // Write. This formats the vectors as [,,,,] which we 149 // probably don't want. 150 uInt ba = uInt(asap::BeamAxis); 151 uInt ia = uInt(asap::IFAxis); 152 uInt pa = uInt(asap::PolAxis); 153 154 of << iRow << " " << pos(ba) << " " 155 << pos(ia) << " " << pos(pa) << " " 156 << src(iRow) << " " << formatDirection(lonLat) << " " 157 << dTmp << " " 158 << itData.vector().nelements() << " " << itData.vector() 159 << " " << itMask.vector() << endl; 148 // Write preamble 149 150 of << iRow << " " << pos(asap::BeamAxis) << " " << pos(asap::IFAxis) << " " << 151 pos(asap::PolAxis) << " " << 152 src(iRow) << " " << formatDirection(lonLat) << " " << 153 dTmp << " " << itData.vector().nelements() << " "; 154 // Write data 155 156 const Vector<Float>& data = itData.vector(); 157 const Vector<Bool>& mask = itMask.vector(); 158 const uInt n = data.nelements(); 159 for (uInt i=0; i<n; i++) { 160 of << data[i] << " "; 161 } 162 // Write mask 163 164 for (uInt i=0; i<n; i++) { 165 of << mask[i] << " "; 166 } 167 of << endl; 160 168 161 169 // Next spectrum
Note:
See TracChangeset
for help on using the changeset viewer.