Changeset 612 in Sophya for trunk/Poubelle/archTOI.old/toiiter.cc
- Timestamp:
- Nov 22, 1999, 10:43:44 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archTOI.old/toiiter.cc
r555 r612 205 205 processRequest("#UTCORIGIN 1376.5"); 206 206 processRequest("#ASIGPS ASI_GPS_archeops1999.ascii"); 207 processRequest("#COMMENT Archtoi V2 -- october 1999 -- Eric Aubourg CEA/DAPNIA"); 208 processRequest("#COMMENT ***WARNING***"); 209 processRequest("#COMMENT ***SOME TOI'S ARE PRELIMINARY***"); 210 processRequest("#COMMENT gyroSpeed is not calibrated"); 211 processRequest("#COMMENT azimut/alpha/delta use galaxy crossings and ASI GPS data"); 212 processRequest("#COMMENT and assume no pendulation"); 213 processRequest("#COMMENT Focal plane center elevation found at 41.5 deg"); 214 processRequest("#COMMENT with Jupiter"); 215 processRequest("#COMMENT boloMuV2 is not protected against glitches"); 207 processRequest("#COMMENT Archtoi V3 -- novembre 1999 -- Eric Aubourg CEA/DAPNIA"); 216 208 } 217 209 … … 233 225 } 234 226 235 fset.setMJDRange(mjdStart-0.01, mjdEnd+0.01); 236 fset.setSNumRange(sStart-1000, sEnd+1000); 227 // Let's add some time on each side, 30 seconds should be ok, at least 228 // for Trapani 229 230 double delT = 30. / 86400; 231 long delSN = long(delT / archParam.acq.perEch); 232 233 fset.setMJDRange(mjdStart-delT, mjdEnd+delT); 234 fset.setSNumRange(sStart-delSN, sEnd+delSN); 237 235 238 236 fset.init(); … … 267 265 // Si on a epuise les fichiers de donnees, on s'arrete des qu'aucune 268 266 // TOI n'a de valeurs apres curSample... 269 if (curSample <= 0) curSample = sStart-1; 267 if (curSample <= 0) curSample = sStart-1; 268 if (curSample <= 0) { 269 long sn = archParam.acq.MJD2SN(mjdStart) - 1; 270 if (sn > curSample) curSample = sn; 271 } 272 270 273 if (curSample <= 0) curSample = fset.getSampleIndex()-1; 271 274 … … 288 291 } 289 292 bool found=false; 290 bool valuesAhead = false;293 //bool valuesAhead = false; 291 294 for (vector<TOIInfo>::iterator i = request.begin(); i != request.end(); i++) { 292 295 if (((*i).third & triggering) == 0) continue; 293 296 if ((*i).second->canGetValue(curSample, (*i).first)) {found=true;break;} 294 if ((*i).second->lastSampleNum((*i).first)>curSample) valuesAhead=true;297 //if ((*i).second->lastSampleNum((*i).first)>curSample) valuesAhead=true; 295 298 } 296 299 if (found) break; 297 if (endFound && !valuesAhead) return false;300 if (endFound && curSample >= fset.getSampleIndex()+71) return false; 298 301 } 299 302 return true;
Note:
See TracChangeset
for help on using the changeset viewer.