IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 29, 2006, 10:50:09 AM (20 years ago)
Author:
eugene
Message:

added breakpoints, better exit handling on psphotReadout

File:
1 edited

Legend:

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

    r6950 r7758  
    1414    float OUTER    = psMetadataLookupF32 (&status, recipe, "SKY_OUTER_RADIUS");
    1515    float RADIUS   = psMetadataLookupF32 (&status, recipe, "PSF_MOMENTS_RADIUS");
     16    char *breakPt  = psMetadataLookupStr (&status, recipe, "BREAK_POINT");
    1617
    1718    sources = psArrayAlloc (peaks->n);
    18     // DROP sources->n = 0;
    1919
    2020    for (int i = 0; i < peaks->n; i++) {
     
    2626        // allocate image, weight, mask arrays for each peak (square of radius OUTER)
    2727        pmSourceDefinePixels (source, readout, source->peak->x, source->peak->y, OUTER);
     28        if (!strcasecmp (breakPt, "PEAKS")) continue;
    2829
    2930        // XXX skip faint sources?
     
    7273    psLogMsg ("psphot", 3, "%d moments: %f sec\n", sources->n, psTimerMark ("psphot"));
    7374
    74     char *breakPt = psMetadataLookupStr (&status, recipe, "BREAK_POINT");
    75     if (!strcasecmp (breakPt, "STATS")) exit (0);
    76 
    7775    return (sources);
    7876}
Note: See TracChangeset for help on using the changeset viewer.