Changeset 996 for trunk/src/STWriter.cpp
- Timestamp:
- 04/06/06 13:45:58 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STWriter.cpp
r988 r996 141 141 Int status; 142 142 Bool havexpol = Bool(in->npol() > 2); 143 if (status = writer_->create(filename, hdr.observer, hdr.project,143 status = writer_->create(filename, hdr.observer, hdr.project, 144 144 hdr.antennaname, hdr.antennaposition, 145 145 hdr.obstype, hdr.equinox, hdr.freqref, 146 nChan, nPol, False, havexpol)) { 146 nChan, nPol, False, havexpol); 147 if ( status ) { 147 148 throw(AipsError("Failed to create output file")); 148 149 } … … 214 215 Vector<Float> sigma(npol, 0.0f); 215 216 Vector<Float> calFctr(npol, 0.0f); 216 if (status = writer_->write(scanno, cycno, rec.asDouble("TIME"),217 status = writer_->write(scanno, cycno, rec.asDouble("TIME"), 217 218 rec.asDouble("INTERVAL"), 218 219 rec.asString("FIELDNAME"), … … 239 240 specs, flags, 240 241 xCalFctr,// 241 xpol) 242 242 xpol); 243 if ( status ) { 243 244 writer_->close(); 244 245 throw(AipsError("STWriter: Failed to export Scantable.")); … … 281 282 Vector< Complex > & xpol, const Table & tab ) 282 283 { 283 TableRow row(tab);284 284 String poltype = tab.keywordSet().asString("POLTYPE"); 285 285 if ( poltype != "linear") { … … 287 287 throw(AipsError(msg)); 288 288 } 289 // use the first row to fill in all the "metadata"290 const TableRecord& rec = row.get(0);291 289 ROArrayColumn<Float> specCol(tab, "SPECTRA"); 292 290 ROArrayColumn<uChar> flagCol(tab, "FLAGTRA");
Note: See TracChangeset
for help on using the changeset viewer.