Changeset 31154 for trunk/psphot/src/psphotChoosePSF.c
- Timestamp:
- Apr 4, 2011, 1:12:39 PM (15 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (2 props)
-
src/psphotChoosePSF.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
- Property svn:ignore
-
old new 19 19 psphot-config 20 20 Doxyfile 21 a.out.dSYM
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
trunk/psphot/src/psphotChoosePSF.c
r30624 r31154 70 70 71 71 // examine PSF sources in S/N order (brightest first) 72 sources = psArraySort (sources, pmSourceSortBy SN);72 sources = psArraySort (sources, pmSourceSortByFlux); 73 73 74 74 // structure to store user options defining the psf … … 160 160 options->fitOptions->weight = PS_SQR(SKY_SIG); 161 161 options->fitOptions->mode = PM_SOURCE_FIT_PSF; 162 options->fitOptions->covarFactor = psImageCovarianceFactorForAperture(readout->covariance, 10.0); // Covariance matrix 163 162 164 163 165 psArray *stars = psArrayAllocEmpty (sources->n); … … 178 180 psphotCheckStarDistribution (stars, sources, options); 179 181 180 psLogMsg ("psphot.pspsf", PS_LOG_DETAIL, "selected candidate %ldPSF objects\n", stars->n);182 psLogMsg ("psphot.pspsf", PS_LOG_DETAIL, "selected %ld candidate PSF objects\n", stars->n); 181 183 182 184 if (stars->n < 50) { … … 336 338 } 337 339 340 // XXX does this work here? 341 psphotVisualShowPSFStars (recipe, try->psf, try->sources); 342 338 343 // build the flux-to-magnitude conversion information 339 344 if (!psphotMakeFluxScale (readout->image, recipe, try->psf)) { … … 443 448 } 444 449 psFree (modelPSF); 450 451 // float fwhmtest = pmPSFtoFWHM(psf, xc, yc); 452 // fprintf (stderr, "fwhm: %f, %f : %f\n", FWHM_MAJOR, FWHM_MINOR, fwhmtest); 445 453 } 446 454 }
Note:
See TracChangeset
for help on using the changeset viewer.
