Index: /trunk/ippconfig/isp/camera.config
===================================================================
--- /trunk/ippconfig/isp/camera.config	(revision 9502)
+++ /trunk/ippconfig/isp/camera.config	(revision 9503)
@@ -48,4 +48,34 @@
 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
    PSASTRO.INPUT      STR PSASTRO.INPUT.CMP
@@ -59,8 +89,8 @@
    PPARITH.INPUT      INPUT    none.fits                      NONE          NONE         NONE         IMAGE     FPA
 
-   PPIMAGE.BIAS       INPUT    /data/alala/eugene/swtests/pantasks/isp/bias.fits NONE          NONE         NONE         IMAGE     CHIP       
-   PPIMAGE.DARK       INPUT    /data/alala/eugene/swtests/pantasks/isp/dark.fits NONE          NONE         NONE         IMAGE     CHIP       
-   PPIMAGE.SHUTTER    INPUT    /data/alala/price/isp/shutter/ISP.shutter.3.0.isp.fits NONE    NONE         NONE         IMAGE     CHIP
-   PPIMAGE.FLAT       INPUT    /data/alala/price/isp/flat/ISP.flat.4.0.isp.fits NONE          NONE         NONE         IMAGE     CHIP       
+   PPIMAGE.BIAS       INPUT    /data/alala/price/isp/bias/ISP.bias.norm.1.0.isp.fits NONE          NONE         NONE         IMAGE     CHIP       
+   PPIMAGE.DARK       INPUT    /data/alala/price/isp/dark/ISP.dark.norm.2.0.isp.fits NONE          NONE         NONE         IMAGE     CHIP       
+#   PPIMAGE.SHUTTER    INPUT    /data/alala/price/isp/shutter/ISP.shutter.3.0.isp.fits NONE    NONE         NONE         IMAGE     CHIP
+   PPIMAGE.FLAT       INPUT    /data/alala/price/isp/flat/ISP.flat.norm.3.0.isp.fits NONE          NONE         NONE         IMAGE     CHIP       
    PPIMAGE.MASK       INPUT    mask.fits                      NONE          NONE         NONE         IMAGE     CHIP       
 
Index: /trunk/ippconfig/mcshort/camera.config
===================================================================
--- /trunk/ippconfig/mcshort/camera.config	(revision 9502)
+++ /trunk/ippconfig/mcshort/camera.config	(revision 9503)
@@ -110,4 +110,34 @@
 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
    ### Redirections
Index: /trunk/ippconfig/megacam/camera.config
===================================================================
--- /trunk/ippconfig/megacam/camera.config	(revision 9502)
+++ /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
