Changeset 39344
- Timestamp:
- Feb 11, 2016, 11:33:44 AM (10 years ago)
- Location:
- trunk/Ohana/src/relphot
- Files:
-
- 5 edited
-
include/relphot.h (modified) (1 diff)
-
src/ImageOps.c (modified) (4 diffs)
-
src/global_stats.c (modified) (2 diffs)
-
src/relphot_images.c (modified) (2 diffs)
-
src/relphot_parallel_images.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relphot/include/relphot.h
r38986 r39344 393 393 Image *getimages PROTO((off_t *N, off_t **LineNumber)); 394 394 ImageSubset *getimages_subset PROTO((off_t *N)); 395 void global_stats PROTO((Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr ));395 void global_stats PROTO((Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr, int nloop)); 396 396 void initGrid PROTO((int dX, int dY)); 397 397 void initGridBins PROTO((Catalog *catalog, int Ncatalog)); -
trunk/Ohana/src/relphot/src/ImageOps.c
r39289 r39344 623 623 Nfew = Nbad = Nmos = Ngrid = Nrel = Nsys = 0; 624 624 625 int Ncalibrated = 0; 625 626 for (i = 0; i < Nimage; i++) { 626 627 … … 631 632 } 632 633 634 // only freeze the gpc1 chips 633 635 if (FREEZE_IMAGES && isGPC1chip(image[i].photcode)) continue; 634 636 … … 729 731 image[i].nFitPhotom = N; 730 732 image[i].Xm = 100.0*log10(stats.chisq); 733 Ncalibrated ++; 731 734 732 735 if (PLOTSTUFF) { … … 752 755 free (dMlist); 753 756 757 fprintf (stderr, "%d images calibrated\n", Ncalibrated); 754 758 fprintf (stderr, "%d images marked having too few measurements (Nbad: %d, Nmos: %d, Ngrid: %d, Nrel: %d, Nsys: %d)\n", Nfew, Nbad, Nmos, Ngrid, Nrel, Nsys); 755 759 -
trunk/Ohana/src/relphot/src/global_stats.c
r38466 r39344 1 1 # include "relphot.h" 2 2 3 void global_stats (Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr ) {3 void global_stats (Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr, int nloop) { 4 4 5 5 StatType stN, stX, stS, imN, imX, imM, imD, msM, msX, msN, msD; … … 23 23 24 24 int Ns; 25 for (Ns = 0; Ns < Nphotcodes; Ns++) {25 for (Ns = 0; (nloop % 3 == 3) && (Ns < Nphotcodes); Ns++) { 26 26 27 27 int thisCode = photcodes[Ns][0].code; -
trunk/Ohana/src/relphot/src/relphot_images.c
r39289 r39344 79 79 setExclusions (catalog, Ncatalog, TRUE); 80 80 81 global_stats (catalog, Ncatalog, flatcorr );81 global_stats (catalog, Ncatalog, flatcorr, 0); 82 82 83 83 if (PLOTSTUFF) { … … 139 139 if ((i > 8) && (i % 8 == 5)) clean_images (); 140 140 141 // if ((i == 1) || (i == 5) || (i == 9) || (i == 13)) clean_measures (catalog, Ncatalog, FALSE); 142 // if ((i == 2) || (i == 6) || (i == 10) || (i == 14)) clean_stars (catalog, Ncatalog); 143 // if ((i == 4) || (i == 8) || (i == 12) || (i == 16)) clean_mosaics (); 144 // if ((i == 4) || (i == 8) || (i == 12) || (i == 16)) clean_images (); 145 if (i % 3 == 2) global_stats (catalog, Ncatalog, flatcorr); 141 global_stats (catalog, Ncatalog, flatcorr, i); 146 142 MARKTIME("-- finished loop %d: %f sec\n", i, dtime); 147 143 } -
trunk/Ohana/src/relphot/src/relphot_parallel_images.c
r39289 r39344 93 93 setExclusions (catalog, Ncatalog, TRUE); 94 94 95 global_stats (catalog, Ncatalog, flatcorr );95 global_stats (catalog, Ncatalog, flatcorr, 0); 96 96 97 97 if (PLOTSTUFF) { … … 135 135 if ((i > 8) && (i % 8 == 5)) clean_images (); 136 136 137 if (i % 3 == 2) global_stats (catalog, Ncatalog, flatcorr);137 global_stats (catalog, Ncatalog, flatcorr, i); 138 138 MARKTIME("-- finished loop %d: %f sec\n", i, dtime); 139 139 }
Note:
See TracChangeset
for help on using the changeset viewer.
