IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 5, 2007, 1:24:28 PM (18 years ago)
Author:
Paul Price
Message:

Fixing directory problems.

File:
1 edited

Legend:

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

    r15737 r15738  
    114114}
    115115
     116my $skyFile = skycell_file($tess_id, $skycell_id, $workdir) or
     117    &my_die("Unable to get name of skycell file", $warp_id, $skycell_id, $tess_id, $PS_EXIT_SYS_ERROR);
     118&my_die("Unable to find skycell file: $skyFile", $warp_id, $skycell_id, $tess_id, $PS_EXIT_SYS_ERROR) unless
     119    $ipprc->file_exists( $skyFile );
     120
    116121$workdir = caturi( $workdir, "tess_" . $tess_id, "sky_" . $skycell_id ) if defined $workdir;
    117122my $outputRoot = $ipprc->file_prepare( "$tess_id.$skycell_id.wrp$warp_id", $workdir, $$imfiles[0]->{uri} );
     
    124129my $outputBin2 = $ipprc->filename("PSWARP.BIN2", $outputRoot, $skycell_id );
    125130my $outputStats = $outputRoot . '.stats';
    126 
    127 my $skyFile = skycell_file($tess_id, $skycell_id, $workdir) or
    128     &my_die("Unable to get name of skycell file", $warp_id, $skycell_id, $tess_id, $PS_EXIT_SYS_ERROR);
    129 &my_die("Unable to find skycell file", $warp_id, $skycell_id, $tess_id, $PS_EXIT_SYS_ERROR) unless
    130     $ipprc->exists( $skyFile );
    131131
    132132my $traceDest = 'file:' . $ipprc->file_resolve($outputRoot) . ".trace"; # Trace messages
Note: See TracChangeset for help on using the changeset viewer.