IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33173


Ignore:
Timestamp:
Jan 27, 2012, 2:47:16 PM (14 years ago)
Author:
bills
Message:

use $ipprc->prepare_output to avoid lost files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20111222/ippScripts/scripts/background_warp.pl

    r28544 r33173  
    6868my $logDest = $ipprc->filename("LOG.EXP", $outroot, $skycell_id) or my_die( "Unable to get log filename", $warp_bg_id, $skycell_id, $PS_EXIT_SYS_ERROR );
    6969
    70 $ipprc->redirect_output($logDest) or my_die( "Unable to redirect output", $warp_bg_id, $skycell_id, $PS_EXIT_SYS_ERROR ) if $redirect;
     70$ipprc->redirect_to_logfile($logDest) or my_die( "Unable to redirect output", $warp_bg_id, $skycell_id, $PS_EXIT_SYS_ERROR ) if $redirect;
    7171
    7272# Recipes to use based on reduction class
     
    138138&my_die("Can't find input astrometry: $astrometry", $warp_bg_id, $skycell_id, $PS_EXIT_PROG_ERROR) unless $ipprc->file_exists($astrometry);
    139139
    140 my $out_image = $ipprc->filename("PSWARP.OUTPUT", $outroot, $skycell_id );
    141 my $out_mask = $ipprc->filename("PSWARP.OUTPUT.MASK", $outroot, $skycell_id);
    142 my $out_stats = $ipprc->filename("SKYCELL.STATS", $outroot, $skycell_id );
    143 my $out_config = $ipprc->filename("PSWARP.CONFIG", $outroot, $skycell_id);
    144 my $traceDest = $ipprc->filename("TRACE.EXP", $outroot, $skycell_id);
     140my $error;
     141my $out_image = $ipprc->prepare_output("PSWARP.OUTPUT", $outroot, $skycell_id, 1, \$error );
     142my $out_mask = $ipprc->prepare_output("PSWARP.OUTPUT.MASK", $outroot, $skycell_id, 1, \$error);
     143my $out_stats = $ipprc->prepare_output("SKYCELL.STATS", $outroot, $skycell_id , 1, \$error);
     144my $out_config = $ipprc->prepare_output("PSWARP.CONFIG", $outroot, $skycell_id, 1, \$error);
     145my $traceDest = $ipprc->prepare_output("TRACE.EXP", $outroot, $skycell_id, 1, \$error);
    145146
    146147my $skyFile = $ipprc->filename("SKYCELL.TEMPLATE", $outroot, $skycell_id );
Note: See TracChangeset for help on using the changeset viewer.