IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 25, 2007, 2:55:43 PM (19 years ago)
Author:
Paul Price
Message:

Adding -dbname to all scripts.

File:
1 edited

Legend:

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

    r10719 r11297  
    1919use Pod::Usage qw( pod2usage );
    2020
    21 my ($det_id, $iter, $exp_tag, $det_type, $camera, $filter, $no_update, $reject);
     21my ($det_id, $iter, $exp_tag, $det_type, $camera, $filter, $reject, $dbname, $no_update);
    2222GetOptions(
    2323           'det_id|d=s'        => \$det_id,
     
    2525           'exp_tag|e=s'       => \$exp_tag,
    2626           'det_type|t=s'      => \$det_type,
    27            'no-update'         => \$no_update,
    2827           'camera=s'          => \$camera,
    2928           'filter=s'          => \$filter,
    3029           'reject'            => \$reject
     30           'dbname|d=s'        => \$dbname, # Database name
     31           'no-update'         => \$no_update,
    3132           ) or pod2usage( 2 );
    3233
     
    5859{
    5960    my $command = "$dettool -residimfile -det_id $det_id -iteration $iter -exp_tag $exp_tag"; # Command to run
     61    $command .= " -dbname $dbname" if defined $dbname;
    6062    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    6163        run(command => $command, verbose => 1);
     
    239241        "-bg $mean -bg_stdev $stdev -bg_mean_stdev $meanStdev"; # Command to run
    240242    $command .= ' -reject' if $reject;
     243    $command .= " -dbname $dbname" if defined $dbname;
    241244    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    242245        run(command => $command, verbose => 1);
Note: See TracChangeset for help on using the changeset viewer.