Index: trunk/ippScripts/scripts/detrend_process_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_process_imfile.pl	(revision 9092)
+++ trunk/ippScripts/scripts/detrend_process_imfile.pl	(revision 9097)
@@ -14,8 +14,8 @@
 use Pod::Usage qw( pod2usage );
 
-my ($det_id, $exp_id, $class, $class_id, $det_type, $input_uri, $output_uri, $no_update);
+my ($det_id, $exp_tag, $class, $class_id, $det_type, $input_uri, $output_uri, $no_update);
 GetOptions(
     'det_id|d=s'        => \$det_id,
-    'exp_id|e=s'        => \$exp_id,
+    'exp_tag|e=s'        => \$exp_tag,
     'class=s'           => \$class,     # unused
     'class_id|i=s'      => \$class_id,
@@ -27,8 +27,8 @@
 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
 pod2usage(
-    -msg => "Required options: --det_id --exp_id --class_id --det_type --input_uri",
+    -msg => "Required options: --det_id --exp_tag --class_id --det_type --input_uri",
     -exitval => 3,
 ) unless defined $det_id
-    and defined $exp_id
+    and defined $exp_tag
     and defined $class_id
     and defined $det_type
@@ -55,5 +55,5 @@
 
 ### Output file name --- must match camera configuration!
-my $outputRoot =  $exp_id . '.detproc.' . $det_id;
+my $outputRoot =  $exp_tag . '.detproc.' . $det_id;
 my $outputName = $outputRoot . '.' . $class_id ;
 my $outputImage = $outputName . '.fits';
@@ -87,5 +87,5 @@
 # Add the processed file to the database
 unless ($no_update) {
-    my $command = "$dettool -addprocessed -det_id $det_id -exp_id $exp_id " .
+    my $command = "$dettool -addprocessed -det_id $det_id -exp_tag $exp_tag " .
 	"-class_id $class_id -recip $recipe -uri $outputImage"; # Command to run dettool
     $command .= " -bg " . $stats->bg_mean();
@@ -100,5 +100,5 @@
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
 	run(command => $command, verbose => 1);
-    die "Unable to perform dettool -addprocessed for $det_id/$exp_id/$class_id: $error_code\n"
+    die "Unable to perform dettool -addprocessed for $det_id/$exp_tag/$class_id: $error_code\n"
 	if not $success;
 }
