Index: trunk/ippScripts/scripts/phase0exp.pl
===================================================================
--- trunk/ippScripts/scripts/phase0exp.pl	(revision 8709)
+++ trunk/ippScripts/scripts/phase0exp.pl	(revision 8713)
@@ -26,4 +26,5 @@
 # These values should be constant for all components
 use constant CONSTANTS => [
+                           "exp_type", #exposure type
                            "filter", # Filter used
                            "airmass", # Airmass
@@ -101,11 +102,4 @@
     my $stdev = get_value($imfile, PHASE0_BG_MEAN_STDEV());
     push @stdevs, $stdev;
-    
-    my $type = get_value($imfile, TYPE());
-    if (not defined $obsType) {
-        $obsType = $type;
-    } elsif ($obsType ne $type) {
-        die "Observation types differ.\n";
-    }
 }
 
@@ -144,5 +138,5 @@
     # Add the detrend flag
     foreach my $detrendType (@{DETRENDS()}) {
-        if (lc($obsType) eq lc($detrendType)) {
+        if (lc($values{TYPE()}) eq lc($detrendType)) {
             $command .= " " . DETREND_FLAG;
             last;
