IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 12, 2008, 4:20:57 PM (18 years ago)
Author:
eugene
Message:

convert chiphost tables to ipphosts tables, add lookups for skycellID to host, add in the redirect-output option to stack and diff

File:
1 edited

Legend:

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

    r19396 r19545  
    2828use Pod::Usage qw( pod2usage );
    2929
    30 my ($stack_id, $dbname, $outroot, $debug, $threads, $verbose, $no_update, $no_op, $save_temps);
     30my ($stack_id, $dbname, $outroot, $debug, $threads, $verbose, $no_update, $no_op, $redirect, $save_temps);
    3131GetOptions(
    3232    'stack_id|d=s'      => \$stack_id, # Stack identifier
     
    3838    'no-update'         => \$no_update, # Don't update the database?
    3939    'no-op'             => \$no_op, # Don't do any operations?
     40    'redirect-output'   => \$redirect,
    4041    'save-temps'        => \$save_temps, # Save temporary files?
    4142) or pod2usage( 2 );
     
    4748          ) unless defined $stack_id
    4849    and defined $outroot;
     50
     51# XXX camera is not known here; cannot use filerules...
     52# my $logDest = $ipprc->filename("LOG.EXP", $outroot);
     53
     54my $logDest = "$outroot.log";
     55$ipprc->redirect_output($logDest) if $redirect;
    4956
    5057my $STATS =
     
    97104my $camera;                     # Camera
    98105foreach my $file (@$files) {
    99     # skip warps which are speicified as 'ignored'
     106    # skip warps which are specified as 'ignored'
    100107    if ($file->{ignored}) { next; }
    101108    if (defined $tess_id) {
     
    166173my $outputStats = $ipprc->filename("SKYCELL.STATS", $outroot);
    167174my $traceDest = $ipprc->filename("TRACE.EXP", $outroot);
    168 my $logDest = $ipprc->filename("LOG.EXP", $outroot);
    169175my $configuration = $ipprc->filename("PPSTACK.CONFIG", $outroot);
    170176
Note: See TracChangeset for help on using the changeset viewer.