IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 9, 2010, 6:01:15 PM (16 years ago)
Author:
eugene
Message:

psphotStack now correctly convolves the input images to match target PSF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/psphot.20100506/src/psphotStackMatchPSFsUtils.c

    r27884 r27888  
    4545}
    4646
     47# define SN_MIN 50.0
    4748psArray *stackSourcesFilter(psArray *sources, // Source list to filter
    4849                            int exclusion // Exclusion zone, pixels
     
    6263            continue;
    6364        }
     65        if (!source->peak) continue;
     66        if (source->peak->SN < SN_MIN) continue;
    6467        coordsFromSource(&x->data.F32[numGood], &y->data.F32[numGood], source);
    6568        numGood++;
     
    7780            continue;
    7881        }
     82        if (!source->peak) continue;
     83        if (source->peak->SN < SN_MIN) continue;
    7984        float xSource, ySource;         // Coordinates of source
    8085        coordsFromSource(&xSource, &ySource, source);
     
    325330
    326331    // These values are specified specifically for stacking
    327     const char *stampsName = psMetadataLookupStr(NULL, config->arguments, "STAMPS");// Stamps filename
     332    const char *stampsName = psMetadataLookupStr(&mdok, config->arguments, "STAMPS");// Stamps filename
    328333
    329334    psVector *widthsCopy = NULL;
Note: See TracChangeset for help on using the changeset viewer.