IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 14, 2006, 6:33:17 AM (20 years ago)
Author:
eugene
Message:

mods to change from threshold above sky to S/N thresholds

File:
1 edited

Legend:

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

    r6379 r6427  
    2525
    2626        // allocate image, weight, mask arrays for each peak (square of radius OUTER)
    27         // XXX EAM : this has 12 leaks (v.5)
    2827        psphotDefinePixels (source, readout, source->peak->x, source->peak->y, OUTER);
    2928
     
    3130        // XXX EAM : this should use ROBUST not SAMPLE median, but it is broken
    3231        status = pmSourceLocalSky (source, PS_STAT_SAMPLE_MEDIAN, INNER);
     32        if (!status) {
     33          psFree (source);
     34          continue;
     35        }
     36
     37        // measure the local sky variance (needed if noise is not sqrt(signal))
     38        // XXX EAM : this should use ROBUST not SAMPLE median, but it is broken
     39        status = pmSourceLocalSkyVariance (source, PS_STAT_SAMPLE_MEDIAN, INNER);
    3340        if (!status) {
    3441          psFree (source);
Note: See TracChangeset for help on using the changeset viewer.