Index: /trunk/ippconfig/cfh12k/psphot.config
===================================================================
--- /trunk/ippconfig/cfh12k/psphot.config	(revision 13035)
+++ /trunk/ippconfig/cfh12k/psphot.config	(revision 13036)
@@ -3,7 +3,7 @@
 SAVE.OUTPUT	BOOL 	TRUE
 SAVE.BACKMDL	BOOL 	TRUE
-SAVE.BACKGND	BOOL 	TRUE
+#SAVE.BACKGND	BOOL 	TRUE
 #SAVE.BACKSUB	BOOL 	TRUE
-#SAVE.RESID	BOOL 	TRUE
+SAVE.RESID	BOOL 	TRUE
 #SAVE.PSF	BOOL 	TRUE
 #LOAD.PSF	BOOL 	FALSE
@@ -42,2 +42,15 @@
 YMIN                F32   +10        	 # minimum valid y-coord
 YMAX                F32   -10        	 # maximum valid y-coord
+
+PSPHOT.FIXED.PSF METADATA
+  # PSF.TREND.MASK must be a 2D polynomial
+  # the specified values are ignored but define the active components of the polynomial
+  PSF.TREND.MASK  METADATA  
+     NORDER_X         S32       0                # number of x orders
+     NORDER_Y         S32       0                # number of y orders
+     VAL_X00_Y00      F64       1                # polynomial coefficient
+     NELEMENTS        S32       1                # number of unmasked components
+  END  # folder for 2D polynomial
+  
+  PSF_SN_LIM          F32  20              # minimum S/N for stars used for PSF model
+END
Index: /trunk/ippconfig/recipes/psphot.config
===================================================================
--- /trunk/ippconfig/recipes/psphot.config	(revision 13035)
+++ /trunk/ippconfig/recipes/psphot.config	(revision 13036)
@@ -90,4 +90,11 @@
 FULL_FIT_SN_LIM      F32  50.0
 
+PSF.RESIDUALS        BOOL TRUE
+PSF.RESIDUALS.XBIN   S32   1
+PSF.RESIDUALS.YBIN   S32   1
+PSF.RESIDUALS.NSIGMA F32   3.0	
+PSF.RESIDUALS.INTERPOLATION STR BILINEAR
+PSF.RESIDUALS.STATISTIC     STR ROBUST_MEDIAN
+
 # EXTended source model parameters
 EXT_MODEL            STR  PS_MODEL_PGAUSS
@@ -108,5 +115,5 @@
 # BREAK_POINT may be one of (PEAKS, MOMENTS, PSFMODEL, ENSEMBLE)
 BREAK_POINT           STR  NONE
-PEAKS_OUTPUT_FILE   STR  peaks.dat
+# PEAKS_OUTPUT_FILE   STR  peaks.dat
 # MOMENTS_OUTPUT_FILE STR  moments.dat
 # ANALYSIS_REGION     STR  [1000:1600,2800:3400]
@@ -126,5 +133,5 @@
 NOISE.SIZE          F32 2.0
 
-USE_FOOTPRINTS			BOOL	T	# use new pmFootprint peak packaging
+USE_FOOTPRINTS			BOOL	F	# use new pmFootprint peak packaging
 FOOTPRINT_NPIXMIN		S32	5	# Minimum size of a pmFootprint
 FOOTPRINT_NSIGMA_LIMIT		F32	20	# threshold for bright pmFootprint detection
@@ -132,2 +139,6 @@
 FOOTPRINT_CULL_NSIGMA_DELTA	F32	4	# Cull peaks that aren't nsigma above coll to neighbour
 FOOTPRINT_CULL_NSIGMA_MIN	F32	1	# Minimum height of colls in units of skyStdev
+
+# alternate PSPHOT-type recipes
+PSPHOT.FIXED.PSF METADATA
+END
