Index: trunk/ippScripts/scripts/detrend_process_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_process_imfile.pl	(revision 13946)
+++ trunk/ippScripts/scripts/detrend_process_imfile.pl	(revision 13989)
@@ -112,12 +112,16 @@
 }
 
-my $bg = ($stats->bg_mean() or 'NAN');
-my $bg_stdev = ($stats->bg_stdev() or 'NAN');
-my $bg_mean_stdev = ($stats->bg_mean_stdev() or 'NAN');
+my $bg            = $stats->bg_mean();
+my $bg_stdev      = $stats->bg_stdev();
+my $bg_mean_stdev = $stats->bg_mean_stdev();
 
 # Add the processed file to the database
 unless ($no_update) {
-    my $command = "$dettool -addprocessedimfile -det_id $det_id -exp_tag $exp_tag " .
-	"-class_id $class_id -recip $recipe -uri $outputImage -path_base $outputRoot"; # Command to run dettool
+    my $command = "$dettool -addprocessedimfile";
+    $command .= " -det_id $det_id";
+    $command .= " -exp_tag $exp_tag";
+    $command .= " -class_id $class_id";
+    $command .= " -recip $recipe";
+    $command .= " -uri $outputImage -path_base $outputRoot";
     $command .= " -bg $bg -bg_stdev $bg_stdev -bg_mean_stdev $bg_mean_stdev";
     $command .= " -dbname $dbname" if defined $dbname;
