Index: /branches/czw_branch/20120906/ippconfig/recipes/filerules-mef.mdc
===================================================================
--- /branches/czw_branch/20120906/ippconfig/recipes/filerules-mef.mdc	(revision 34411)
+++ /branches/czw_branch/20120906/ippconfig/recipes/filerules-mef.mdc	(revision 34412)
@@ -106,4 +106,5 @@
 PSWARP.SKYCELL          INPUT    @FILES        CHIP       IMAGE
 PSWARP.ASTROM           INPUT    @FILES        CHIP       CMF
+PSWARP.BKGMODEL		  INPUT	   @FILES	 CHIP	    IMAGE
 
 ## files used by ppsub
@@ -263,4 +264,5 @@
 PSWARP.BIN2             OUTPUT {OUTPUT}.b2.fits                  IMAGE     COMP_IMG   FPA        TRUE      NONE
 PSWARP.CONFIG           OUTPUT {OUTPUT}.pswarp.mdc               TEXT      NONE       FPA        TRUE      NONE
+PSWARP.OUTPUT.BKGMODEL	OUTPUT {OUTPUT}.mdl.fits		      IMAGE	      NONE	 FPA	    TRUE      NONE
                                                                                      
 SKYCELL.STATS           OUTPUT {OUTPUT}.stats                    STATS     NONE       FPA        TRUE      NONE
Index: /branches/czw_branch/20120906/ippconfig/recipes/filerules-simple.mdc
===================================================================
--- /branches/czw_branch/20120906/ippconfig/recipes/filerules-simple.mdc	(revision 34411)
+++ /branches/czw_branch/20120906/ippconfig/recipes/filerules-simple.mdc	(revision 34412)
@@ -88,4 +88,5 @@
 PSWARP.SKYCELL            INPUT    @FILES        FPA        IMAGE     
 PSWARP.ASTROM             INPUT    @FILES        FPA        CMF
+PSWARP.BKGMODEL		  INPUT	   @FILES	 CHIP	    IMAGE
 
 ## files used by ppsub
@@ -240,4 +241,5 @@
 PSWARP.BIN2                  OUTPUT {OUTPUT}.b2.fits              IMAGE           NONE       FPA        TRUE      NONE
 PSWARP.CONFIG                OUTPUT {OUTPUT}.pswarp.mdc           TEXT            NONE       FPA        TRUE      NONE
+PSWARP.OUTPUT.BKGMODEL	     OUTPUT {OUTPUT}.mdl.fits		  IMAGE	      	  NONE	 FPA	    TRUE      NONE
                                                      
 SKYCELL.STATS                OUTPUT {OUTPUT}.stats                STATS           NONE       FPA        TRUE      NONE
Index: /branches/czw_branch/20120906/ippconfig/recipes/filerules-split.mdc
===================================================================
--- /branches/czw_branch/20120906/ippconfig/recipes/filerules-split.mdc	(revision 34411)
+++ /branches/czw_branch/20120906/ippconfig/recipes/filerules-split.mdc	(revision 34412)
@@ -108,4 +108,5 @@
 PSWARP.SKYCELL            INPUT    @FILES        FPA        IMAGE
 PSWARP.ASTROM             INPUT    @FILES        CHIP       CMF
+PSWARP.BKGMODEL		  INPUT	   @FILES	 CHIP	    IMAGE
                           
 ## files used by ppsub    
@@ -267,4 +268,5 @@
 PSWARP.CONFIG                OUTPUT {OUTPUT}.pswarp.mdc               TEXT            NONE       FPA        TRUE      NONE
 PSWARP.OUTPUT.UNCOMPRESSED   OUTPUT {OUTPUT}.fits		      IMAGE	      NONE	 FPA	    TRUE      NONE
+PSWARP.OUTPUT.BKGMODEL	     OUTPUT {OUTPUT}.mdl.fits		      IMAGE	      NONE	 FPA	    TRUE      NONE
                                                                                                    
 SKYCELL.STATS                OUTPUT {OUTPUT}.stats                    STATS           NONE       FPA        TRUE      NONE
Index: /branches/czw_branch/20120906/ippconfig/recipes/pswarp.config
===================================================================
--- /branches/czw_branch/20120906/ippconfig/recipes/pswarp.config	(revision 34411)
+++ /branches/czw_branch/20120906/ippconfig/recipes/pswarp.config	(revision 34412)
@@ -19,4 +19,7 @@
 MASKSTAT.ADVISORY   U32 0x080
 
+BACKGROUND.MODEL    BOOL   FALSE             # Construct a warped version of the chip stage background
+BKG.XGRID              S32    4               # These need to be tuned
+BKG.YGRID              S32    4
 
 # Default recipe for warping
