IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 26, 2011, 11:17:50 AM (15 years ago)
Author:
bills
Message:

don't prepare_output for stats file unless the run state is new. It causes the existing
file to be wiped out

File:
1 edited

Legend:

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

    r30825 r31570  
    7272
    7373my ($logDest, $traceDest);
     74my $do_stats;
    7475if ($run_state eq 'new') {
    7576    $logDest = prepare_output("LOG.EXP", $outroot, $skycell_id, 0);
    7677    $traceDest = prepare_output("TRACE.EXP", $outroot, $skycell_id, 1);
     78    $do_stats = 1;
    7779} elsif ($run_state eq 'update')  {
    7880    $logDest = prepare_output("LOG.EXP.UPDATE", $outroot, $skycell_id, 1);
     
    162164my $outputBin1 = prepare_output ("PSWARP.BIN1", $outroot, $skycell_id, 1);
    163165my $outputBin2 = prepare_output ("PSWARP.BIN2", $outroot, $skycell_id, 1);
    164 my $outputStats = prepare_output ("SKYCELL.STATS", $outroot, $skycell_id, 1);
     166my $outputStats;
     167if ($do_stats) {
     168    $outputStats = prepare_output ("SKYCELL.STATS", $outroot, $skycell_id, 1) if $do_stats;
     169}
    165170my $configuration;
    166171
     
    257262# Run pswarp
    258263my $cmdflags;
    259 my $do_stats;
    260264unless ($no_op) {
    261265    my $command = "$pswarp";
     
    279283    if ($run_state eq 'new') {
    280284        $command .= " -dumpconfig $configuration";
    281         $do_stats = 1;
    282285    } else {
    283286        $command .= " -ipprc $configuration";
Note: See TracChangeset for help on using the changeset viewer.