Index: trunk/ippScripts/scripts/detrend_process.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_process.pl	(revision 8983)
+++ trunk/ippScripts/scripts/detrend_process.pl	(revision 9004)
@@ -22,10 +22,9 @@
     'det_type|t=s'      => \$det_type,
     'input_uri|u=s'     => \$input_uri,
-    'output_uri|o=s'    => \$output_uri,
 ) or pod2usage( 2 );
 
 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
 pod2usage(
-    -msg => "Required options: --det_id --exp_id --class_id --det_type --input_uri --output_uri",
+    -msg => "Required options: --det_id --exp_id --class_id --det_type --input_uri",
     -exitval => 3,
 ) unless defined $det_id
@@ -33,6 +32,5 @@
     and defined $class_id
     and defined $det_type
-    and defined $input_uri
-    and defined $output_uri;
+    and defined $input_uri;
 
 # Recipes to use, as a function of the detrend type
@@ -41,11 +39,4 @@
     'dark' => 'PPIMAGE_OB',	# Overscan and bias only
     'flat' => 'PPIMAGE_OBD',	# Overscan, bias and dark only
-};
-
-# Prefix to add to filenames
-use constant PREFIX => {
-    'bias' => 'o',		# Overscan only
-    'dark' => 'ob',		# Overscan and bias only
-    'flat' => 'obd',		# Overscan, bias and dark only
 };
 
@@ -61,10 +52,9 @@
 my $recipe = RECIPES->{$det_type};
 die "Unrecognised detrend type: $det_type\n" if not defined $recipe;
-die "Unrecognised detrend type: $det_type\n" if not defined PREFIX->{$det_type};
 
 ### Output file name --- must match camera configuration!
-my $outputRoot =  PREFIX->{$det_type} . '_' . $output_uri;
+my $outputRoot =  $exp_id . '.detproc' ;
 my $outputName = $outputRoot . '.' . $class_id ;
-my $outputImage = $outputName . '.fit';
+my $outputImage = $outputName . '.fits';
 my $outputStats = $outputName . '.stats';
 
