IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21309


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

pass -image_id and -source_id to the programs

Location:
trunk/ippScripts/scripts
Files:
4 edited

Legend:

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

    r20927 r21309  
    5353    defined $chip_id and
    5454    defined $class_id and
    55     ## defined $chip_imfile_id and  XXX until this is added to the scheme, do not require it :
     55    defined $chip_imfile_id and
    5656    defined $uri and
    5757    defined $camera and
     
    102102$ipprc->outroot_prepare($outroot);
    103103
    104 my $image_id = $chip_imfile_id;
    105104my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_CHIP);
    106105
     
    133132        $command .= " -threads $threads" if defined $threads;
    134133        $command .= " -dbname $dbname" if defined $dbname;
    135         # $command .= " -image_id $image_id" if defined $image_id;
    136         # $command .= " -source_id $source_id" if defined $source_id;
     134        $command .= " -image_id $chip_imfile_id" if defined $chip_imfile_id;
     135        $command .= " -source_id $source_id" if defined $source_id;
    137136        $command .= " -dumpconfig $configuration";
    138137        $command .= " -tracedest $traceDest -log $logDest";
     
    143142        $command .= " -threads $threads" if defined $threads;
    144143        $command .= " -dbname $dbname" if defined $dbname;
    145         # $command .= " -image_id $image_id" if defined $image_id;
    146         # $command .= " -source_id $source_id" if defined $source_id;
     144        $command .= " -image_id $chip_imfile_id" if defined $chip_imfile_id;
     145        $command .= " -source_id $source_id" if defined $source_id;
    147146        $command .= " -tracedest $traceDest -log $logDest";
    148147        $command .= " -Db PPIMAGE:PHOTOM FALSE";
  • 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 ) =
  • trunk/ippScripts/scripts/stack_skycell.pl

    r21145 r21309  
    215215    $command .= " -tracedest $traceDest -log $logDest";
    216216    $command .= " -dbname $dbname" if defined $dbname;
    217     # $command .= " -image_id $image_id" if defined $image_id;
    218     # $command .= " -source_id $source_id" if defined $source_id;
     217    $command .= " -image_id $image_id" if defined $image_id;
     218    $command .= " -source_id $source_id" if defined $source_id;
    219219    if ($run_state eq 'new') {
    220220        $command .= " -dumpconfig $configuration";
  • trunk/ippScripts/scripts/warp_skycell.pl

    r21179 r21309  
    5151) unless defined $warp_id
    5252    and defined $skycell_id
    53     ### and defined $warp_skyfile_id
     53    and defined $warp_skyfile_id
    5454    and defined $tess_dir
    5555    and defined $camera
     
    6464$ipprc->redirect_output($logDest) if $redirect;
    6565
    66 my $image_id = $warp_skyfile_id;
    6766my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_WARP);
    6867
     
    196195    $command .= " -threads $threads" if defined $threads;
    197196    $command .= " -dbname $dbname" if defined $dbname;
    198     # $command .= " -image_id $image_id" if defined $image_id;
    199     # $command .= " -source_id $source_id" if defined $source_id;
     197    $command .= " -image_id $warp_skyfile_id" if defined $warp_skyfile_id;
     198    $command .= " -source_id $source_id" if defined $source_id;
    200199    if ($run_state eq 'new') {
    201200        $command .= " -dumpconfig $configuration";
Note: See TracChangeset for help on using the changeset viewer.