Index: trunk/ippconfig/megacam/camera.config
===================================================================
--- trunk/ippconfig/megacam/camera.config	(revision 9208)
+++ trunk/ippconfig/megacam/camera.config	(revision 9503)
@@ -83,6 +83,7 @@
 END
 
+
 # Recipe options
-RECIPES         METADATA
+RECIPES		METADATA
 	# Recipes for ppImage
         PPIMAGE         STR     megacam/ppImage.config          # Default: all (normal) options on
@@ -99,11 +100,44 @@
 
 	# Recipes for ppMerge
+        PPMERGE         STR     ppMerge_template.config         # ppMerge recipe
 	PPMERGE_BIAS	STR	megacam/ppMerge_bias.config
+	PPMERGE_DARK	STR	megacam/ppMerge_dark.config
+	PPMERGE_FLAT	STR	megacam/ppMerge_flat.config
+
 	# Other recipes
-        PPMERGE         STR     ppMerge_template.config         # ppMerge recipe
         PSPHOT          STR     megacam/psphot.config           # psphot details
         PSASTRO         STR     megacam/psastro.config          # psastro details
 	PPSTATS		STR	megacam/ppStats.config		# ppStats recipe
 END
+
+
+# Rejection levels for detrend creation
+REJECTION	METADATA
+	TYPE	LIMITS	FILTER	EXPECTED	IMFILE.MEAN	IMFILE.STDEV	EXP.MEAN	EXP.STDEV	EXP.MEANSTDEV	ENSEMBLE.MEAN	ENSEMBLE.STDEV	ENSEMBLE.MEANSTDEV
+	FLAT	MULTI
+
+	BIAS	LIMITS	*	0		0		15		0		15		0		0		0		0
+	DARK	LIMITS	*	0		0		0		0		0		0		0		0		0
+	FLAT	LIMITS	*	0		0		0		0		0		0		0		0		0
+#	FLAT	LIMITS	u	0		0		0		0		0		0		0		0		0
+#	FLAT	LIMITS	g	0		0		0		0		0		0		0		0		0
+#	FLAT	LIMITS	r	0		0		0		0		0		0		0		0		0
+#	FLAT	LIMITS	i	0		0		0		0		0		0		0		0		0
+#	FLAT	LIMITS	z	0		0		0		0		0		0		0		0		0
+
+# FILTER is an additional qualifier, and may be "*" (or absent!), in which case it matches everything
+# EXPECTED is the expected mean value
+# IMFILE.MEAN is the maximum permitted mean value for an imfile
+# IMFILE.STDEV is the maximum permitted standard deviation for an imfile
+# EXP.MEAN is the maximum permitted mean value for an exposure
+# EXP.STDEV is the maximum permitted standard deviation for an exposure
+# EXP.MEANSTDEV is the maximum permitted mean standard deviation for an exposure
+# ENSEMBLE.MEAN is the maximum permitted mean for an ensemble of exposures
+# ENSEMBLE.STDEV is the maximum permitted standard deviation for an ensemble of exposures
+# ENSEMBLE.MEANSTDEV is the maximum permitted mean standard deviation for an ensemble of exposures
+# These values (all except FILTER) may be zero, in which case no clipping is applied.
+
+END
+		
 
 FILERULES METADATA
