IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19545 for trunk/ippScripts


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

Location:
trunk/ippScripts/scripts
Files:
2 edited

Legend:

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

    r19464 r19545  
    2525use Pod::Usage qw( pod2usage );
    2626
    27 my ($diff_id, $dbname, $threads, $outroot, $verbose, $no_update, $no_op);
     27my ($diff_id, $dbname, $threads, $outroot, $verbose, $no_update, $no_op, $redirect);
    2828GetOptions(
    2929    'diff_id|d=s'       => \$diff_id, # Diff identifier
     
    3434    'no-update'         => \$no_update, # Don't update the database?
    3535    'no-op'             => \$no_op, # Don't do any operations?
     36    'redirect-output'   => \$redirect,
    3637) or pod2usage( 2 );
    3738
     
    4243          ) unless defined $diff_id
    4344    and defined $outroot;
     45
     46# XXX camera is not known here; cannot use filerules...
     47# my $logDest = $ipprc->filename("LOG.EXP", $outroot);
     48
     49my $logDest = "$outroot.log";
     50$ipprc->redirect_output($logDest) if $redirect;
    4451
    4552my $STATS =
     
    183190my $outputStats = $ipprc->filename("SKYCELL.STATS", $outroot);
    184191my $traceDest = $ipprc->filename("TRACE.EXP", $outroot);
    185 my $logDest = $ipprc->filename("LOG.EXP", $outroot);
    186192
    187193# Perform subtraction
  • 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.