IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11151


Ignore:
Timestamp:
Jan 18, 2007, 6:26:04 PM (19 years ago)
Author:
Paul Price
Message:

Trying to make detrend type non-case sensitive.

Location:
trunk/ippScripts/scripts
Files:
4 edited

Legend:

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

    r10742 r11151  
    9494# Recipe to use in processing
    9595die "Unrecognised mode: $mode\n" if not defined RECIPES->{$mode};
    96 my $recipe = RECIPES->{$mode}->{$det_type};
     96my $recipe = RECIPES->{$mode}->{lc($det_type)};
    9797die "Unrecognised detrend type: $det_type\n" if not defined $recipe;
    9898
     
    118118    # Detrend to use in processing
    119119    if (lc($mode) ne 'verify') {
    120         my $detFlag = DETRENDS->{$det_type};
     120        my $detFlag = DETRENDS->{lc($det_type)};
    121121        die "Unrecognised detrend type: $det_type\n" if not defined $detFlag;
    122122        $command .= "$detFlag $detrend";
  • trunk/ippScripts/scripts/detrend_stack.pl

    r10742 r11151  
    5050    };
    5151
    52 die "Unrecognised detrend type: $det_type\n" if not defined RECIPES()->{$det_type};
    53 my $recipe = RECIPES()->{$det_type}; # Recipe to use in stacking
     52my $recipe = RECIPES()->{lc($det_type)}; # Recipe to use in stacking
     53die "Unrecognised detrend type: $det_type\n" if not defined $recipe;
    5454
    5555# Look for programs we need
  • trunk/ippScripts/scripts/phase0_exp.pl

    r11087 r11151  
    146146}
    147147
     148if (0) {
    148149# XXX for a test, randomly declare a failure and return to pantasks
    149150my $rnd = rand(1);
     
    151152    warn ("random failure");
    152153    &my_die ($exptag, $PS_EXIT_DATA_ERROR);
     154}
    153155}
    154156
  • trunk/ippScripts/scripts/phase0_imfile.pl

    r11087 r11151  
    132132        # XXX is this a programming or a config error?
    133133    }
    134  
     134
     135    if (0) {
    135136    # XXX for a test, randomly declare a failure and return to pantasks
    136137    my $rnd = rand(1);
     
    139140        &my_die ($exp_tag, $class_id, $PS_EXIT_DATA_ERROR);
    140141    }
     142}
    141143}
    142144
Note: See TracChangeset for help on using the changeset viewer.