Changeset 41362 for branches/eam_branches/relphot.20200519/src/StarOps.c
- Timestamp:
- May 22, 2020, 5:12:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/relphot.20200519/src/StarOps.c
r40291 r41362 105 105 results->Ncal = 0; 106 106 results->Nmos = 0; 107 results->Ngrp = 0; 107 108 results->Ngrid = 0; 108 109 } … … 264 265 summary->Ncal += results->Ncal ; 265 266 summary->Nmos += results->Nmos ; 267 summary->Ngrp += results->Ngrp ; 266 268 summary->Ngrid += results->Ngrid; 267 269 } … … 313 315 SetMrelInfoAccum (&summary, &results); 314 316 } 315 if (VERBOSE2) fprintf (stderr, "%d stars with no data in photcode, %d stars marked having too few measurements (Nbad: %d, Ncal: %d, Nmos: %d, Ngr id: %d, Nsys: %d)\n", summary.Ncode, summary.Nfew, summary.Nbad, summary.Ncal, summary.Nmos, summary.Ngrid, summary.Nsys);317 if (VERBOSE2) fprintf (stderr, "%d stars with no data in photcode, %d stars marked having too few measurements (Nbad: %d, Ncal: %d, Nmos: %d, Ngrp: %d, Ngrid: %d, Nsys: %d)\n", summary.Ncode, summary.Nfew, summary.Nbad, summary.Ncal, summary.Nmos, summary.Ngrp, summary.Ngrid, summary.Nsys); 316 318 317 319 SetMrelInfoFree (&results); … … 336 338 SetMrelInfoAccum (&summary, &results); 337 339 } 338 if (VERBOSE2) fprintf (stderr, "%d stars with no data in photcode, %d stars marked having too few measurements (Nbad: %d, Ncal: %d, Nmos: %d, Ngr id: %d, Nsys: %d)\n", summary.Ncode, summary.Nfew, summary.Nbad, summary.Ncal, summary.Nmos, summary.Ngrid, summary.Nsys);340 if (VERBOSE2) fprintf (stderr, "%d stars with no data in photcode, %d stars marked having too few measurements (Nbad: %d, Ncal: %d, Nmos: %d, Ngrp: %d, Ngrid: %d, Nsys: %d)\n", summary.Ncode, summary.Nfew, summary.Nbad, summary.Ncal, summary.Nmos, summary.Ngrp, summary.Ngrid, summary.Nsys); 339 341 340 342 SetMrelInfoFree (&results); … … 393 395 // report stats & summary from the threads 394 396 for (i = 0; i < NTHREADS; i++) { 395 if (VERBOSE2) fprintf (stderr, "setMrel thread %d : %d stars with no data in photcode, %d stars marked having too few measurements (Nbad: %d, Ncal: %d, Nmos: %d, Ngr id: %d, Nsys: %d)\n",397 if (VERBOSE2) fprintf (stderr, "setMrel thread %d : %d stars with no data in photcode, %d stars marked having too few measurements (Nbad: %d, Ncal: %d, Nmos: %d, Ngrp: %d, Ngrid: %d, Nsys: %d)\n", 396 398 i, 397 399 threadinfo[i].summary.Ncode, … … 400 402 threadinfo[i].summary.Ncal, 401 403 threadinfo[i].summary.Nmos, 404 threadinfo[i].summary.Ngrp, 402 405 threadinfo[i].summary.Ngrid, 403 406 threadinfo[i].summary.Nsys); … … 405 408 SetMrelInfoFree (&threadinfo[i].summary); 406 409 } 407 if (VERBOSE2) fprintf (stderr, "total : %d stars with no data in photcode, %d stars marked having too few measurements (Nbad: %d, Ncal: %d, Nmos: %d, Ngr id: %d, Nsys: %d)\n", summary.Ncode, summary.Nfew, summary.Nbad, summary.Ncal, summary.Nmos, summary.Ngrid, summary.Nsys);410 if (VERBOSE2) fprintf (stderr, "total : %d stars with no data in photcode, %d stars marked having too few measurements (Nbad: %d, Ncal: %d, Nmos: %d, Ngrp: %d, Ngrid: %d, Nsys: %d)\n", summary.Ncode, summary.Nfew, summary.Nbad, summary.Ncal, summary.Nmos, summary.Ngrp, summary.Ngrid, summary.Nsys); 408 411 free (threadinfo); 409 412 … … 488 491 float Mmos = getMmos (m, i); 489 492 if (isnan(Mmos)) continue; 493 float Mgrp = getMgrp (m, i); 494 if (isnan(Mgrp)) continue; 490 495 float Mgrid = getMgrid (m, i); 491 496 if (isnan(Mgrid)) continue; … … 502 507 503 508 // set the output calibration 504 catalog[i].measure[m].McalPSF = McalPSF + Mmos + Mgrid; 505 catalog[i].measure[m].McalAPER = useStackAper ? McalAPER + Mmos + Mgrid : McalPSF + Mmos + Mgrid; 509 float Moff = Mmos + Mgrp + Mgrid; 510 catalog[i].measure[m].McalPSF = McalPSF + Moff; 511 catalog[i].measure[m].McalAPER = useStackAper ? McalAPER + Moff : McalPSF + Moff; 506 512 507 513 if (catalog[i].measureT[m].dbFlags & ID_MEAS_PHOTOM_UBERCAL) { … … 662 668 off_t *ilist; 663 669 double *tlist, *list, *dlist; 664 float Msys, Mcal, Mmos, Mgr id;665 int Ncal, Nmos, Ngr id, Nfew;670 float Msys, Mcal, Mmos, Mgrp, Mgrid; 671 int Ncal, Nmos, Ngrp, Ngrid, Nfew; 666 672 667 673 int Nsecfilt = GetPhotcodeNsecfilt (); … … 689 695 690 696 Ndel = Nave = 0; 691 Ncal = Nmos = Ngr id = Nfew = 0;697 Ncal = Nmos = Ngrp = Ngrid = Nfew = 0; 692 698 for (i = 0; i < Ncatalog; i++) { 693 699 for (j = 0; j < catalog[i].Naverage; j++) { … … 724 730 Mmos = getMmos (m, i); 725 731 if (isnan(Mmos)) { Nmos ++; continue; } 732 Mgrp = getMgrp (m, i); 733 if (isnan(Mgrp)) { Ngrp ++; continue; } 726 734 Mgrid = getMgrid (m, i); 727 735 if (isnan(Mgrid)) { Ngrid ++; continue; }
Note:
See TracChangeset
for help on using the changeset viewer.
