Index: trunk/ippScripts/scripts/detrend_apply_norm.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_apply_norm.pl	(revision 8853)
+++ trunk/ippScripts/scripts/detrend_apply_norm.pl	(revision 8856)
@@ -28,6 +28,4 @@
 my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files
 
-my $outName = $output . '.' . $classId . '.fit'; # Output file name
-
 # Run ppArith
 my $norms;
@@ -37,5 +35,5 @@
 	run(command => $command, verbose => 1);
     die "Unable to perform ppArith: $error_code\n" if not $success;
-    die "Can't find expected output file: $outName\n" if not -e $outName;
+    die "Can't find expected output file: $output\n" if not -e $output;
 }
 
@@ -44,5 +42,5 @@
 {
     my $command = "$dettool -addnormalizedimfile -det_id $detId -iteration $iter -class_id $classId ".
-	"-uri $outName"; # Command to run
+	"-uri $output"; # Command to run
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
 	run(command => $command, verbose => 1);
