IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8713


Ignore:
Timestamp:
Aug 30, 2006, 2:36:59 PM (20 years ago)
Author:
jhoblitt
Message:

make exp_type a required 'constant' passed to dettool -updateexp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/phase0exp.pl

    r8709 r8713  
    2626# These values should be constant for all components
    2727use constant CONSTANTS => [
     28                           "exp_type", #exposure type
    2829                           "filter", # Filter used
    2930                           "airmass", # Airmass
     
    101102    my $stdev = get_value($imfile, PHASE0_BG_MEAN_STDEV());
    102103    push @stdevs, $stdev;
    103    
    104     my $type = get_value($imfile, TYPE());
    105     if (not defined $obsType) {
    106         $obsType = $type;
    107     } elsif ($obsType ne $type) {
    108         die "Observation types differ.\n";
    109     }
    110104}
    111105
     
    144138    # Add the detrend flag
    145139    foreach my $detrendType (@{DETRENDS()}) {
    146         if (lc($obsType) eq lc($detrendType)) {
     140        if (lc($values{TYPE()}) eq lc($detrendType)) {
    147141            $command .= " " . DETREND_FLAG;
    148142            last;
Note: See TracChangeset for help on using the changeset viewer.