IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2008, 2:32:05 PM (17 years ago)
Author:
eugene
Message:

adding diff_skyfile_id argument; get source_id from ipprc->source_id

File:
1 edited

Legend:

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

    r20456 r20928  
    2727use Pod::Usage qw( pod2usage );
    2828
    29 my ($diff_id, $dbname, $threads, $outroot, $reduction, $verbose, $no_update, $no_op, $redirect);
     29my ($diff_id, $diff_skyfile_id, $dbname, $threads, $outroot, $reduction, $verbose, $no_update, $no_op, $redirect);
    3030GetOptions(
    31     'diff_id|d=s'       => \$diff_id, # Diff identifier
    32     'dbname|d=s'        => \$dbname, # Database name
    33     'threads=s'         => \$threads,   # Number of threads to use
    34     'outroot=s'         => \$outroot, # Output root name
    35     'reduction=s'       => \$reduction, # Reduction class
    36     'verbose'           => \$verbose,   # Print to stdout
    37     'no-update'         => \$no_update, # Don't update the database?
    38     'no-op'             => \$no_op, # Don't do any operations?
    39     'redirect-output'   => \$redirect,
     31    'diff_id|d=s'         => \$diff_id, # Diff identifier
     32    'diff_skyfile_id|d=s' => \$diff_skyfile_id, # Unique skyfile identifier
     33    'dbname|d=s'          => \$dbname, # Database name
     34    'threads=s'           => \$threads,   # Number of threads to use
     35    'outroot=s'           => \$outroot, # Output root name
     36    'reduction=s'         => \$reduction, # Reduction class
     37    'verbose'             => \$verbose,   # Print to stdout
     38    'no-update'           => \$no_update, # Don't update the database?
     39    'no-op'               => \$no_op, # Don't do any operations?
     40    'redirect-output'     => \$redirect,
    4041) or pod2usage( 2 );
    4142
     
    5253my $logDest = "$outroot.log";
    5354$ipprc->redirect_output($logDest) if $redirect;
     55
     56my $image_id = $diff_skyfile_id;
     57my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_DIFF);
    5458
    5559# Look for programs we need
     
    210214    $command .= " -dumpconfig $configuration";
    211215    $command .= " -dbname $dbname" if defined $dbname;
     216    # $command .= " -image_id $image_id" if defined $image_id;
     217    # $command .= " -source_id $source_id" if defined $source_id;
    212218
    213219    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note: See TracChangeset for help on using the changeset viewer.