IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 1, 2013, 3:17:52 PM (13 years ago)
Author:
eugene
Message:

require at least a minimum subset of radial apertures; do not remove the SATSTAR flag if peak is below saturation (since we do not include the local sky in the test)

File:
1 edited

Legend:

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

    r34404 r35458  
    4747static float outerRadius = NAN;
    4848static float SN_LIM = NAN;
     49static int RADIAL_AP_MIN = 5;
    4950static psImageMaskType maskVal = 0;
    5051
     
    115116    // S/N limit to perform full non-linear fits
    116117    SN_LIM = psMetadataLookupF32 (&status, recipe, "RADIAL_APERTURES_SN_LIM");
     118
     119    // S/N limit to perform full non-linear fits
     120    RADIAL_AP_MIN = psMetadataLookupS32 (&status, recipe, "RADIAL.ANNULAR.BINS.MIN");
     121    if (!status) {
     122      RADIAL_AP_MIN = 5;
     123    }
    117124
    118125    // source analysis is done in S/N order (brightest first)
     
    310317
    311318    // find the largest aperture of interest (use only apertures with inner radii <=
    312     // source->skyRadius)
     319    // source->skyRadius, as long as i >= RADIAL_AP_MIN
    313320    int lastAp = aperRadii->n;
    314     for (int i = 0; i < aperRadii->n; i++) {
    315         if (aperRadii->data.F32[i] < source->skyRadius) continue;
     321    for (int i = RADIAL_AP_MIN; i < aperRadii->n; i++) {
     322        if (aperRadii->data.F32[i] < source->skyRadius) continue; // measure out to this radius
    316323        lastAp = i + 1;
    317324        break;
Note: See TracChangeset for help on using the changeset viewer.