Changeset 38072
- Timestamp:
- Mar 30, 2015, 4:46:17 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20150312/ippScripts/scripts/diff_skycell.pl
- Property svn:mergeinfo set to
r37975 r38072 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]->{warp_id} != 0)&&(${ $files }[1]->{stack_id} != 0))) { 141 $diff_type = "WS"; 142 } 143 else { # Something has gone horribly wrong. 144 $diff_type = "WW"; # just pretend it never happened, and let it fail elsewhere. 145 } 130 146 131 147 # ppSub does (input) - (template) after PSF-match convolution. … … 259 275 &my_die("Couldn't find input: $templateMask", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateMask); 260 276 &my_die("Couldn't find input: $templateVariance", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateVariance); 261 &my_die("Couldn't find input: $templateSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateSources); 277 #&my_die("Couldn't find input: $templateSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateSources); 278 279 if ($diff_type eq 'WS') { 280 # LANL processed stack images do not have a set of sources transferred back, so we need to choose a different source list. 281 unless($ipprc->file_exists($templateSources)) { 282 if ($ipprc->file_exists($inputSources)) { 283 $templateSources = $inputSources; 284 print "CHANGED:templateSources: $templateSources\n"; 285 } 286 } 287 &my_die("Couldn't find input: $templateSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateSources); 288 } 289 else { 290 &my_die("Couldn't find input: $templateSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateSources); 291 } 262 292 &my_die("Couldn't find input: $input", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($input); 263 293 &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.
