IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17172


Ignore:
Timestamp:
Mar 28, 2008, 11:38:41 AM (18 years ago)
Author:
Paul Price
Message:

Adding verbose flag.

File:
1 edited

Legend:

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

    r17163 r17172  
    1313
    1414my ($dbname,                    # Database name to use
    15     $workdir_global             # Global working directory
     15    $workdir_global,            # Global working directory
     16    $verbose,                   # Produce verbose output?
    1617    );
    1718GetOptions(
    1819           'dbname=s'  => \$dbname,
    1920           'workdir=s' => \$workdir_global,
     21           'verbose'   => \$verbose,
    2022) or pod2usage( 2 );
    2123
     
    8082                my $command = "$detrend_process_imfile --det_id $det_id --exp_tag $exp_tag --exp_id $exp_id --class_id $class_id --det_type $det_type --input_uri $uri --camera $camera --dbname $dbname --outroot $outroot";
    8183                $command .= " --reduction $reduction" if defined $reduction;
     84                $command .= " --verbose" if defined $verbose;
    8285                my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    8386                    run( command => $command, verbose => 1 );
     
    115118
    116119        my $command = "$detrend_process_exp --det_id $det_id --det_type $det_type --exp_tag $exp_tag --exp_id $exp_id --camera $camera --dbname $dbname --outroot $outroot";
     120        $command .= " --verbose" if defined $verbose;
    117121        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    118122            run( command => $command, verbose => 1 );
     
    148152        my $command = "$detrend_stack --det_id $det_id --iteration $iteration --class_id $class_id --det_type $det_type --camera $camera --dbname $dbname --outroot $outroot";
    149153        $command .= " --reduction $reduction" if defined $reduction;
     154        $command .= " --verbose" if defined $verbose;
    150155        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    151156            run( command => $command, verbose => 1 );
     
    177182
    178183        my $command = "$detrend_norm_calc --det_id $det_id --iteration $iteration --det_type $det_type --dbname $dbname --outroot $outroot";
     184        $command .= " --verbose" if defined $verbose;
    179185        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    180186            run( command => $command, verbose => 1 );
     
    209215
    210216        my $command = "$detrend_norm_apply --det_id $det_id --iteration $iteration --class_id $class_id --value $value --input_uri $uri --camera $camera --det_type $det_type --dbname $dbname --outroot $outroot";
     217        $command .= " --verbose" if defined $verbose;
    211218        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    212219            run( command => $command, verbose => 1 );
     
    241248
    242249        my $command = "$detrend_norm_exp --det_id $det_id --iteration $iteration --camera $camera --det_type $det_type --dbname $dbname --outroot $outroot";
     250        $command .= " --verbose" if defined $verbose;
    243251        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    244252            run( command => $command, verbose => 1 );
     
    289297                $command .= " --reduction $reduction" if defined $reduction;
    290298                $command .= " --detrend $detrend" if defined $detrend;
     299                $command .= " --verbose" if defined $verbose;
    291300
    292301                my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    326335
    327336        my $command = "$detrend_reject_imfile --det_id $det_id --iteration $iteration --exp_tag $exp_tag --exp_id $exp_id --det_type $det_type --camera $camera --dbname $dbname --outroot $outroot";
     337        $command .= " --verbose" if defined $verbose;
    328338        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    329339            run( command => $command, verbose => 1 );
     
    355365
    356366        my $command = "$detrend_reject_exp --det_id $det_id --iteration $iteration --det_type $det_type --camera $camera --dbname $dbname --outroot $outroot";
     367        $command .= " --verbose" if defined $verbose;
    357368        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    358369            run( command => $command, verbose => 1 );
Note: See TracChangeset for help on using the changeset viewer.