IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2008, 11:47:19 AM (18 years ago)
Author:
Paul Price
Message:

Added verbose flags to scripts.

File:
1 edited

Legend:

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

    r16196 r16308  
    3535use Pod::Usage qw( pod2usage );
    3636
    37 my ($det_id, $iter, $det_type, $camera, $outroot, $dbname, $reduction, $no_update, $no_op);
     37my ($det_id, $iter, $det_type, $camera, $outroot, $dbname, $reduction, $verbose, $no_update, $no_op);
    3838GetOptions(
    3939           'det_id|d=s'        => \$det_id,
     
    4444           'dbname|d=s'        => \$dbname, # Database name
    4545           'reduction|=s'      => \$reduction,
     46           'verbose'           => \$verbose,   # Print to stdout
    4647           'no-update'         => \$no_update,
    4748           'no-op'             => \$no_op,
     
    9798    $command .= " -dbname $dbname" if defined $dbname;
    9899    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    99         run(command => $command, verbose => 1);
     100        run(command => $command, verbose => $verbose);
    100101    unless ($success) {
    101102        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    142143    $command = "$ppImage -list $list1Name $outroot -recipe PPIMAGE $recipe1"; # Command to run
    143144    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    144         run(command => $command, verbose => 1);
     145        run(command => $command, verbose => $verbose);
    145146    &my_die("Unable to find expected output file: $jpeg1Name", $det_id, $iter, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($jpeg1Name);
    146147   
     
    148149    $command = "$ppImage -list $list2Name $outroot -recipe PPIMAGE $recipe2"; # Command to run
    149150    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    150         run(command => $command, verbose => 1);
     151        run(command => $command, verbose => $verbose);
    151152    &my_die("Unable to find expected output file: $jpeg2Name", $det_id, $iter, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($jpeg2Name);
    152153
     
    165166unless ($no_update) {
    166167    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    167         run(command => $command, verbose => 1);
     168        run(command => $command, verbose => $verbose);
    168169    unless ($success) {
    169170        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Note: See TracChangeset for help on using the changeset viewer.