- Timestamp:
- Sep 21, 2009, 8:37:01 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psModules/src/objects/pmPSFtryFitPSF.c
r25455 r25476 39 39 // stage 3: Refit with fixed shape parameters. This function uses the LMM fitting, but could 40 40 // be re-written to use the simultaneous linear fitting (see psphotFitSourcesLinear.c) 41 bool pmPSFtryFitPSF (pmPSFtry *psfTry) { 41 bool pmPSFtryFitPSF (pmPSFtry *psfTry, pmPSFOptions *options, psImageMaskType maskVal, psImageMaskType markVal) { 42 43 bool status; 42 44 43 45 psTimerStart ("psf.fit"); 46 47 // maskVal is used to test for rejected pixels, and must include markVal 48 maskVal |= markVal; 49 50 int Npsf = 0; 44 51 for (int i = 0; i < psfTry->sources->n; i++) { 45 52 … … 98 105 psfTry->psf->nPSFstars = Npsf; 99 106 100 psLogMsg ("psphot.psftry", PS_LOG_MINUTIA, "fit psf: %f sec for %d of %ld sources\n", psTimerMark ("psf.fit"), Npsf, sources->n);101 psTrace ("psModules.object", 3, "keeping %d of %ld PSF candidates (PSF)\n", Npsf, sources->n);107 psLogMsg ("psphot.psftry", PS_LOG_MINUTIA, "fit psf: %f sec for %d of %ld sources\n", psTimerMark ("psf.fit"), Npsf, psfTry->sources->n); 108 psTrace ("psModules.object", 3, "keeping %d of %ld PSF candidates (PSF)\n", Npsf, psfTry->sources->n); 102 109 103 110 if (Npsf == 0) { 104 111 psError(PS_ERR_UNKNOWN, false, "No sources with good PSF fits after model is built."); 105 psFree(psfTry); 106 return NULL; 112 return false; 107 113 } 108 114 115 return true; 116 }
Note:
See TracChangeset
for help on using the changeset viewer.
