Changeset 27819 for trunk/psphot/src/psphotRadialProfileByAngles.c
- Timestamp:
- May 2, 2010, 11:32:52 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotRadialProfileByAngles.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotRadialProfileByAngles.c
r25755 r27819 12 12 bool psphotRadialProfilesByAngles (pmSource *source, int Nsec, float Rmax) { 13 13 14 psAssert (source->extpars, "define extpars"); 15 14 16 // we want to have an even number of sectors so we can do 180 deg symmetrizing 15 17 Nsec = (Nsec % 2) ? Nsec + 1 : Nsec; 16 18 float dtheta = 2.0*M_PI / Nsec; 17 19 18 pmSourceRadialProfile *profile = source->extpars->profile; 20 if (!source->extpars->radFlux) { 21 source->extpars->radFlux = pmSourceRadialFluxAlloc(); 22 } 23 pmSourceRadialFlux *profile = source->extpars->radFlux; 19 24 psFree(profile->radii); 20 25 psFree(profile->fluxes); … … 24 29 profile->fluxes = psArrayAllocEmpty(Nsec); 25 30 profile->theta = psVectorAllocEmpty(Nsec, PS_TYPE_F32); 26 27 31 28 32 for (int i = 0; i < Nsec; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
