IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 2, 2010, 11:32:52 AM (16 years ago)
Author:
eugene
Message:

updates to psphotVisual mandated by kapa API changes; added psphotRadialBins; fixed up petrosian calculations (now correctly generate petRad, petMag, petR50, and petR90); updates to psphotPetrosianVisual to handle structure changes; option to use elliptical or circular profiles for radial flux and petrosians

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotRadialProfileByAngles.c

    r25755 r27819  
    1212bool psphotRadialProfilesByAngles (pmSource *source, int Nsec, float Rmax) {
    1313
     14    psAssert (source->extpars, "define extpars");
     15
    1416    // we want to have an even number of sectors so we can do 180 deg symmetrizing
    1517    Nsec = (Nsec % 2) ? Nsec + 1 : Nsec;
    1618    float dtheta = 2.0*M_PI / Nsec;
    1719
    18     pmSourceRadialProfile *profile = source->extpars->profile;
     20    if (!source->extpars->radFlux) {
     21        source->extpars->radFlux = pmSourceRadialFluxAlloc();
     22    }
     23    pmSourceRadialFlux *profile = source->extpars->radFlux;
    1924    psFree(profile->radii);
    2025    psFree(profile->fluxes);
     
    2429    profile->fluxes = psArrayAllocEmpty(Nsec);
    2530    profile->theta = psVectorAllocEmpty(Nsec, PS_TYPE_F32);
    26 
    2731
    2832    for (int i = 0; i < Nsec; i++) {
Note: See TracChangeset for help on using the changeset viewer.