Changeset 1816 for branches/newfiller/src
- Timestamp:
- 08/02/10 14:37:57 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newfiller/src/PKSFiller.cpp
r1815 r1816 20 20 #include <casa/Arrays/ArrayLogical.h> 21 21 #include <casa/Utilities/Regex.h> 22 22 #include <casa/Logging/LogIO.h> 23 23 24 24 #include <measures/Measures/MDirection.h> … … 60 60 bool PKSFiller::open( const std::string& filename) 61 61 { 62 /*63 if (table_.null()) {64 table_ = new Scantable();65 }66 */67 68 62 Bool haveBase, haveSpectra; 69 63 … … 92 86 throw(AipsError("No spectral data in file.")); 93 87 } 94 LogIO os; 88 89 LogIO os( LogOrigin( "PKSFiller", "open()", WHERE ) ) ; 95 90 nBeam_ = beams.nelements(); 96 91 nIF_ = ifs.nelements(); … … 120 115 throw(AipsError("Failed to get header.")); 121 116 } 117 os << "Found " << header.antennaname << " data." << LogIO::POST; 122 118 if ((header.obstype).matches("*SW*")) { 123 119 // need robust way here - probably read ahead of next timestamp … … 129 125 } 130 126 // Determine Telescope and set brightness unit 131 132 127 Bool throwIt = False; 133 128 Instrument inst = STAttr::convertInstrument(header.antennaname, throwIt); … … 209 204 { 210 205 int status = 0; 206 LogIO os( LogOrigin( "PKSFiller", "fill()", WHERE ) ) ; 211 207 212 208 /** … … 262 258 Vector<Double> sratedbl(pksrec.scanRate.nelements()); 263 259 convertArray(sratedbl, pksrec.scanRate); 264 //setScanRate(sratedbl);260 setScanRate(sratedbl); 265 261 266 262 Regex rx(getReferenceRegex()); … … 297 293 pksrec.refFreq, pksrec.freqInc); 298 294 295 // Note: this is only one value for all polarisations! 296 setFlagrow(pksrec.flagrow); 299 297 // Turn the (nchan,npol) matrix and possible complex xPol vector 300 298 // into 2-4 rows in the scantable … … 315 313 commitRow(); 316 314 } 317 /*318 RecordFieldPtr< uInt > flagrowCol(rec, "FLAGROW");319 *flagrowCol = pksrec.flagrow;320 */321 315 if ( haveXPol_[0] ) { 322 316 // no tsys given for xpol, so emulate it
Note:
See TracChangeset
for help on using the changeset viewer.