Changeset 5125 for trunk/psphot/src/psModulesUtils.c
- Timestamp:
- Sep 25, 2005, 9:21:10 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psModulesUtils.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psModulesUtils.c
r5048 r5125 82 82 } 83 83 84 // force the fitted sky to meet the source flux at outer radius 85 bool pmModelSkyOffset (pmModel *model, float x, float y, float radius) { 86 87 float flux; 88 89 psVector *coord = psVectorAlloc(2, PS_TYPE_F32); 90 91 pmModelFunc modelFunc = pmModelFunc_GetFunction (model->type); 92 psVector *params = model->params; 93 94 coord->data.F32[0] = x + radius; 95 coord->data.F32[1] = y; 96 flux = modelFunc (NULL, params, coord); 97 params->data.F32[0] = flux; 98 99 psFree (coord); 100 101 return true; 102 }
Note:
See TracChangeset
for help on using the changeset viewer.
