IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2009, 5:03:33 PM (17 years ago)
Author:
Paul Price
Message:

Merging pap_branch_20090128. Resolved a small number of conflicts. Compiles, but not tested in detail.

File:
1 edited

Legend:

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

    r21183 r21366  
    1111    flux->data.F32[A] = flux->data.F32[B]; \
    1212    flux->data.F32[B] = tmp; \
    13     tmp = weight->data.F32[A]; \
    14     weight->data.F32[A] = weight->data.F32[B]; \
    15     weight->data.F32[B] = tmp; \
     13    tmp = variance->data.F32[A]; \
     14    variance->data.F32[A] = variance->data.F32[B]; \
     15    variance->data.F32[B] = tmp; \
    1616  } \
    1717}
     
    3131    source->extpars->profile->radius = psVectorAllocEmpty (nPts, PS_TYPE_F32);
    3232    source->extpars->profile->flux   = psVectorAllocEmpty (nPts, PS_TYPE_F32);
    33     source->extpars->profile->weight = psVectorAllocEmpty (nPts, PS_TYPE_F32);
     33    source->extpars->profile->variance = psVectorAllocEmpty (nPts, PS_TYPE_F32);
    3434
    3535    psVector *radius = source->extpars->profile->radius;
    3636    psVector *flux   = source->extpars->profile->flux;
    37     psVector *weight = source->extpars->profile->weight;
     37    psVector *variance = source->extpars->profile->variance;
    3838
    3939    // XXX use the extended source model here for Xo, Yo?
     
    4141
    4242    int n = 0;
    43    
     43
    4444    float Xo = 0.0;
    4545    float Yo = 0.0;
     
    5757            radius->data.F32[n] = hypot (ix - Xo, iy - Yo) ;
    5858            flux->data.F32[n]   = source->pixels->data.F32[iy][ix];
    59             weight->data.F32[n] = source->weight->data.F32[iy][ix];
     59            variance->data.F32[n] = source->variance->data.F32[iy][ix];
    6060            n++;
    6161        }
    6262    }
    6363    radius->n = n;
    64     weight->n = n;
     64    variance->n = n;
    6565    flux->n = n;
    6666
Note: See TracChangeset for help on using the changeset viewer.