Index: /branches/eam_branch_20080918/ippScripts/scripts/detrend_resid_imfile.pl
===================================================================
--- /branches/eam_branch_20080918/ippScripts/scripts/detrend_resid_imfile.pl	(revision 19615)
+++ /branches/eam_branch_20080918/ippScripts/scripts/detrend_resid_imfile.pl	(revision 19616)
@@ -64,5 +64,5 @@
     defined $mode       and
     defined $outroot    and
-    (defined $detrend or lc($mode) eq 'verify');
+    defined $detrend;
 
 $ipprc->define_camera($camera);
@@ -73,4 +73,5 @@
 
 # Recipes to use as a function of detrend type and mode
+# XXX probably can drop the distinct 'verify' recipes
 $reduction = 'DETREND' unless defined $reduction;
 my $recipe;                     # Name of recipe to use
@@ -173,9 +174,7 @@
 
     # Detrend to use in processing
-    if (lc($mode) ne 'verify') {
-        my $detFlag = DETRENDS->{lc($det_type)};
-        &my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_PROG_ERROR) unless defined $detFlag;
-        $command .= " $detFlag $detrend";
-    }
+    my $detFlag = DETRENDS->{lc($det_type)};
+    &my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_PROG_ERROR) unless defined $detFlag;
+    $command .= " $detFlag $detrend";
 
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
