Changeset 40235
- Timestamp:
- Dec 3, 2017, 5:56:10 AM (9 years ago)
- Location:
- branches/eam_branches/ohana.20170822/src/relphot
- Files:
-
- 6 edited
-
include/relphot.h (modified) (1 diff)
-
src/ImageOps.c (modified) (1 diff)
-
src/load_images.c (modified) (1 diff)
-
src/plotstuff.c (modified) (1 diff)
-
src/relphot_images.c (modified) (5 diffs)
-
src/select_images.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20170822/src/relphot/include/relphot.h
r40231 r40235 407 407 int findMosaics PROTO((Catalog *catalog, int Ncatalog, int doMosaicList)); 408 408 409 void checkImages (char *name); 409 410 int dumpMags (FILE *fout, Catalog *catalog, int Ncatalog); 410 411 -
branches/eam_branches/ohana.20170822/src/relphot/src/ImageOps.c
r40213 r40235 1159 1159 return (stats); 1160 1160 } 1161 1162 void checkImages (char *name) { 1163 1164 off_t i; 1165 fprintf (stderr, "--- %s ---\n", name); 1166 for (i = 0; i < Nimage; i++) { 1167 fprintf (stderr, "%s : 0x%08x : %6.3f %6.3f\n", image[i].name, image[i].flags, image[i].McalPSF, image[i].McalAPER); 1168 } 1169 } -
branches/eam_branches/ohana.20170822/src/relphot/src/load_images.c
r39642 r40235 52 52 free (subset); 53 53 subset = image; 54 } 55 } 56 57 // reset image values as needed. always allow 'few' images to succeed, if possible (new 58 // images / detections may have been added 59 for (off_t i = 0; i < Nsubset; i++) { 60 if (subset[i].flags & ID_IMAGE_PHOTOM_FEW) { 61 subset[i].flags &= ~(ID_IMAGE_PHOTOM_FEW | ID_IMAGE_PHOTOM_POOR); 62 } 63 if (RESET) { 64 if (RESET_ZEROPTS) { 65 if (!KEEP_UBERCAL || !(subset[i].flags & ID_IMAGE_PHOTOM_UBERCAL)) { 66 subset[i].McalPSF = 0.0; 67 subset[i].McalAPER = 0.0; 68 subset[i].dMcal = NAN; 69 subset[i].flags &= ~ID_IMAGE_PHOTOM_UBERCAL; 70 } 71 } 72 subset[i].flags &= ~ID_IMAGE_PHOTOM_POOR; 73 subset[i].ubercalDist = 1000; 54 74 } 55 75 } -
branches/eam_branches/ohana.20170822/src/relphot/src/plotstuff.c
r39457 r40235 179 179 180 180 KapaInitGraph (graphdata); 181 graphdata[0].style = 2;181 graphdata[0].style = KAPA_PLOT_POINTS; /* points */ 182 182 graphdata[0].ptype = 2; 183 183 graphdata[0].ltype = 0; -
branches/eam_branches/ohana.20170822/src/relphot/src/relphot_images.c
r40231 r40235 41 41 load_images (&db, skylist, &UserPatch, FALSE, USE_ALL_IMAGES); 42 42 MARKTIME("-- load images: %f sec\n", dtime); 43 44 checkImages("load images"); 43 45 44 46 /* unlock, if we can (else, unlocked below) */ … … 60 62 /* add in a loop over the catalogs calling dvo_catalog_chipcoords */ 61 63 64 checkImages("load catalog"); 65 62 66 /* match measurements with images, mosaics */ 63 67 initImageBins (catalog, Ncatalog, TRUE); … … 77 81 78 82 setExclusions (catalog, Ncatalog, TRUE); 83 checkImages("set Exclu"); 79 84 80 85 global_stats (catalog, Ncatalog, flatcorr, 0); … … 109 114 } 110 115 if (VERBOSE2) dumpMags (stderr, catalog, Ncatalog); 116 checkImages("start loop"); 111 117 112 118 setMrel (catalog, Ncatalog, flatcorr); // threaded 113 119 if (VERBOSE2) dumpMags (stderr, catalog, Ncatalog); 120 checkImages("set Mrel"); 114 121 115 122 if (PLOTSTUFF) { … … 117 124 } 118 125 setMcal (catalog, FALSE, flatcorr); 126 checkImages("set Mcal"); 119 127 if (VERBOSE2) dumpMags (stderr, catalog, Ncatalog); 120 128 -
branches/eam_branches/ohana.20170822/src/relphot/src/select_images.c
r40212 r40235 251 251 image[nimage] = timage[i]; 252 252 inSubset[i] = TRUE; 253 /* always allow 'few' images to succeed, if possible (new images / detections may have254 * been added) */255 if (image[nimage].flags & ID_IMAGE_PHOTOM_FEW) {256 image[nimage].flags &= ~(ID_IMAGE_PHOTOM_FEW | ID_IMAGE_PHOTOM_POOR);257 }258 if (RESET) {259 if (RESET_ZEROPTS) {260 if (!KEEP_UBERCAL || !(image[nimage].flags & ID_IMAGE_PHOTOM_UBERCAL)) {261 image[nimage].McalPSF = 0.0;262 image[nimage].McalAPER = 0.0;263 image[nimage].dMcal = NAN;264 image[nimage].flags &= ~ID_IMAGE_PHOTOM_UBERCAL;265 }266 }267 image[nimage].flags &= ~ID_IMAGE_PHOTOM_POOR;268 image[nimage].ubercalDist = 1000;269 }270 253 line_number[nimage] = i; 271 254 nimage ++;
Note:
See TracChangeset
for help on using the changeset viewer.
