- Timestamp:
- Jul 17, 2014, 12:30:45 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-ops-20130712/psModules
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
src/objects (modified) (1 prop)
-
src/objects/pmModel.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-ops-20130712/psModules
- Property svn:mergeinfo deleted
-
branches/eam_branches/ipp-ops-20130712/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 17 pmSourceIO_CMF_PS1_SV3.c 16 18 pmSourceIO_CMF_PS1_DV1.c 17 19 pmSourceIO_CMF_PS1_DV2.c 18 20 pmSourceIO_CMF_PS1_DV3.c 19 21 pmSourceIO_CMF_PS1_DV4.c
-
- Property svn:ignore
-
branches/eam_branches/ipp-ops-20130712/psModules/src/objects/pmModel.c
r34498 r37066 33 33 #include "pmMoments.h" 34 34 #include "pmModelFuncs.h" 35 #include "pmModelClass.h" 35 36 #include "pmModel.h" 36 #include "pmModelClass.h"37 37 38 38 static void modelFree(pmModel *tmp) 39 39 { 40 40 psTrace("psModules.objects", 10, "---- %s() begin ----\n", __func__); 41 if (!tmp) return; 42 41 43 psFree(tmp->params); 42 44 psFree(tmp->dparams); … … 90 92 } 91 93 92 tmp->modelFunc = class->modelFunc; 93 tmp->modelFlux = class->modelFlux; 94 tmp->modelRadius = class->modelRadius; 95 tmp->modelLimits = class->modelLimits; 96 tmp->modelGuess = class->modelGuess; 97 tmp->modelFromPSF = class->modelFromPSF; 98 tmp->modelParamsFromPSF = class->modelParamsFromPSF; 99 tmp->modelFitStatus = class->modelFitStatus; 100 tmp->modelSetLimits = class->modelSetLimits; 94 tmp->class = class; 95 96 // tmp->modelFunc = class->modelFunc; 97 // tmp->modelFlux = class->modelFlux; 98 // tmp->modelRadius = class->modelRadius; 99 // tmp->modelLimits = class->modelLimits; 100 // tmp->modelGuess = class->modelGuess; 101 // tmp->modelFromPSF = class->modelFromPSF; 102 // tmp->modelParamsFromPSF = class->modelParamsFromPSF; 103 // tmp->modelFitStatus = class->modelFitStatus; 104 // tmp->modelSetLimits = class->modelSetLimits; 101 105 102 106 psTrace("psModules.objects", 10, "---- %s() end ----\n", __func__); … … 156 160 psF32 tmpF; 157 161 158 tmpF = model-> modelFunc (NULL, model->params, x);162 tmpF = model->class->modelFunc (NULL, model->params, x); 159 163 psFree(x); 160 164 psTrace("psModules.objects", 10, "---- %s() end ----\n", __func__); … … 176 180 psF32 tmpF; 177 181 178 tmpF = model-> modelFunc (NULL, model->params, x);182 tmpF = model->class->modelFunc (NULL, model->params, x); 179 183 psFree(x); 180 184 psTrace("psModules.objects", 10, "---- %s() end ----\n", __func__); … … 217 221 // the options allow us to modify various aspects of the model 218 222 if (mode & PM_MODEL_OP_NORM) { 223 // if we are including the sky, renormalizing should force use to normalized down the sky flux 224 params->data.F32[PM_PAR_SKY] /= params->data.F32[PM_PAR_I0]; 219 225 params->data.F32[PM_PAR_I0] = 1.0; 220 226 } 221 227 if (!(mode & PM_MODEL_OP_SKY)) { 222 228 params->data.F32[PM_PAR_SKY] = 0.0; 223 } 229 } 224 230 if (mode & PM_MODEL_OP_CENTER) { 225 231 params->data.F32[PM_PAR_XPOS] = image->col0 + 0.5*image->numCols; … … 281 287 // add in the desired components for this coordinate 282 288 if (mode & PM_MODEL_OP_FUNC) { 283 pixelValue += model-> modelFunc (NULL, params, x);289 pixelValue += model->class->modelFunc (NULL, params, x); 284 290 } 285 291
Note:
See TracChangeset
for help on using the changeset viewer.
