IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 22, 2010, 6:28:58 AM (16 years ago)
Author:
eugene
Message:

define concept of source parent; psf-matched apertures used the source children

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/psphot/src/psphotRadialApertures.c

    r30140 r30142  
    137137bool psphotRadialApertureSource (pmSource *source, psMetadata *recipe, float skynoise, psImageMaskType maskVal, const psVector *aperRadii, int entry) {
    138138
    139     psAssert(source->radialAper->data[entry] == NULL, "why is this already defined?");
     139    // if we are a child source, save the results to the parent source radial aperture array
     140    psArray *radialAperSet = source->radialAper;
     141    if (source->parent) {
     142        radialAperSet = source->parent->radialAper;
     143    }
     144
     145    psAssert(radialAperSet->data[entry] == NULL, "why is this already defined?");
    140146
    141147    pmSourceRadialApertures *radialAper = pmSourceRadialAperturesAlloc ();
    142     source->radialAper->data[entry] = radialAper;
     148    radialAperSet->data[entry] = radialAper;
    143149
    144150    // storage for the derived pixel values
Note: See TracChangeset for help on using the changeset viewer.