IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38072


Ignore:
Timestamp:
Mar 30, 2015, 4:46:17 PM (11 years ago)
Author:
watersc1
Message:

Merge from trunk for the missing template source problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20150312/ippScripts/scripts/diff_skycell.pl

    r37975 r38072  
    128128#     $use_convolved = 1; ## This is a hack to do a test for mops, and should not be committed.
    129129# }
     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.
     132my $diff_type = '';
     133
     134if ((${ $files }[0]->{warp_id} != 0)&&(${ $files }[1]->{warp_id} != 0)) {
     135    $diff_type = "WW";
     136}
     137elsif ((${ $files }[0]->{stack_id} != 0)&&(${ $files }[1]->{stack_id} != 0)) {
     138    $diff_type = "SS";
     139}
     140elsif (((${ $files }[0]->{warp_id} != 0)&&(${ $files }[1]->{stack_id} != 0))) {
     141    $diff_type = "WS";
     142}
     143else {  # Something has gone horribly wrong.
     144    $diff_type = "WW"; # just pretend it never happened, and let it fail elsewhere.
     145}
    130146
    131147# ppSub does (input) - (template) after PSF-match convolution. 
     
    259275&my_die("Couldn't find input: $templateMask", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateMask);
    260276&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
     279if ($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}
     289else {
     290    &my_die("Couldn't find input: $templateSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateSources);
     291}
    262292&my_die("Couldn't find input: $input", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($input);
    263293&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.