Index: trunk/ippScripts/scripts/detrend_stack.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_stack.pl	(revision 19942)
+++ trunk/ippScripts/scripts/detrend_stack.pl	(revision 21371)
@@ -155,5 +155,5 @@
     my $image = $file->{uri};   # Image name
     my $mask = $ipprc->filename( "PPIMAGE.OUTPUT.MASK", $file->{path_base}, $class_id ); # Mask name
-    my $weight = $ipprc->filename( "PPIMAGE.OUTPUT.WEIGHT", $file->{path_base}, $class_id ); # Weight name
+    my $weight = $ipprc->filename( "PPIMAGE.OUTPUT.VARIANCE", $file->{path_base}, $class_id ); # Weight name
 
     &my_die("Image $image does not exist", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $image );
@@ -164,5 +164,5 @@
     }
     if ($ipprc->file_exists( $weight )) {
-        print $listFile "\tWEIGHT\tSTR\t" . $weight . "\n";
+        print $listFile "\tVARIANCE\tSTR\t" . $weight . "\n";
     }
 
