IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20970


Ignore:
Timestamp:
Dec 12, 2008, 12:23:19 PM (17 years ago)
Author:
bills
Message:

fixes from head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bills_081204/ippScripts/scripts/magic_destreak.pl

    r20890 r20970  
    9090my $magicdstool   = can_run('magicdstool') or (warn "Can't find magicdstool" and $missing_tools = 1);
    9191my $streaksremove = can_run('streaksremove') or (warn "Can't find streaksremove" and $missing_tools = 1);
    92 # todo get rid of this dependence on magic_id
    93 my $magictool   = can_run('magictool') or (warn "Can't find magictool" and $missing_tools = 1);
    9492if ($missing_tools) {
    9593    warn("Can't find required tools.");
     
    124122if (index($outroot, "neb://") != 0) {
    125123    if (! -e $outroot ) {
    126         mkdir $outroot
    127             or &my_die("cannot create output directory $outroot", $magic_ds_id, $component,
    128                 $PS_EXIT_UNKNOWN_ERROR);
     124        my $code = system "mkdir -p $outroot";
     125        &my_die("cannot create output directory $outroot", $magic_ds_id, $component,
     126                $code >> 8) if $code;
    129127    }
    130128}
     
    139137    if (index($recoveryroot, "neb://") != 0) {
    140138        if (! -e $recoveryroot ) {
    141             mkdir $recoveryroot
    142                 or &my_die("cannot create output directory $recoveryroot", $magic_ds_id, $component,
    143                     $PS_EXIT_UNKNOWN_ERROR);
     139            my $code = system "mkdir -p $recoveryroot";
     140            &my_die("cannot create output directory $outroot", $magic_ds_id, $component,
     141                    $code >> 8) if $code;
    144142        }
    145143    }
     
    183181    $astrom = $ipprc->filename("PSASTRO.OUTPUT", $cam_path_base);
    184182} elsif ($stage eq "chip") {
    185     $mask   = $ipprc->filename("PSASTRO.OUTPUT.MASK", $path_base, $class_id);
     183    $mask   = $ipprc->filename("PPIMAGE.CHIP.MASK", $path_base, $class_id);
    186184    $weight = $ipprc->filename("PPIMAGE.CHIP.WEIGHT", $path_base, $class_id);
    187185    $astrom = $ipprc->filename("PSASTRO.OUTPUT", $cam_path_base);
Note: See TracChangeset for help on using the changeset viewer.