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_imfile.pl

    r9091 r9097  
    1515use Pod::Usage qw( pod2usage );
    1616
    17 my ($det_id, $iter, $exp_id, $det_type, $no_update);
     17my ($det_id, $iter, $exp_tag, $det_type, $no_update);
    1818GetOptions(
    1919    'det_id|d=s'        => \$det_id,
    2020    'iteration=s'       => \$iter,
    21     'exp_id|e=s'        => \$exp_id,
     21    'exp_tag|e=s'        => \$exp_tag,
    2222    'det_type|t=s'      => \$det_type,
    2323    'no-update'         => \$no_update
     
    2626pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    2727pod2usage(
    28     -msg => "Required options: --det_id --iteration --exp_id --det_type",
     28    -msg => "Required options: --det_id --iteration --exp_tag --det_type",
    2929    -exitval => 3,
    3030) unless defined $det_id
    3131    and defined $iter
    32     and defined $exp_id
     32    and defined $exp_tag
    3333    and defined $det_type;
    3434
     
    8787my $files;                      # Array of component files
    8888{
    89     my $command = "$dettool -residimfile -det_id $det_id -iteration $iter -exp_id $exp_id"; # Command to run
     89    my $command = "$dettool -residimfile -det_id $det_id -iteration $iter -exp_tag $exp_tag"; # Command to run
    9090    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    9191        run(command => $command, verbose => 1);
     
    9797
    9898# Generate the file list, and get the statistics
    99 my $outputRoot = $exp_id . '.detresid.' . $det_id . '.' . $iter; # Root output name
     99my $outputRoot = $exp_tag . '.detresid.' . $det_id . '.' . $iter; # Root output name
    100100my $list1Name = $outputRoot . '.b1.list'; # Name for the input file list for binning 1
    101101my $list2Name = $outputRoot . '.b2.list'; # Name for the input file list for binning 2
     
    195195# Add the result into the database
    196196unless ($no_update) {
    197     my $command = "$dettool -addresidexp -det_id $det_id -iteration $iter -exp_id $exp_id " .
     197    my $command = "$dettool -addresidexp -det_id $det_id -iteration $iter -exp_tag $exp_tag " .
    198198        "-recip " . RECIPE1() . "," . RECIPE2() . " -b1_uri $jpeg1Name -b2_uri $jpeg2Name " .
    199199        "-bg $mean -bg_stdev $stdev -bg_mean_stdev $meanStdev"; # Command to run
Note: See TracChangeset for help on using the changeset viewer.