Index: /trunk/psphot/src/psphot.h
===================================================================
--- /trunk/psphot/src/psphot.h	(revision 13347)
+++ /trunk/psphot/src/psphot.h	(revision 13348)
@@ -30,5 +30,6 @@
                                  const bool returnFootprints, const int pass);
 #include "pmFootprint.h"
-psErrorCode	psphotCullPeaks(const pmReadout *readout, const psMetadata *recipe, psArray *footprints);
+psErrorCode	psphotCullPeaks(const psImage *img, const psImage *weight,
+                                const psMetadata *recipe, psArray *footprints);
 psArray        *psphotSourceStats (pmReadout *readout, psMetadata *recipe, psArray *allpeaks);
 bool            psphotRoughClass (psArray *sources, psMetadata *recipe);
Index: /trunk/psphot/src/psphotFindPeaks.c
===================================================================
--- /trunk/psphot/src/psphotFindPeaks.c	(revision 13347)
+++ /trunk/psphot/src/psphotFindPeaks.c	(revision 13348)
@@ -171,7 +171,8 @@
  */
 psErrorCode
-psphotCullPeaks(const pmReadout *readout, 
+psphotCullPeaks(const psImage *image,	// the image wherein lives the footprint
+		const psImage *weight,	// corresponding variance image
 		const psMetadata *recipe,
-		psArray *footprints) { // array of pmFootprints
+		psArray *footprints) {	// array of pmFootprints
     bool status = false;
     float nsigma_delta = psMetadataLookupF32(&status, recipe, "FOOTPRINT_CULL_NSIGMA_DELTA");
@@ -185,5 +186,5 @@
     const float skyStdev = psMetadataLookupF32(NULL, recipe, "SKY_STDEV");
 
-    return pmFootprintArrayCullPeaks(readout->image, readout->weight, footprints,
+    return pmFootprintArrayCullPeaks(image, weight, footprints,
 				     nsigma_delta, nsigma_min*skyStdev);
 }
Index: /trunk/psphot/src/psphotReadout.c
===================================================================
--- /trunk/psphot/src/psphotReadout.c	(revision 13347)
+++ /trunk/psphot/src/psphotReadout.c	(revision 13348)
@@ -170,5 +170,5 @@
        psArray *newFootprints = psphotFindPeaks (readout, recipe, useFootprints, 2);
 
-       psphotCullPeaks(readout, recipe, newFootprints);
+       psphotCullPeaks(readout->image, readout->weight, recipe, newFootprints);
 
        newPeaks = pmFootprintArrayToPeaks(newFootprints);
