Index: trunk/ippScripts/scripts/detrend_resid.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_resid.pl	(revision 10742)
+++ trunk/ippScripts/scripts/detrend_resid.pl	(revision 11151)
@@ -94,5 +94,5 @@
 # Recipe to use in processing
 die "Unrecognised mode: $mode\n" if not defined RECIPES->{$mode};
-my $recipe = RECIPES->{$mode}->{$det_type};
+my $recipe = RECIPES->{$mode}->{lc($det_type)};
 die "Unrecognised detrend type: $det_type\n" if not defined $recipe;
 
@@ -118,5 +118,5 @@
     # Detrend to use in processing
     if (lc($mode) ne 'verify') {
-	my $detFlag = DETRENDS->{$det_type};
+	my $detFlag = DETRENDS->{lc($det_type)};
 	die "Unrecognised detrend type: $det_type\n" if not defined $detFlag;
 	$command .= "$detFlag $detrend";
