Changeset 20970
- Timestamp:
- Dec 12, 2008, 12:23:19 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bills_081204/ippScripts/scripts/magic_destreak.pl
r20890 r20970 90 90 my $magicdstool = can_run('magicdstool') or (warn "Can't find magicdstool" and $missing_tools = 1); 91 91 my $streaksremove = can_run('streaksremove') or (warn "Can't find streaksremove" and $missing_tools = 1); 92 # todo get rid of this dependence on magic_id93 my $magictool = can_run('magictool') or (warn "Can't find magictool" and $missing_tools = 1);94 92 if ($missing_tools) { 95 93 warn("Can't find required tools."); … … 124 122 if (index($outroot, "neb://") != 0) { 125 123 if (! -e $outroot ) { 126 m kdir $outroot127 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; 129 127 } 130 128 } … … 139 137 if (index($recoveryroot, "neb://") != 0) { 140 138 if (! -e $recoveryroot ) { 141 m kdir $recoveryroot142 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; 144 142 } 145 143 } … … 183 181 $astrom = $ipprc->filename("PSASTRO.OUTPUT", $cam_path_base); 184 182 } elsif ($stage eq "chip") { 185 $mask = $ipprc->filename("P SASTRO.OUTPUT.MASK", $path_base, $class_id);183 $mask = $ipprc->filename("PPIMAGE.CHIP.MASK", $path_base, $class_id); 186 184 $weight = $ipprc->filename("PPIMAGE.CHIP.WEIGHT", $path_base, $class_id); 187 185 $astrom = $ipprc->filename("PSASTRO.OUTPUT", $cam_path_base);
Note:
See TracChangeset
for help on using the changeset viewer.
