IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33838


Ignore:
Timestamp:
May 1, 2012, 11:43:50 AM (14 years ago)
Author:
bills
Message:

Limit moments->Mrf minimum value minKronRadius.
For sources with Moments->SN < 10 limit the maximum value to 'radius'
which is passed in as an argument taken from the value of PSF_MOMENTS_RADIUS in
readout->analysis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceMoments.c

    r32347 r33838  
    319319    }
    320320
    321     source->moments->Mrf = RF/RS;
    322321    source->moments->Mrh = RH/RS;
    323322
    324     // if Mrf (first radial moment) is very small, we are getting into low-significance
     323    // if Mrf = RF/RS (first radial moment) is very small, we are getting into low-significance
    325324    // territory.  saturate at minKronRadius.  conversely, if Mrf is >> radius for faint
    326325    // sources, we are clearly making an error.  saturate at radius.
    327     float kronRefRadius = MAX(minKronRadius, source->moments->Mrf);
     326    float kronRefRadius = MAX(minKronRadius, RF/RS);
    328327    if (source->moments->SN < 10) {
    329328        kronRefRadius = MIN(radius, kronRefRadius);
    330329    }
     330    source->moments->Mrf = kronRefRadius;
    331331
    332332    // *** now calculate the kron flux values using the 1st radial moment
Note: See TracChangeset for help on using the changeset viewer.