Index: trunk/ippScripts/scripts/detrend_resid.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_resid.pl	(revision 18087)
+++ trunk/ippScripts/scripts/detrend_resid.pl	(revision 18107)
@@ -137,5 +137,8 @@
 $ipprc->outroot_prepare($outroot);
 
-my $outputName  = $ipprc->filename("PPIMAGE.OUTPUT", $outroot, $class_id);
+# XXX use PPIMAGE.OUTPUT.RESID for output file (compressed, with pos & neg range allowed)
+# my $outputName  = $ipprc->filename("PPIMAGE.OUTPUT", $outroot, $class_id);
+
+my $outputName  = $ipprc->filename("PPIMAGE.OUTPUT.RESID", $outroot, $class_id);
 my $bin1Name    = $ipprc->filename("PPIMAGE.BIN1",   $outroot, $class_id);
 my $bin2Name    = $ipprc->filename("PPIMAGE.BIN2",   $outroot, $class_id);
@@ -148,4 +151,5 @@
     $command .= " -recipe PPIMAGE $recipe";
     $command .= " -recipe PPSTATS RESIDUAL";
+    $command .= " -F PPIMAGE.OUTPUT PPIMAGE.OUTPUT.RESID";
     $command .= " -stats $outputStats";
     $command .= " -tracedest $traceDest -log $logDest";
