Index: /branches/eam_branches/ipp-20230313/ippconfig/recipes/filerules-mef.mdc
===================================================================
--- /branches/eam_branches/ipp-20230313/ippconfig/recipes/filerules-mef.mdc	(revision 42560)
+++ /branches/eam_branches/ipp-20230313/ippconfig/recipes/filerules-mef.mdc	(revision 42561)
@@ -382,5 +382,6 @@
 PPSTACK.OUTPUT.JPEG2    OUTPUT {OUTPUT}.b2.jpg                   JPEG      NONE       FPA        TRUE      NONE
 PPSTACK.OUTPUT.BKGMODEL OUTPUT {OUTPUT}.mdl.fits		 IMAGE	   NONE	      FPA	 TRUE      NONE
-PPSTACK.OUTPUT.BKGREST  OUTPUT {OUTPUT}.bkgrest.fits		 IMAGE	   	  NONE	     FPA	TRUE      NONE
+PPSTACK.OUTPUT.BKGREST  OUTPUT {OUTPUT}.bkgrest.fits		 IMAGE     NONE	      FPA	 TRUE      NONE
+PPSTACK.OUTPUT.SOURCES  OUTPUT {OUTPUT}.cmf                      CMF       NONE       FPA        TRUE      NONE
 PPSTACK.CONFIG          OUTPUT {OUTPUT}.ppStack.mdc              TEXT      NONE       FPA        TRUE      NONE
                                                                                      
Index: /branches/eam_branches/ipp-20230313/ippconfig/recipes/filerules-simple.mdc
===================================================================
--- /branches/eam_branches/ipp-20230313/ippconfig/recipes/filerules-simple.mdc	(revision 42560)
+++ /branches/eam_branches/ipp-20230313/ippconfig/recipes/filerules-simple.mdc	(revision 42561)
@@ -349,5 +349,4 @@
 PPSTACK.OUTPUT.EXPNUM        OUTPUT {OUTPUT}.num.fits             MASK            EXPNUM     FPA        TRUE      NONE
 PPSTACK.OUTPUT.EXPWT         OUTPUT {OUTPUT}.expwt.fits           VARIANCE        EXP        FPA        TRUE      NONE
-
 PPSTACK.UNCONV.COMP          OUTPUT {OUTPUT}.unconv.fits          IMAGE           COMP_IMG   FPA        TRUE      NONE
 PPSTACK.UNCONV.RAW           OUTPUT {OUTPUT}.unconv.fits          IMAGE           NONE       FPA        TRUE      NONE
@@ -363,4 +362,5 @@
 PPSTACK.OUTPUT.BKGMODEL      OUTPUT {OUTPUT}.mdl.fits		  IMAGE	   	  NONE	     FPA	TRUE      NONE
 PPSTACK.OUTPUT.BKGREST       OUTPUT {OUTPUT}.bkgrest.fits	  IMAGE	   	  NONE       FPA	TRUE      NONE
+PPSTACK.OUTPUT.SOURCES       OUTPUT {OUTPUT}.cmf                  CMF             NONE       FPA        TRUE      NONE
 PPSTACK.CONFIG               OUTPUT {OUTPUT}.ppStack.mdc          TEXT            NONE       FPA        TRUE      NONE
                                              
Index: /branches/eam_branches/ipp-20230313/ippconfig/recipes/filerules-split.mdc
===================================================================
--- /branches/eam_branches/ipp-20230313/ippconfig/recipes/filerules-split.mdc	(revision 42560)
+++ /branches/eam_branches/ipp-20230313/ippconfig/recipes/filerules-split.mdc	(revision 42561)
@@ -356,5 +356,4 @@
 PPSTACK.OUTPUT.VARIANCE.COMP OUTPUT {OUTPUT}.wt.fits                  VARIANCE        COMP_WT    FPA        TRUE      NONE
 PPSTACK.OUTPUT.VARIANCE.NOCOMP OUTPUT {OUTPUT}.wt.fits                VARIANCE        NONE       FPA        TRUE      NONE
-
 PPSTACK.OUTPUT.EXP           OUTPUT {OUTPUT}.exp.fits                 IMAGE           EXP        FPA        TRUE      NONE
 PPSTACK.OUTPUT.EXP.NOCOMP    OUTPUT {OUTPUT}.exp.fits                 IMAGE           NONE       FPA        TRUE      NONE
@@ -379,4 +378,5 @@
 PPSTACK.OUTPUT.BKGMODEL      OUTPUT {OUTPUT}.mdl.fits		      IMAGE	      NONE	 FPA	    TRUE      NONE
 PPSTACK.OUTPUT.BKGREST       OUTPUT {OUTPUT}.bkgrest.fits	      IMAGE	      NONE	 FPA	    TRUE      NONE
+PPSTACK.OUTPUT.SOURCES       OUTPUT {OUTPUT}.cmf                      CMF             NONE       FPA        TRUE      NONE
 PPSTACK.CONFIG               OUTPUT {OUTPUT}.ppStack.mdc              TEXT            NONE       FPA        TRUE      NONE
 
Index: /branches/eam_branches/ipp-20230313/ippconfig/recipes/ppStack.config
===================================================================
--- /branches/eam_branches/ipp-20230313/ippconfig/recipes/ppStack.config	(revision 42560)
+++ /branches/eam_branches/ipp-20230313/ippconfig/recipes/ppStack.config	(revision 42561)
@@ -240,7 +240,45 @@
 
 TEST1 METADATA
-  PSF.AUTOSIZE	  BOOL	FALSE		# Determine output PSF size from input PSFs?
-  PSF.OUTPUT.FWHM F32	6.5		# Target size for output PSF (if not auto-sized)
-  PSF.MODEL	  STR	PS_MODEL_PS1_V1	# Model for PSF generation
+  CONVOLVE          BOOL  FALSE           # Convolve images when stacking?
+  MATCH.ZERO.POINTS BOOL  TRUE            # Convolve images when stacking?
+  
+  COMBINE.ITER    F32     0.0             # Number of rejection iterations per input
+  COMBINE.REJ     F32    10.0             # Rejection threshold in combination (sigma)
+  COMBINE.SYS     F32     0.1             # Relative systematic error in combination
+  COMBINE.DISCARD F32     0.0             # Discard fraction for Olympic weighted mean
+  
+  COMBINE.PERCENT         BOOL  TRUE      # Use a single percentile clipping?
+  COMBINE.REJECT.FRACTION F32   0.0       # fraction of outliers to reject in percentile clipping
+                                          # Note this is the total both above and below the median
+  
+  SKIP.MISSING.INPUTS BOOL FALSE          # If some input warp images are missing, make the stack anyway
+  
+  # we are in some danger of inconsistency in the definition of a 'bad' vs a 'suspect' pixel
+  # these distinctions are also defined in psModules/src/config/pmConfigMask.c
+  
+  POOR.FRACTION   F32     0.25            # Maximum fraction of bad variance for poor pixels
+  THRESHOLD.MASK  F32     0.5             # Threshold for mask deconvolution (0..1)
+  DECONV.LIMIT    F32     3.0             # Deconvolution fraction for rejecting entire image
+  IMAGE.REJ       F32     0.1             # Rejected pixel fraction threshold for rejecting entire image
+  MATCH.REJ       F32     3.0             # Rejection threshold for chi^2 values from matching
+  ROWS            S32     64              # Number of rows to read at once
+  VARIANCE        BOOL    TRUE            # Use variance in rejection?
+  SAFE            BOOL    TRUE            # Play safe when combining small number of values?
+  WEIGHTS         BOOL    TRUE            # Use 1/noise^2 weighting?
+  BIN1            S32     4               # Binning factor for first level
+  BIN2            S32     4               # Binning factor for second level
+  PHOTOMETRY      BOOL    TRUE            # Do basic photometry?
+  SKIP.BG.SUB     BOOL    TRUE            # Bypass background subtraction?
+  TARGET.FRAC     F32     0.1             # Minimum flux fraction for target PSF
+  TARGET.MINMAG   F32     3.0             # Minimum magnitude difference to tolerate in stamp
+  NMINPIX         S32     1               # Minimum input per pixel 
+  BSCALEOFFSET    BOOL    FALSE           # HACK for removing offset from input warps because of compression (0.5*BSCALE)
+  
+  BACKGROUND.MODEL    BOOL   FALSE        # Construct a stacked version of the warp stage background
+  
+  RENORM          BOOL    TRUE            # Renormalise weight maps?
+  RENORM.NUM      S32     100000          # Number of samples for renormalisation
+  RENORM.MIN      F32     NAN             # Minimum value for renormlisation
+  RENORM.MAX      F32     NAN             # Maximum value for renormalisation
 END
 
Index: /branches/eam_branches/ipp-20230313/ippconfig/recipes/reductionClasses.mdc
===================================================================
--- /branches/eam_branches/ipp-20230313/ippconfig/recipes/reductionClasses.mdc	(revision 42560)
+++ /branches/eam_branches/ipp-20230313/ippconfig/recipes/reductionClasses.mdc	(revision 42561)
@@ -186,4 +186,5 @@
         FULLFORCE_PSPHOT  STR   FULLFORCE_WARP
         FPCAMERA          STR   DEFAULT_RECIPE
+	XCSTACK_PPSTACK	  STR	  TEST1
 END
 
