IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 2, 2006, 12:16:03 PM (20 years ago)
Author:
Paul Price
Message:

Changing 'exp id' to 'exp tag' throughout, following corresponding change in database.

File:
1 edited

Legend:

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

    r9091 r9097  
    7373}
    7474
    75 my @expIds;                     # Array of exposure IDs
     75my @expTags;                    # Array of exposure IDs
    7676my @means;                      # Array of means
    7777my @stdevs;                     # Array of stdevs
    7878my @meanStdevs;                 # Array of mean stdevs
    7979foreach my $exposure (@$exposures) {
    80     die "Unable to find exposure id.\n" if not defined $exposure->{exp_id};
     80    die "Unable to find exposure id.\n" if not defined $exposure->{exp_tag};
    8181    die "Unable to find mean.\n" if not defined $exposure->{bg};
    8282    die "Unable to find stdev.\n" if not defined $exposure->{bg_stdev};
    8383    die "Unable to find mean stdev.\n" if not defined $exposure->{bg_mean_stdev};
    84     push @expIds, $exposure->{exp_id};
     84    push @expTags, $exposure->{exp_tag};
    8585    push @means, $exposure->{bg};
    8686    push @stdevs, $exposure->{bg_stdev};
     
    105105my $numRejected = 0;            # Number of exposures rejected
    106106for (my $i = 0; $i < scalar @means; $i++) {
    107     my $expId = $expIds[$i];    # Exposure ID
    108     my $command = "$dettool -updateresidexp -det_id $det_id -iteration $iter -exp_id $expId"; # Command to run
     107    my $expTag = $expTags[$i];  # Exposure ID
     108    my $command = "$dettool -updateresidexp -det_id $det_id -iteration $iter -exp_tag $expTag"; # Command to run
    109109    my $reject = 0;             # Reject this exposure?
    110110    if (defined REJECT_MEAN->{$det_type} and
     
    112112        $meanStats->standard_deviation() > 0 and
    113113        ($means[$i] - $meanStats->mean()) / $meanStats->standard_deviation() > REJECT_MEAN->{$det_type}) {
    114         print "Rejecting $expId based on bad mean: " .
     114        print "Rejecting $expTag based on bad mean: " .
    115115            (($means[$i] - $meanStats->mean()) / $meanStats->standard_deviation()) .
    116116            " vs " . REJECT_MEAN->{$det_type} . "\n";
     
    121121             ($stdevs[$i] - $stdevStats->mean()) / $stdevStats->standard_deviation() >
    122122             REJECT_STDEV->{$det_type}) {
    123         print "Rejecting $expId based on bad stdev: " .
     123        print "Rejecting $expTag based on bad stdev: " .
    124124            (($stdevs[$i] - $stdevStats->mean()) / $stdevStats->standard_deviation()) .
    125125            " vs " . REJECT_STDEV->{$det_type} . "\n";
     
    130130             ($meanStdevs[$i] - $meanStdevStats->mean()) / $meanStdevStats->standard_deviation() >
    131131             REJECT_MEAN_STDEV->{$det_type}) {
    132         print "Rejecting $expId based on bad stdev: " .
     132        print "Rejecting $expTag based on bad stdev: " .
    133133            (($meanStdevs[$i] - $meanStdevStats->mean()) / $meanStdevStats->standard_deviation()) .
    134134            " vs " . REJECT_MEAN_STDEV->{$det_type} . "\n";
Note: See TracChangeset for help on using the changeset viewer.