- Timestamp:
- Apr 21, 2014, 5:42:34 AM (12 years ago)
- Location:
- branches/eam_branches/ps2-tc3-20130727
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psModules (modified) (1 prop)
-
psModules/src/objects (modified) (1 prop)
-
psModules/src/objects/pmSourceFitPCM.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ps2-tc3-20130727
- Property svn:mergeinfo changed
-
branches/eam_branches/ps2-tc3-20130727/psModules
- Property svn:mergeinfo deleted
-
branches/eam_branches/ps2-tc3-20130727/psModules/src/objects
- Property svn:ignore
-
old new 12 12 pmSourceIO_CMF_PS1_V1.v1.c 13 13 pmSourceIO_CMF_PS1_V4.c 14 pmSourceIO_CMF_PS1_V5.c 14 15 pmSourceIO_CMF_PS1_SV1.c 15 16 pmSourceIO_CMF_PS1_SV2.c
-
- Property svn:ignore
-
branches/eam_branches/ps2-tc3-20130727/psModules/src/objects/pmSourceFitPCM.c
r35768 r36680 38 38 #include "pmSourceDiffStats.h" 39 39 #include "pmSourceSatstar.h" 40 #include "pmSourceLensing.h" 40 41 #include "pmSource.h" 41 42 #include "pmSourcePhotometry.h" … … 51 52 # define TIMING 0 52 53 54 bool pmSourceChisqModelFlux (pmSource *source, pmModel *model, psImageMaskType maskVal); 55 53 56 bool pmSourceFitPCM (pmPCMdata *pcm, pmSource *source, pmSourceFitOptions *fitOptions, psImageMaskType maskVal, psImageMaskType markVal, int psfSize) { 54 57 … … 68 71 myMin->chisqConvergence = fitOptions->chisqConvergence; 69 72 myMin->gainFactorMode = fitOptions->gainFactorMode; 73 myMin->isInteractive = fitOptions->isInteractive; 70 74 71 75 psImage *covar = psImageAlloc (params->n, params->n, PS_TYPE_F32); … … 112 116 } else { 113 117 // xxx this is wrong because it does not convolve with the psf 114 pmSourceChisqUnsubtracted (source, pcm->modelConv, maskVal); 118 pmPCMMakeModel (source, pcm->modelConv, pcm->nsigma, maskVal, psfSize); 119 pmSourceChisqModelFlux (source, pcm->modelConv, maskVal); 115 120 } 116 121 if (TIMING) { t4 = psTimerMark ("pmSourceFitPCM"); } … … 118 123 // set the model success or failure status 119 124 pcm->modelConv->flags |= PM_MODEL_STATUS_FITTED; 120 if (!fitStatus) pcm->modelConv->flags |= PM_MODEL_STATUS_NONCONVERGE; 125 126 if (!fitStatus) { 127 if (isnan(myMin->value)) { 128 pcm->modelConv->flags |= PM_MODEL_STATUS_NAN_CHISQ; 129 } else { 130 pcm->modelConv->flags |= PM_MODEL_STATUS_NONCONVERGE; 131 } 132 } 121 133 122 134 if (myMin->chisqConvergence) {
Note:
See TracChangeset
for help on using the changeset viewer.
