IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 29, 2011, 2:59:09 AM (15 years ago)
Author:
eugene
Message:

find the footprint saddles; iterative search for kron (in masked); add iterative search for kron (downweighting); add footprint based mask

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110710/psphot/src/psphotModelTestReadout.c

    r32154 r32205  
    8484
    8585    // define the source of interest
    86     float xObj     = psMetadataLookupF32 (&status, recipe, "TEST_FIT_X");
     86   float xObj     = psMetadataLookupF32 (&status, recipe, "TEST_FIT_X");
    8787    float yObj     = psMetadataLookupF32 (&status, recipe, "TEST_FIT_Y");
    8888    if (!isfinite(xObj) || !isfinite(yObj)) psAbort ("object position is not defined");
     
    102102    status = pmSourceLocalSky (source, PS_STAT_SAMPLE_MEDIAN, INNER, maskVal, markVal);
    103103    if (!status) psAbort("pmSourceLocalSky error");
     104
     105    {
     106        // XXX I want to test an iterative aperture for brighter sources
     107        float radius = mRADIUS;
     108        for (int i = 0; i < 10; i++) {
     109
     110            // get the source moments
     111            status = pmSourceMoments (source, radius, 0.0, 0.0, MIN_KRON_RADIUS, maskVal);
     112            if (!status) psAbort("psSourceMoments error");
     113
     114            float oldRadius = radius;
     115            radius = source->moments->Mrf * RADIUS;
     116           
     117            fprintf (stderr, "%d %f  %f  %f\n", i, oldRadius, radius, source->moments->Mrf);
     118        }
     119        exit (0);
     120    }
    104121
    105122    // get the source moments
Note: See TracChangeset for help on using the changeset viewer.