Changeset 21183 for trunk/psphot/src/psphotPSFConvModel.c
- Timestamp:
- Jan 26, 2009, 8:40:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotPSFConvModel.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotPSFConvModel.c
r18555 r21183 9 9 // modelConv to contain the fitted parameters, and the modelFlux to contain the 10 10 // convolved model image. 11 pmModel *psphotPSFConvModel (pmReadout *readout, pmSource *source, pmModelType modelType, ps MaskType maskVal, psMaskType markVal, int psfSize) {11 pmModel *psphotPSFConvModel (pmReadout *readout, pmSource *source, pmModelType modelType, psImageMaskType maskVal, psImageMaskType markVal, int psfSize) { 12 12 13 13 // maskVal is used to test for rejected pixels, and must include markVal … … 72 72 // create the minimization constraints 73 73 psMinConstraint *constraint = psMinConstraintAlloc(); 74 constraint->paramMask = psVectorAlloc (params->n, PS_TYPE_ U8);74 constraint->paramMask = psVectorAlloc (params->n, PS_TYPE_VECTOR_MASK); 75 75 constraint->checkLimits = modelConv->modelLimits; 76 76 … … 79 79 int nParams = params->n - 1; 80 80 psVectorInit (constraint->paramMask, 0); 81 constraint->paramMask->data. U8[PM_PAR_SKY] = 1;81 constraint->paramMask->data.PS_TYPE_VECTOR_MASK_DATA[PM_PAR_SKY] = 1; 82 82 83 83 // force the floating parameters to fall within the contraint ranges … … 97 97 fprintf (stderr, "%f ", params->data.F32[i]); 98 98 } 99 if ((constraint->paramMask != NULL) && constraint->paramMask->data. U8[i])99 if ((constraint->paramMask != NULL) && constraint->paramMask->data.PS_TYPE_VECTOR_MASK_DATA[i]) 100 100 continue; 101 101 dparams->data.F32[i] = sqrt(covar->data.F32[i][i]);
Note:
See TracChangeset
for help on using the changeset viewer.
