IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2009, 9:36:52 AM (17 years ago)
Author:
bills
Message:

pass -image_id and -source_id to the programs

File:
1 edited

Legend:

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

    r20973 r21309  
    2828
    2929my ($diff_id, $dbname, $threads, $outroot, $reduction, $verbose, $no_update, $no_op, $redirect);
    30 my $skycell_id;                 # Skycell identifier
     30my ($skycell_id, $diff_skyfile_id);
    3131GetOptions(
    3232    'diff_id=s'         => \$diff_id, # Diff identifier
    3333    'skycell_id=s'      => \$skycell_id, # Diff identifier
     34    'diff_skyfile_id=s' => \$diff_skyfile_id, # Diff identifier
    3435    'dbname|d=s'        => \$dbname, # Database name
    3536    'threads=s'         => \$threads,   # Number of threads to use
     
    4849          ) unless defined $diff_id
    4950    and defined $skycell_id
     51    and defined $diff_skyfile_id
    5052    and defined $outroot;
    5153
     
    5557my $logDest = "$outroot.log";
    5658$ipprc->redirect_output($logDest) if $redirect;
     59
     60my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_DIFF);
    5761
    5862# Look for programs we need
     
    212216    $command .= " -dumpconfig $configuration";
    213217    $command .= " -dbname $dbname" if defined $dbname;
     218    $command .= " -image_id $diff_skyfile_id" if defined $diff_skyfile_id;
     219    $command .= " -source_id $source_id" if defined $source_id;
    214220
    215221    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note: See TracChangeset for help on using the changeset viewer.