Changeset 4115 for trunk/psphot/src/apply_psf_model.c
- Timestamp:
- Jun 4, 2005, 5:22:13 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/apply_psf_model.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/apply_psf_model.c
r4114 r4115 22 22 keep = psRegionForImage (keep, image, keep); 23 23 24 // set the object surfact-brightness limit for fitted pixels 24 float shapeNsigma = psMetadataLookupF32 (&status, config, "PSF_SHAPE_NSIGMA"); 25 float snFaint = psMetadataLookupF32 (&status, config, "FAINT_SN_LIM"); 26 27 // set the object surface-brightness limit for fitted pixels 25 28 float FLUX_LIMIT = FIT_NSIGMA * sky->sampleStdev; 26 29 psLogMsg ("psphot.apply_psf_model", 3, "fitting pixels with at least %f object counts\n", FLUX_LIMIT); … … 31 34 for (int i = 0; i < sources->n; i++) { 32 35 psSource *source = sources->data[i]; 36 37 // skip the existing PSF stars 38 // XXX drop this -- refit? 33 39 if (source->modelPSF != NULL) continue; 34 40 … … 55 61 pmSourceMaskSaturated (source, SATURATE); 56 62 57 // fit as PSF, not FLT ( drop poor fits)63 // fit as PSF, not FLT (skip poor fits) 58 64 if (!pmSourceFitModel (source, model, true)) continue; 59 65 source->modelPSF = model; 60 66 Niter += model[0].nIter; 61 67 Nfit ++; 68 69 mark_psf_source (source); 70 subtract_psf_source (source); 62 71 } 63 72 psLogMsg ("psphot", 3, "fit PSF models: %f sec for %d objects (%d total iterations)\n", psTimerMark ("psphot"), Nfit, Niter);
Note:
See TracChangeset
for help on using the changeset viewer.
