IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2007, 5:49:55 PM (19 years ago)
Author:
Paul Price
Message:

Accept stack or warp as input/template.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/diff_skycell.pl

    r14246 r14258  
    8888
    8989# Identify the input and the template
    90 my ($input, $inputPath);        # Input file and path
    91 my ($template, $templatePath);  # Template file and path
     90my ($input, $inputMask, $inputPath); # Input file and path
     91my ($template, $templateMask, $templatePath); # Template file and path
    9292my $tess_id;                    # Tesselation identifier
    9393my $skycell_id;                 # Skycell identifier
     
    9797        $template = $file->{uri};
    9898        $templatePath = $file->{path_base};
     99        if ($file->{warp_id} == 0) {
     100            $templateMask = "PPSTACK.OUTPUT.MASK";
     101        } else {
     102            $templateMask = "PSWARP.OUTPUT.MASK";
     103        }
    99104    } else {
    100105        $input = $file->{uri};
    101106        $inputPath = $file->{path_base};
     107        if ($file->{warp_id} == 0) {
     108            $inputMask = "PPSTACK.OUTPUT.MASK";
     109        } else {
     110            $inputMask = "PSWARP.OUTPUT.MASK";
     111        }
    102112    }
    103113    if (defined $tess_id) {
     
    118128        $camera = $file->{camera};
    119129    }
     130
    120131}
    121132
     
    125136$ipprc->define_camera($camera);
    126137
    127 my $templateMask = $ipprc->filename("PSWARP.OUTPUT.MASK", $templatePath);
    128 my $inputMask = $ipprc->filename("PSWARP.OUTPUT.MASK", $inputPath);
     138$templateMask = $ipprc->filename($templateMask, $templatePath);
     139$inputMask = $ipprc->filename($inputMask, $inputPath);
    129140
    130141&my_die("Couldn't find input: $template", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($template);
Note: See TracChangeset for help on using the changeset viewer.