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

    r9095 r9097  
    1515use Pod::Usage qw( pod2usage );
    1616
    17 my ($det_id, $iter, $exp_id, $class_id, $det_type, $detrend,
     17my ($det_id, $iter, $exp_tag, $class_id, $det_type, $detrend,
    1818        $input_uri, $no_update);
    1919GetOptions(
    2020    'det_id|d=s'        => \$det_id,
    2121    'iteration=s'       => \$iter,
    22     'exp_id|e=s'        => \$exp_id,
     22    'exp_tag|e=s'        => \$exp_tag,
    2323    'class_id|i=s'      => \$class_id,
    2424    'det_type|t=s'      => \$det_type,
     
    3030pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    3131pod2usage(
    32     -msg => "Required options: --det_id --iteration --exp_id --class_id --det_type --detrend --input_uri",
     32    -msg => "Required options: --det_id --iteration --exp_tag --class_id --det_type --detrend --input_uri",
    3333    -exitval => 3,
    3434) unless defined $det_id
    3535    and defined $iter
    36     and defined $exp_id
     36    and defined $exp_tag
    3737    and defined $class_id
    3838    and defined $det_type
     
    7171
    7272### Output file names --- must match camera configuration!
    73 my $outputRoot = $exp_id . '.detresid.' . $det_id . '.' . $iter; # Root name
     73my $outputRoot = $exp_tag . '.detresid.' . $det_id . '.' . $iter; # Root name
    7474my $outputName = $outputRoot . '.' . $class_id . '.fits'; # Name for
    7575my $outputStats = $outputRoot . '.' . $class_id . '.stats';
     
    106106# Add the processed file to the database
    107107unless ($no_update) {
    108     my $command = "$dettool -addresidimfile -det_id $det_id -iteration $iter -exp_id $exp_id " .
     108    my $command = "$dettool -addresidimfile -det_id $det_id -iteration $iter -exp_tag $exp_tag " .
    109109        "-class_id $class_id -recip $recipe -uri $outputName -b1_uri $bin1Name " .
    110110        "-b2_uri $bin2Name"; # Command to run dettool
     
    120120    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    121121        run(command => $command, verbose => 1);
    122     die "Unable to perform dettool -addprocessed for $det_id/$exp_id/$class_id: $error_code\n"
     122    die "Unable to perform dettool -addprocessed for $det_id/$exp_tag/$class_id: $error_code\n"
    123123        if not $success;
    124124}
Note: See TracChangeset for help on using the changeset viewer.