Changeset 21366 for trunk/psphot/src/psphotReadoutKnownSources.c
- Timestamp:
- Feb 5, 2009, 5:03:33 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReadoutKnownSources.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReadoutKnownSources.c
r21248 r21366 19 19 20 20 // Generate the mask and weight images, including the user-defined analysis region of interest 21 psphotSetMaskAnd Weight(config, readout, recipe);21 psphotSetMaskAndVariance (config, readout, recipe); 22 22 23 23 // display the image, weight, mask (ch 1,2,3) … … 41 41 // use the peak measured in the moments analysis: 42 42 for (int i = 0; i < sources->n; i++) { 43 pmSource *source = sources->data[i];44 source->peak->flux = source->moments->Peak;43 pmSource *source = sources->data[i]; 44 source->peak->flux = source->moments->Peak; 45 45 } 46 46 47 47 // classify sources based on moments, brightness (psf is not known) 48 48 if (!psphotRoughClass (readout, sources, recipe, false)) { … … 53 53 pmPSF *psf = psphotChoosePSF (readout, sources, recipe); 54 54 if (!psf) { 55 psLogMsg ("psphot", 3, "failure to construct a psf model");56 return psphotReadoutCleanup (config, readout, recipe, detections, psf, sources);55 psLogMsg ("psphot", 3, "failure to construct a psf model"); 56 return psphotReadoutCleanup (config, readout, recipe, detections, psf, sources); 57 57 } 58 58 psphotVisualShowPSFModel (readout, psf);
Note:
See TracChangeset
for help on using the changeset viewer.
