Changeset 10310
- Timestamp:
- Nov 30, 2006, 3:34:32 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotApResid.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotApResid.c
r10278 r10310 6 6 7 7 // measure the aperture residual statistics 8 bool psphotApResid (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf) {9 8 bool psphotApResid (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf) 9 { 10 10 int Nfail = 0; 11 11 int Nskip = 0; … … 30 30 bool IGNORE_GROWTH = psMetadataLookupBool (&status, recipe, "IGNORE_GROWTH"); 31 31 bool INTERPOLATE_AP = psMetadataLookupBool (&status, recipe, "INTERPOLATE_AP"); 32 int NSTAR_APERTURE_CORRECTION_MIN = 33 psMetadataLookupS32(&status, recipe, "NSTAR_APERTURE_CORRECTION_MIN"); 34 if (!status) { 35 NSTAR_APERTURE_CORRECTION_MIN = 5; 36 } 32 37 33 38 pmSourcePhotometryMode photMode = 0; … … 116 121 117 122 // XXX choose a better value here? 118 if (Npsf < 5) { 119 psError(PSPHOT_ERR_APERTURE, true, "no valid aperture residual sources, giving up"); 123 if (Npsf < NSTAR_APERTURE_CORRECTION_MIN) { 124 psError(PSPHOT_ERR_APERTURE, true, "Only %d valid aperture residual sources (need %d), giving up", 125 Npsf, NSTAR_APERTURE_CORRECTION_MIN); 120 126 return false; 121 127 }
Note:
See TracChangeset
for help on using the changeset viewer.
