Changeset 28003 for branches/pap/psphot/src/psphotRadialProfileByAngles.c
- Timestamp:
- May 18, 2010, 12:49:05 PM (16 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psphot/src/psphotRadialProfileByAngles.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/psphot/src/psphotRadialProfileByAngles.c
r25755 r28003 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.
