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

    r10742 r11297  
    1818    $iter,                      # Iteration
    1919    $detType,                   # Detrend type
     20    $dbname,                    # Database name
    2021    $no_update                  # Don't update the database?
    2122    );
     
    2425        'iteration|i=s' => \$iter,
    2526        'det_type|t=s'  => \$detType,
     27        'dbname|d=s'    => \$dbname,# Database name
    2628        'no-update'     => \$no_update
    2729        ) or pod2usage( 2 );
     
    6365{
    6466    my $command = "$dettool -processedimfile -det_id $detId"; # Command to run
     67    $command .= " -dbname $dbname" if defined $dbname;
    6568    my @command = split /\s+/, $command;
    6669    my ( $stdin, $stdout, $stderr ); # Buffers for running program
     
    150153        my $command = "$dettool -addnormalizedstat -det_id $detId -iteration $iter -class_id $className ".
    151154            "-norm $normalisation"; # Command to run
     155        $command .= " -dbname $dbname" if defined $dbname;
    152156        my @command = split /\s+/, $command;
    153157
Note: See TracChangeset for help on using the changeset viewer.