Index: trunk/ippScripts/scripts/register_exp.pl
===================================================================
--- trunk/ippScripts/scripts/register_exp.pl	(revision 14486)
+++ trunk/ippScripts/scripts/register_exp.pl	(revision 14487)
@@ -139,9 +139,13 @@
 
 # Add the detrend flag, if needed
-foreach my $scienceType (@SCIENCE) {
-    if (lc($exp_type) =~ /$scienceType/) {
-	last;
-    }
-    $command .= " $DETREND_FLAG";
+{
+    my $object = 0;		# Is it an object exposure?
+    foreach my $scienceType (@SCIENCE) {
+	if (lc($exp_type) =~ /$scienceType/) {
+	    $object = 1;
+	    last;
+	}
+    }
+    $command .= " $DETREND_FLAG" unless $object;
 }
 
