Index: trunk/ippScripts/scripts/detrend_stack.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_stack.pl	(revision 9337)
+++ trunk/ippScripts/scripts/detrend_stack.pl	(revision 9412)
@@ -61,8 +61,8 @@
 my $files;			# Array of files to be stacked
 {
-    my $command = "$dettool -processedimfile -det_id $det_id -class_id $class_id"; # Command to run
+    my $command = "$dettool -tostack -det_id $det_id -class_id $class_id"; # Command to run
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
 	run(command => $command, verbose => 1);
-    die "Unable to perform dettool -processedimfile: $error_code\n" if not $success;
+    die "Unable to perform dettool -tostack: $error_code\n" if not $success;
     my $metadata = $mdcParser->parse(join "", @$stdout_buf)
         or die "unable to parse metadata config doc";
