Changeset 40447
- Timestamp:
- Jun 11, 2018, 2:33:59 PM (8 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 2 edited
-
psphotReadout.c (modified) (1 diff)
-
psphotReadoutCleanup.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReadout.c
r37466 r40447 94 94 // generate a background model (median, smoothed image) 95 95 if (!psphotModelBackground (config, view, filerule)) { 96 // XXX this should result in a bad quality flag 96 97 return psphotReadoutCleanup (config, view, filerule); 97 98 } -
trunk/psphot/src/psphotReadoutCleanup.c
r37941 r40447 55 55 // XXX where do we free these, in here (psMetadataRemove?) 56 56 57 // XXX this is currently only set by psphotModelBackground / psphotModelBackgroundReadoutFileIndex / psphotModelBackgroundReadout 58 // if the image background cannot be measured (no valid pixels) 57 59 int quality = psMetadataLookupS32 (&status, readout->analysis, "PSPHOT_QUALITY"); 58 60 if (quality) { … … 74 76 return false; 75 77 } 78 } 79 80 // Check to see if any sources were detected 81 // This is not necessarily a quality error: e.g., ppSub 82 if (0 && !psf && !sources) { 83 psError(PSPHOT_ERR_DATA, false, "Unable to detect sources in the image"); 84 return false; 76 85 } 77 86 … … 115 124 116 125 psFree (header); 126 if (quality) return false; 127 117 128 return true; 118 129 }
Note:
See TracChangeset
for help on using the changeset viewer.
