IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19127


Ignore:
Timestamp:
Aug 19, 2008, 12:30:55 PM (18 years ago)
Author:
eugene
Message:

adding thread command-line option

Location:
trunk/ippScripts/scripts
Files:
4 edited

Legend:

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

    r18562 r19127  
    2525
    2626# Parse the command-line arguments
    27 my ( $exp_id, $chip_id, $class_id, $uri, $camera, $outroot, $dbname, $reduction, $verbose,
     27my ( $exp_id, $chip_id, $class_id, $uri, $camera, $outroot, $dbname, $reduction, $threads, $verbose,
    2828     $no_update, $no_op, $redirect );
    2929GetOptions(
     
    3636    'dbname|d=s'        => \$dbname,    # Database name
    3737    'reduction=s'       => \$reduction, # Reduction class
     38    'threads=s'         => \$threads,   # Number of threads to use for ppImage
    3839    'verbose'           => \$verbose,   # Print to stdout
    3940    'no-update'         => \$no_update, # Don't update the database?
     
    139140    $command .= " -recipe PPSTATS CHIPSTATS";
    140141    $command .= " -stats $outputStats";
     142    $command .= " -threads $threads" if defined $threads;
    141143    $command .= " -dbname $dbname" if defined $dbname;
    142144    $command .= " -tracedest $traceDest -log $logDest";
  • trunk/ippScripts/scripts/detrend_process_imfile.pl

    r18562 r19127  
    2525
    2626my ( $det_id, $exp_id, $class_id, $det_type, $exp_tag, $input_uri, $camera, $outroot, $dbname, $reduction,
    27      $verbose, $no_update, $no_op, $redirect );
     27     $threads, $verbose, $no_update, $no_op, $redirect );
    2828GetOptions(
    2929    'det_id|d=s'        => \$det_id,
     
    3737    'dbname|d=s'        => \$dbname, # Database name
    3838    'reduction=s'       => \$reduction, # Reduction class
     39    'threads=s'         => \$threads,   # Number of threads to use for ppImage
    3940    'verbose'           => \$verbose,   # Print to stdout
    4041    'no-update'         => \$no_update,
     
    107108    $command .= " -stats $outputStats";
    108109    $command .= " -tracedest $traceDest -log $logDest";
     110    $command .= " -threads $threads" if defined $threads;
    109111    $command .= " -dbname $dbname" if defined $dbname;
    110112
  • trunk/ippScripts/scripts/detrend_resid_imfile.pl

    r18562 r19127  
    2525
    2626my ( $det_id, $iter, $exp_id, $exp_tag, $class_id, $det_type, $detrend, $input_uri, $camera, $mode, $outroot,
    27      $dbname, $reduction, $verbose, $no_update, $no_op, $redirect );
     27     $dbname, $reduction, $threads, $verbose, $no_update, $no_op, $redirect );
    2828GetOptions(
    2929    'det_id|d=s'        => \$det_id,
     
    4040    'dbname|d=s'        => \$dbname, # Database name
    4141    'reduction=s'       => \$reduction, # Reduction class
     42    'threads=s'         => \$threads,   # Number of threads to use for ppImage
    4243    'verbose'           => \$verbose,   # Print to stdout
    4344    'no-update'         => \$no_update,
     
    158159    $command .= " -stats $outputStats";
    159160    $command .= " -tracedest $traceDest -log $logDest";
     161    $command .= " -threads $threads" if defined $threads;
    160162    $command .= " -dbname $dbname" if defined $dbname;
    161163
  • trunk/ippScripts/scripts/warp_skycell.pl

    r19113 r19127  
    2525my $ipprc = PS::IPP::Config->new(); # IPP configuration
    2626
    27 my ($warp_id, $skycell_id, $tess_dir, $camera, $dbname, $outroot, $verbose, $no_update, $no_op, $redirect, $save_temps);
     27my ($warp_id, $skycell_id, $tess_dir, $camera, $dbname, $outroot, $threads, $verbose, $no_update, $no_op, $redirect, $save_temps);
    2828GetOptions(
    2929    'warp_id|i=s'       => \$warp_id, # Warp identifier
     
    3333    'dbname|d=s'        => \$dbname, # Database name
    3434    'outroot=s'         => \$outroot, # Output root name
     35    'threads=s'         => \$threads,   # Number of threads to use for ppImage
    3536    'verbose'           => \$verbose,   # Print to stdout
    3637    'no-update'         => \$no_update, # Don't update the database?
     
    171172    my $command = "$pswarp";
    172173    $command .= " -list $imageName";
    173     # $command .= " -threads 4";
    174174    $command .= " -masklist $maskName";
    175175    $command .= " -weightlist $weightName";
     
    183183    $command .= " -psf";        # Turn on PSF determination
    184184    $command .= " -tracedest $traceDest -log $logDest";
     185    $command .= " -threads $threads" if defined $threads;
    185186    $command .= " -dbname $dbname" if defined $dbname;
    186187
Note: See TracChangeset for help on using the changeset viewer.