Changeset 21366 for trunk/psphot/src/psphotRadialProfile.c
- Timestamp:
- Feb 5, 2009, 5:03:33 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotRadialProfile.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotRadialProfile.c
r21183 r21366 11 11 flux->data.F32[A] = flux->data.F32[B]; \ 12 12 flux->data.F32[B] = tmp; \ 13 tmp = weight->data.F32[A]; \14 weight->data.F32[A] = weight->data.F32[B]; \15 weight->data.F32[B] = tmp; \13 tmp = variance->data.F32[A]; \ 14 variance->data.F32[A] = variance->data.F32[B]; \ 15 variance->data.F32[B] = tmp; \ 16 16 } \ 17 17 } … … 31 31 source->extpars->profile->radius = psVectorAllocEmpty (nPts, PS_TYPE_F32); 32 32 source->extpars->profile->flux = psVectorAllocEmpty (nPts, PS_TYPE_F32); 33 source->extpars->profile-> weight= psVectorAllocEmpty (nPts, PS_TYPE_F32);33 source->extpars->profile->variance = psVectorAllocEmpty (nPts, PS_TYPE_F32); 34 34 35 35 psVector *radius = source->extpars->profile->radius; 36 36 psVector *flux = source->extpars->profile->flux; 37 psVector * weight = source->extpars->profile->weight;37 psVector *variance = source->extpars->profile->variance; 38 38 39 39 // XXX use the extended source model here for Xo, Yo? … … 41 41 42 42 int n = 0; 43 43 44 44 float Xo = 0.0; 45 45 float Yo = 0.0; … … 57 57 radius->data.F32[n] = hypot (ix - Xo, iy - Yo) ; 58 58 flux->data.F32[n] = source->pixels->data.F32[iy][ix]; 59 weight->data.F32[n] = source->weight->data.F32[iy][ix];59 variance->data.F32[n] = source->variance->data.F32[iy][ix]; 60 60 n++; 61 61 } 62 62 } 63 63 radius->n = n; 64 weight->n = n;64 variance->n = n; 65 65 flux->n = n; 66 66
Note:
See TracChangeset
for help on using the changeset viewer.
