- Timestamp:
- Sep 19, 2009, 8:49:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psphot/src/psphotEllipticalProfile.c
r25433 r25452 1 1 # include "psphotInternal.h" 2 2 3 bool psphotEllipticalProfile (pmSource *source , pmPetrosian *petrosian) {3 bool psphotEllipticalProfile (pmSource *source) { 4 4 5 petrosian->radiusElliptical = psVectorAllocEmpty(100, PS_TYPE_F32); 6 petrosian->fluxElliptical = psVectorAllocEmpty(100, PS_TYPE_F32); 5 pmSourceRadialProfile *profile = source->extpars->profile; 7 6 8 psVector *radius = petrosian->radiusElliptical; 9 psVector *flux = petrosian->fluxElliptical; 7 profile->radiusElliptical = psVectorAllocEmpty(100, PS_TYPE_F32); 8 profile->fluxElliptical = psVectorAllocEmpty(100, PS_TYPE_F32); 9 10 psVector *radius = profile->radiusElliptical; 11 psVector *flux = profile->fluxElliptical; 10 12 11 13 // the psEllipse functions use z = 0.5(x/Sxx)^2 + 0.5(y/Syy)^2 + x y Sxy … … 20 22 psEllipseAxes axes; 21 23 axes.major = M_SQRT1_2; 22 axes.minor = M_SQRT1_2 * (p etrosian->axes.minor / petrosian->axes.major);24 axes.minor = M_SQRT1_2 * (profile->axes.minor / profile->axes.major); 23 25 24 26 // axes.major = 1.0; 25 // axes.minor = p etrosian->axes.minor / petrosian->axes.major;27 // axes.minor = profile->axes.minor / profile->axes.major; 26 28 27 axes.theta = p etrosian->axes.theta;29 axes.theta = profile->axes.theta; 28 30 psEllipseShape shape = psEllipseAxesToShape (axes); 29 31 … … 56 58 // psVector *radiusRaw = psVectorAllocEmpty(100, PS_TYPE_F32); 57 59 // psVector *fluxRaw = psVectorAllocEmpty(100, PS_TYPE_F32); 58 // for (int i = 0; i < p etrosian->radii->n; i++) {59 // psVector *r = p etrosian->radii->data[i];60 // psVector *f = p etrosian->fluxes->data[i];60 // for (int i = 0; i < profile->radii->n; i++) { 61 // psVector *r = profile->radii->data[i]; 62 // psVector *f = profile->fluxes->data[i]; 61 63 // for (int j = 0; j < r->n; j++) { 62 64 // psVectorAppend(radiusRaw, r->data.F32[j]);
Note:
See TracChangeset
for help on using the changeset viewer.
