Changeset 38070
- Timestamp:
- Mar 30, 2015, 4:34:10 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/diff_skycell.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/diff_skycell.pl
r35325 r38070 128 128 # $use_convolved = 1; ## This is a hack to do a test for mops, and should not be committed. 129 129 # } 130 131 # Re-implement prescan to decide if this is a warp-stack or warp-warp. Or stack-stack, but that's what we don't care about now. 132 my $diff_type = ''; 133 134 if ((${ $files }[0]->{warp_id} != 0)&&(${ $files }[1]->{warp_id} != 0)) { 135 $diff_type = "WW"; 136 } 137 elsif ((${ $files }[0]->{stack_id} != 0)&&(${ $files }[1]->{stack_id} != 0)) { 138 $diff_type = "SS"; 139 } 140 elsif (((${ $files }[0]->{stack_id} != 0)&&(${ $files }[1]->{stack_id} != 0))|| 141 ((${ $files }[0]->{stack_id} != 0)&&(${ $files }[1]->{stack_id} != 0))) { 142 $diff_type = "WS"; 143 } 144 else { # Something has gone horribly wrong. 145 $diff_type = "WW"; # just pretend it never happened, and let it fail elsewhere. 146 } 130 147 131 148 # ppSub does (input) - (template) after PSF-match convolution. … … 254 271 &my_die("Couldn't find input: $templateMask", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateMask); 255 272 &my_die("Couldn't find input: $templateVariance", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateVariance); 256 &my_die("Couldn't find input: $templateSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateSources); 273 #&my_die("Couldn't find input: $templateSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateSources); 274 275 if ($diff_type eq 'WS') { 276 # LANL processed stack images do not have a set of sources transferred back, so we need to choose a different source list. 277 unless($ipprc->file_exists($templateSources)) { 278 if ($ipprc->file_exists($inputSources)) { 279 $templateSources = $inputSources; 280 print "CHANGED:templateSources: $templateSources\n"; 281 } 282 } 283 &my_die("Couldn't find input: $templateSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateSources); 284 } 285 else { 286 &my_die("Couldn't find input: $templateSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateSources); 287 } 257 288 &my_die("Couldn't find input: $input", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($input); 258 289 &my_die("Couldn't find input: $inputMask", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inputMask);
Note:
See TracChangeset
for help on using the changeset viewer.
