IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 27, 2011, 3:47:51 PM (15 years ago)
Author:
bills
Message:

add script to regenerate missing input files for a given component. Add flag
to tell the various scripts to delete existing log file (for use when the instance
is not available)

File:
1 edited

Legend:

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

    r31570 r31941  
    3838
    3939my ($warp_id, $skycell_id, $warp_skyfile_id, $tess_dir, $reduction, $camera, $dbname, $outroot, $threads, $run_state, $magicked, $verbose, $no_update, $no_op, $redirect, $save_temps);
     40my $zaplog = 0;
     41
    4042GetOptions(
    4143    'warp_id|i=s'         => \$warp_id, # Warp identifier
     
    5355    'no-update'           => \$no_update, # Don't update the database?
    5456    'no-op'               => \$no_op, # Don't do any operations?
     57    'zaplog'              => \$zaplog, # delete previous logfile
    5558    'redirect-output'     => \$redirect,
    5659    'save-temps'          => \$save_temps, # Save temporary files?
     
    7477my $do_stats;
    7578if ($run_state eq 'new') {
    76     $logDest = prepare_output("LOG.EXP", $outroot, $skycell_id, 0);
     79    $logDest = prepare_output("LOG.EXP", $outroot, $skycell_id, $zaplog);
    7780    $traceDest = prepare_output("TRACE.EXP", $outroot, $skycell_id, 1);
    7881    $do_stats = 1;
Note: See TracChangeset for help on using the changeset viewer.