IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 18, 2010, 4:11:53 PM (16 years ago)
Author:
eugene
Message:

merge changes from branches/eam_branches/psphot,psModules.20100506 (finish basic psphotStack)

Location:
trunk/psModules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules

  • trunk/psModules/src/objects/pmSourceExtendedPars.c

    r27818 r28013  
    6565}
    6666
     67// pmSourceRadialApertures carries the raw radial flux information, including angular bins
     68static void pmSourceRadialAperturesFree(pmSourceRadialApertures *radial)
     69{
     70    if (!radial) return;
     71    psFree(radial->flux);
     72    psFree(radial->fluxErr);
     73    psFree(radial->fill);
     74}
     75
     76pmSourceRadialApertures *pmSourceRadialAperturesAlloc()
     77{
     78    pmSourceRadialApertures *radial = (pmSourceRadialApertures *)psAlloc(sizeof(pmSourceRadialApertures));
     79    psMemSetDeallocator(radial, (psFreeFunc) pmSourceRadialAperturesFree);
     80
     81    radial->flux = NULL;
     82    radial->fluxErr = NULL;
     83    radial->fill = NULL;
     84    return radial;
     85}
     86
     87bool psMemCheckSourceRadialApertures(psPtr ptr)
     88{
     89    PS_ASSERT_PTR(ptr, false);
     90    return ( psMemGetDeallocator(ptr) == (psFreeFunc) pmSourceRadialAperturesFree);
     91}
     92
    6793// pmSourceEllipticalFlux carries the elliptical renormalized radial flux info
    6894static void pmSourceEllipticalFluxFree(pmSourceEllipticalFlux *flux)
Note: See TracChangeset for help on using the changeset viewer.