IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 17, 2007, 3:50:49 PM (19 years ago)
Author:
Paul Price
Message:

Updating to use weight maps.

File:
1 edited

Legend:

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

    r14258 r14276  
    8888
    8989# Identify the input and the template
    90 my ($input, $inputMask, $inputPath); # Input file and path
    91 my ($template, $templateMask, $templatePath); # Template file and path
     90my ($input, $inputMask, $inputWeight, $inputPath); # Input files and path
     91my ($template, $templateMask, $templateWeight, $templatePath); # Template files and path
    9292my $tess_id;                    # Tesselation identifier
    9393my $skycell_id;                 # Skycell identifier
     
    9999        if ($file->{warp_id} == 0) {
    100100            $templateMask = "PPSTACK.OUTPUT.MASK";
     101            $templateWeight = "PPSTACK.OUTPUT.WEIGHT";
    101102        } else {
    102103            $templateMask = "PSWARP.OUTPUT.MASK";
     104            $templateWeight = "PSWARP.OUTPUT.WEIGHT";
    103105        }
    104106    } else {
     
    107109        if ($file->{warp_id} == 0) {
    108110            $inputMask = "PPSTACK.OUTPUT.MASK";
     111            $inputWeight = "PPSTACK.OUTPUT.WEIGHT";
    109112        } else {
    110113            $inputMask = "PSWARP.OUTPUT.MASK";
     114            $inputWeight = "PSWARP.OUTPUT.WEIGHT";
    111115        }
    112116    }
     
    138142$templateMask = $ipprc->filename($templateMask, $templatePath);
    139143$inputMask = $ipprc->filename($inputMask, $inputPath);
     144$templateWeight = $ipprc->filename($templateWeight, $templatePath);
     145$inputWeight = $ipprc->filename($inputWeight, $inputPath);
    140146
    141147&my_die("Couldn't find input: $template", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($template);
    142148&my_die("Couldn't find input: $templateMask", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateMask);
     149&my_die("Couldn't find input: $templateWeight", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateWeight);
    143150&my_die("Couldn't find input: $input", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($input);
    144151&my_die("Couldn't find input: $inputMask", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inputMask);
     152&my_die("Couldn't find input: $inputWeight", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inputWeight);
    145153
    146154# Get the output filenames
     
    149157my $outputName = $ipprc->filename("PPSUB.OUTPUT", $outputRoot);
    150158my $outputMask = $ipprc->filename("PPSUB.OUTPUT.MASK", $outputRoot);
     159my $outputWeight = $ipprc->filename("PPSUB.OUTPUT.WEIGHT", $outputRoot);
    151160#my $bin1Name =  $ipprc->filename("PPSUB.BIN1", $outputRoot);
    152161#my $bin2Name =  $ipprc->filename("PPSUB.BIN2", $outputRoot);
     
    164173    $command .= " -inmask $inputMask";
    165174    $command .= " -refmask $templateMask";
     175    $command .= " -inweight $inputWeight";
     176    $command .= " -refweight $templateWeight";
    166177    $command .= " -stats $outputStats";
    167178    $command .= " -recipe PPSTATS WARPSTATS";
     
    175186    &my_die("Couldn't find expected output file: $outputName", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputName);
    176187    &my_die("Couldn't find expected output file: $outputMask", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputMask);
     188    &my_die("Couldn't find expected output file: $outputWeight", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputWeight);
    177189#    &my_die("Couldn't find expected output file: $bin1Name",    $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin1Name);
    178190#    &my_die("Couldn't find expected output file: $bin2Name",    $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin2Name);
Note: See TracChangeset for help on using the changeset viewer.