Index: trunk/ippScripts/scripts/phase0exp.pl
===================================================================
--- trunk/ippScripts/scripts/phase0exp.pl	(revision 8236)
+++ trunk/ippScripts/scripts/phase0exp.pl	(revision 8237)
@@ -23,4 +23,5 @@
 
 # These values should be constant for all components
+# The key is the name in the ppStats output; the value is the switch for "phase0 -updateexp"
 use constant CONSTANTS => {
 			   "FPA.FILTER"   => "-filter", # Filter used
@@ -35,4 +36,5 @@
 
 # These values may vary across components; we will take the average
+# The key is the name in the ppStats output; the value is the switch for "phase0 -updateexp"
 use constant VARIABLES => {
 			   "CELL.EXPOSURE" => "-exp_time", # Exposure time
@@ -100,4 +102,9 @@
     my $value = $values{$variable}->{value} / $values{$variable}->{num}; # Value of interest
     $command .= " $switch $value";
+}
+
+# Check if it's a detrend
+if ($values{TYPE}) {
+    $command .= " " . DETREND_FLAG;
 }
 
