Index: /trunk/ippconfig/recipes/ppMerge.config
===================================================================
--- /trunk/ippconfig/recipes/ppMerge.config	(revision 23470)
+++ /trunk/ippconfig/recipes/ppMerge.config	(revision 23471)
@@ -14,4 +14,5 @@
 FRINGE.XSMOOTH	S32	5		# Number of smoothing regions in x
 FRINGE.YSMOOTH	S32	11		# Number of smoothing regions in y
+CTE.MIN         F32	0.2		# regions lower than this in the CTE image are masked
 SHUTTER.SIZE	S32	128		# Size for shutter measurement regions
 MASK.SUSPECT	F32	5.0		# Threshold for suspect pixels (sigma)
@@ -94,4 +95,17 @@
 END
 
+# CTEMASK generation combines the images like a flat or bias (mean after outlier rejection),
+# but it then sets a mask based on the resulting data values (using CTE.MIN)
+PPMERGE_CTEMASK METADATA
+	REJ		F32	3.0		# Rejection threshold (sigma)
+	ITER		S32	2		# Number of rejection iterations
+	FRACHIGH	F32	0.0		# Fraction of high pixels to reject immediately
+	FRACLOW		F32	0.0		# Fraction of low pixels to reject immediately
+	VARIANCES	BOOL	FALSE		# Use image variances?
+	COMBINE		STR	CLIPPED		# Statistic to use for combination: 
+        CTE.MIN         F32	0.2		# regions lower than this in the CTE image are masked
+        MASK.SET.VALUE	STR	CTE		# set this bit in the output mask
+END
+
 # Shutter generation --- already included in default, above
 PPMERGE_SHUTTER	METADATA
