IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 11, 2010, 5:39:56 PM (16 years ago)
Author:
eugene
Message:

adding new structure and IO function to support simple circular radial apertures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/psModules.20100506/src/objects/pmSourceExtendedPars.c

    r27818 r27924  
    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->fill);
     73}
     74
     75pmSourceRadialApertures *pmSourceRadialAperturesAlloc()
     76{
     77    pmSourceRadialApertures *radial = (pmSourceRadialApertures *)psAlloc(sizeof(pmSourceRadialApertures));
     78    psMemSetDeallocator(radial, (psFreeFunc) pmSourceRadialAperturesFree);
     79
     80    radial->flux = NULL;
     81    radial->fill = NULL;
     82    return radial;
     83}
     84
     85bool psMemCheckSourceRadialApertures(psPtr ptr)
     86{
     87    PS_ASSERT_PTR(ptr, false);
     88    return ( psMemGetDeallocator(ptr) == (psFreeFunc) pmSourceRadialAperturesFree);
     89}
     90
    6791// pmSourceEllipticalFlux carries the elliptical renormalized radial flux info
    6892static void pmSourceEllipticalFluxFree(pmSourceEllipticalFlux *flux)
Note: See TracChangeset for help on using the changeset viewer.