Changeset 3878 in Sophya for trunk/AddOn/TAcq/brviscalc.cc
- Timestamp:
- Sep 9, 2010, 4:07:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AddOn/TAcq/brviscalc.cc
r3876 r3878 220 220 moyfc_/=nmean_; 221 221 moytt_/=nmean_; 222 vismtx_.Info()["MeanFC"] = moyfc_; 223 vismtx_.Info()["MeanTT"] = moytt_; 224 vismtx_.Info()["NPAQSUM"] = nmean_; 225 222 UpdateVisMtxInfo(); // add/update keywords in the Info DVList 226 223 // ATTENTION : Matrice visibilites non moyennee 227 224 char nfile[48]; … … 240 237 vismtx_ = complex<r_4>((r_4)0.,(r_4)0.); 241 238 moyfc_=moytt_=0.; 239 first_fc_=curfc_[0]; 240 first_tt_= (vpaq_[0].TimeTag()-ttfirst_[0]); 241 first_tmstamp_.SetNow(); // Current date and time 242 242 } 243 243 … … 304 304 moyfc_/=nmean_; 305 305 moytt_/=nmean_; 306 vismtx_.Info()["MeanFC"] = moyfc_; 307 vismtx_.Info()["MeanTT"] = moytt_; 308 vismtx_.Info()["NPAQSUM"] = nmean_; 309 306 UpdateVisMtxInfo(); // add/update keywords in the Info DVList 310 307 // ATTENTION : Matrice visibilites non moyennee 311 308 char nfile[48]; … … 324 321 vismtx_ = complex<r_4>((r_4)0.,(r_4)0.); 325 322 moyfc_=moytt_=0.; 323 first_fc_=curfc_[0]; 324 first_tt_= (vpaq_[0].TimeTag()-ttfirst_[0]); 325 first_tmstamp_.SetNow(); // Current date and time 326 326 } 327 327 … … 347 347 return 0; 348 348 } 349 350 /* --Methode-- */ 351 void BRVisibilityCalculator::UpdateVisMtxInfo() 352 { 353 string ikey,ikdesc; 354 ikey="DATEOBS"; ikdesc=" Date/Time corresponding to TimeTagFirst"; 355 vismtx_.Info().SetS(ikey,first_tmstamp_.ToString()); 356 vismtx_.Info().SetComment(ikey,ikdesc); 357 ikey="FirstFC"; ikdesc="First FrameCounter"; 358 vismtx_.Info().SetI(ikey,first_fc_); 359 vismtx_.Info().SetComment(ikey,ikdesc); 360 ikey="FirstTT"; ikdesc="First TimeTag"; 361 vismtx_.Info().SetI(ikey,first_tt_); 362 vismtx_.Info().SetComment(ikey,ikdesc); 363 ikey="LastFC"; ikdesc="Last FrameCounter"; 364 vismtx_.Info().SetI(ikey,curfc_[0]); 365 vismtx_.Info().SetComment(ikey,ikdesc); 366 ikey="LastTT"; ikdesc="Last TimeTag"; 367 vismtx_.Info().SetI(ikey,vpaq_[0].TimeTag()-ttfirst_[0]); 368 vismtx_.Info().SetComment(ikey,ikdesc); 369 ikey="MeanFC"; ikdesc="Mean FrameCounter"; 370 vismtx_.Info().SetD(ikey,moyfc_); 371 vismtx_.Info().SetComment(ikey,ikdesc); 372 ikey="MeanTT"; ikdesc="Mean TimeTag"; 373 vismtx_.Info().SetD(ikey,moytt_); 374 vismtx_.Info().SetComment(ikey,ikdesc); 375 ikey="NPAQSUM"; ikdesc="Number of paquets summed"; 376 vismtx_.Info().SetI(ikey,nmean_); 377 } 378 349 379 350 380 /* --Methode-- */
Note:
See TracChangeset
for help on using the changeset viewer.