Changeset 2004 for trunk/src/STWriter.cpp
- Timestamp:
- 02/22/11 20:24:33 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STWriter.cpp
r1819 r2004 228 228 inst->molecules().getEntry(pksrec.restFreq,stmp0,stmp1, 229 229 rec.asuInt("MOLECULE_ID")); 230 inst->tcal().getEntry(pksrec.tcalTime, pksrec.tcal,231 rec.asuInt("TCAL_ID"));230 // inst->tcal().getEntry(pksrec.tcalTime, pksrec.tcal, 231 // rec.asuInt("TCAL_ID")); 232 232 inst->weather().getEntry(pksrec.temperature, pksrec.pressure, 233 233 pksrec.humidity, pksrec.windSpeed, … … 240 240 // dummy data 241 241 uInt npol = pksrec.spectra.ncolumn(); 242 243 // TCAL 244 inst->tcal().getEntry( pksrec.tcalTime, pksrec.tcal, 245 rec.asuInt("TCAL_ID") ) ; 246 if ( pksrec.tcal.nelements() == 1 ) { 247 ROScalarColumn<uInt> uintCol( itable, "TCAL_ID" ) ; 248 Vector<uInt> tcalids = uintCol.getColumn() ; 249 pksrec.tcal.resize( npol ) ; 250 Vector<Float> dummyA ; 251 String dummyS ; 252 for ( uInt ipol = 0 ; ipol < npol ; ipol++ ) { 253 inst->tcal().getEntry( dummyS, dummyA, tcalids[ipol] ) ; 254 pksrec.tcal[ipol] = dummyA[0] ; 255 } 256 } 257 else if ( pksrec.tcal.nelements() == nchan ) { 258 ROScalarColumn<uInt> uintCol( itable, "TCAL_ID" ) ; 259 Vector<uInt> tcalids = uintCol.getColumn() ; 260 pksrec.tcal.resize( npol ) ; 261 Vector<Float> dummyA ; 262 String dummyS ; 263 for ( uInt ipol = 0 ; ipol < npol ; ipol++ ) { 264 inst->tcal().getEntry( dummyS, dummyA, tcalids[ipol] ) ; 265 pksrec.tcal[ipol] = mean( dummyA ) ; 266 } 267 } 268 //LogIO os ; 269 //os << "npol = " << npol << " pksrec.tcal = " << pksrec.tcal << LogIO::POST ; 242 270 243 271 pksrec.mjd = rec.asDouble("TIME");
Note: See TracChangeset
for help on using the changeset viewer.