Changeset 5125
- Timestamp:
- Sep 25, 2005, 9:21:10 PM (21 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 2 edited
-
psModulesUtils.c (modified) (1 diff)
-
psModulesUtils.h (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 } -
trunk/psphot/src/psModulesUtils.h
r5048 r5125 14 14 int pmSourceDophotType (pmSource *source); 15 15 bool pmSourcePhotometry (float *fitMag, float *obsMag, pmModel *model, psImage *image, psImage *mask); 16 bool pmModelSkyOffset (pmModel *model, float x, float y, float radius); 16 17 17 18 // unify with paul's image/header/metadata functions
Note:
See TracChangeset
for help on using the changeset viewer.
