Index: /trunk/ippScripts/scripts/detrend_norm_apply.pl
===================================================================
--- /trunk/ippScripts/scripts/detrend_norm_apply.pl	(revision 23463)
+++ /trunk/ippScripts/scripts/detrend_norm_apply.pl	(revision 23464)
@@ -89,4 +89,5 @@
     'darkmask'         => 'mask',
     'flatmask'         => 'mask',
+    'ctemask'          => 'mask',
     };
 
Index: /trunk/ippScripts/scripts/detrend_norm_calc.pl
===================================================================
--- /trunk/ippScripts/scripts/detrend_norm_calc.pl	(revision 23463)
+++ /trunk/ippScripts/scripts/detrend_norm_calc.pl	(revision 23464)
@@ -81,4 +81,5 @@
     'darkmask'         => 0,
     'flatmask'         => 0,
+    'ctemask'          => 0,
     };
 
Index: /trunk/ippScripts/scripts/detrend_process_imfile.pl
===================================================================
--- /trunk/ippScripts/scripts/detrend_process_imfile.pl	(revision 23463)
+++ /trunk/ippScripts/scripts/detrend_process_imfile.pl	(revision 23464)
@@ -79,4 +79,5 @@
                   'DARK'             => undef,
                   'DARK_PREMASK'     => undef,
+                  'CTEMASK'          => undef,
                   'SHUTTER'          => 'PPIMAGE.OUTPUT.DETREND',
                   'FLAT_PREMASK'     => 'PPIMAGE.OUTPUT.DETREND',
Index: /trunk/ippScripts/scripts/detrend_resid_imfile.pl
===================================================================
--- /trunk/ippScripts/scripts/detrend_resid_imfile.pl	(revision 23463)
+++ /trunk/ippScripts/scripts/detrend_resid_imfile.pl	(revision 23464)
@@ -114,4 +114,5 @@
     'darkmask'         => '-mask',      # Specify the mask frame
     'flatmask'         => '-mask',      # Specify the mask frame
+    'ctemask'          => '-mask',      # Specify the mask frame
 };
 
@@ -119,4 +120,5 @@
 my $FILERULES = { 'FLATMASK'         => 'PPIMAGE.OUTPUT.RESID',
                   'DARKMASK'         => 'PPIMAGE.OUTPUT.RESID',
+                  'CTEMASK'          => 'PPIMAGE.OUTPUT.RESID',
                   'MASK'             => 'PPIMAGE.OUTPUT.RESID',
                   'BIAS'             => 'PPIMAGE.OUTPUT.RESID',
Index: /trunk/ippScripts/scripts/detrend_stack.pl
===================================================================
--- /trunk/ippScripts/scripts/detrend_stack.pl	(revision 23463)
+++ /trunk/ippScripts/scripts/detrend_stack.pl	(revision 23464)
@@ -75,4 +75,5 @@
 my $FILERULES = { 'FLATMASK'         => 'PPMERGE.OUTPUT.MASK',
                   'DARKMASK'         => 'PPMERGE.OUTPUT.MASK',
+                  'CTEMASK'          => 'PPMERGE.OUTPUT.MASK',
                   'MASK'             => 'PPMERGE.OUTPUT.MASK',
                   'BIAS'             => 'PPMERGE.OUTPUT.BIAS',
@@ -97,4 +98,5 @@
 my $STATRECIPES = {'FLATMASK'         => 'DETSTATS',
                    'DARKMASK'         => 'DETSTATS',
+                   'CTEMASK'          => 'DETSTATS',
                    'MASK'             => 'DETSTATS',
                    'BIAS'             => 'DETSTATS',
