Changeset 26648
- Timestamp:
- Jan 20, 2010, 5:18:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/psphot/src/psphotReadoutMinimal.c
r26596 r26648 54 54 return psphotReadoutCleanup (config, readout, recipe, detections, psf, NULL); 55 55 } 56 #if 0 56 57 if (!detections->peaks->n) { 57 58 psLogMsg ("psphot", 3, "unable to find detections in this image"); 58 59 return psphotReadoutCleanup (config, readout, recipe, detections, psf, NULL); 59 60 } 61 #endif 60 62 61 63 // construct sources and measure basic stats 62 64 psArray *sources = psphotSourceStats (config, readout, detections, false); 63 65 if (!sources) return false; 66 67 // Do the efficiency before everything else, to ensure it's done 68 if (!psphotEfficiency(config, readout, view, psf, recipe, sources)) { 69 psErrorStackPrint(stderr, "Unable to determine detection efficiencies from fake sources"); 70 psErrorClear(); 71 } 72 73 if (detections->peaks->n == 0 || sources->n == 0) { 74 psLogMsg ("psphot", 3, "unable to find detections in this image"); 75 return psphotReadoutCleanup (config, readout, recipe, detections, psf, NULL); 76 } 77 78 64 79 65 80 // find blended neighbors of very saturated stars … … 103 118 psphotMagnitudes(config, readout, view, sources, psf); 104 119 105 if (!psphotEfficiency(config, readout, view, psf, recipe, sources)) {106 psErrorStackPrint(stderr, "Unable to determine detection efficiencies from fake sources");107 psErrorClear();108 }109 110 120 // drop the references to the image pixels held by each source 111 121 psphotSourceFreePixels (sources);
Note:
See TracChangeset
for help on using the changeset viewer.
