Changeset 39818
- Timestamp:
- Nov 17, 2016, 9:54:33 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
ippconfig/recipes/psphot.config (modified) (2 diffs)
-
psphot/src/psphotFitSourcesLinear.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippconfig/recipes/psphot.config
r38637 r39818 115 115 PSF_FIT_MIN_VALID_FLUX F32 -100000000.0 # minimum allow flux for fitted source 116 116 PSF_FIT_MAX_VALID_FLUX F32 +100000000.0 # maximum allow flux for fitted source 117 118 PSF_FIT_MODEL_SUM_FRAC_CUT F32 0.85 119 PSF_FIT_MASKED_SUM_FRAC_CUT F32 0.85 117 120 118 121 # the following is used to require a minimum quality of fit before … … 720 723 OUTPUT.FORMAT STR PS1_DV3 # Format of output file 721 724 725 PSF_FIT_MODEL_SUM_FRAC_CUT F32 0.5 726 PSF_FIT_MASKED_SUM_FRAC_CUT F32 0.5 727 722 728 # Extended source fit parameters 723 729 # these models are used for high-quality shape analysis after all sources have been removed -
trunk/psphot/src/psphotFitSourcesLinear.c
r38514 r39818 193 193 MAX_VALID_FLUX = 1e+8; 194 194 } 195 196 float cutModelSum = psMetadataLookupF32(&status, recipe, "PSF_FIT_MODEL_SUM_FRAC_CUT"); 197 float cutMaskedSum = psMetadataLookupF32(&status, recipe, "PSF_FIT_MASKED_SUM_FRAC_CUT"); 195 198 196 199 // XXX test: choose a larger-than expected radius: … … 278 281 279 282 // printf("%5d %4.3f %4.3f %4.3f\n", source->seq, normFlux, modelSum, maskedSum); 280 float cut = .85; 281 if (modelSum < cut * normFlux) continue; 282 if (maskedSum < cut * normFlux) continue; 283 //float cut = .85; 284 //if (modelSum < cut * normFlux) continue; 285 //if (maskedSum < cut * normFlux) continue; 286 if (modelSum < cutModelSum * normFlux) continue; 287 if (maskedSum < cutMaskedSum * normFlux) continue; 283 288 284 289 // clear the 'mark' pixels and remask on the fit aperture
Note:
See TracChangeset
for help on using the changeset viewer.
