IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 19, 2007, 2:04:03 PM (19 years ago)
Author:
Paul Price
Message:

Adding input source list, output source list.

File:
1 edited

Legend:

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

    r14383 r14898  
    8888
    8989# Identify the input and the template
    90 my ($input, $inputMask, $inputWeight, $inputPath); # Input files and path
    91 my ($template, $templateMask, $templateWeight, $templatePath); # Template files and path
     90my ($input, $inputMask, $inputWeight, $inputPath, $inputPSF); # Input files and path
     91my ($template, $templateMask, $templateWeight, $templatePath, $templateSources); # Template files and path
    9292my $tess_id;                    # Tesselation identifier
    9393my $skycell_id;                 # Skycell identifier
     
    100100            $templateMask = "PPSTACK.OUTPUT.MASK";
    101101            $templateWeight = "PPSTACK.OUTPUT.WEIGHT";
     102            $templateSources = "PPSTACK.OUTPUT.SOURCES";
    102103        } else {
    103104            $templateMask = "PSWARP.OUTPUT.MASK";
    104105            $templateWeight = "PSWARP.OUTPUT.WEIGHT";
     106            $templateSources = "PSWARP.OUTPUT.SOURCES";
    105107        }
    106108    } else {
     
    110112            $inputMask = "PPSTACK.OUTPUT.MASK";
    111113            $inputWeight = "PPSTACK.OUTPUT.WEIGHT";
     114            die "ppStack doesn't output a PSF model yet.";
    112115        } else {
    113116            $inputMask = "PSWARP.OUTPUT.MASK";
    114117            $inputWeight = "PSWARP.OUTPUT.WEIGHT";
     118            $inputPSF = "PSPHOT.PSF.SAVE";
    115119        }
    116120    }
     
    144148$templateWeight = $ipprc->filename($templateWeight, $templatePath);
    145149$inputWeight = $ipprc->filename($inputWeight, $inputPath);
     150$inputPSF = $ipprc->filename($inputPSF, $inputPath);
     151$templateSources = $ipprc->filename($templateSources, $templatePath);
    146152
    147153&my_die("Couldn't find input: $template", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($template);
     
    151157&my_die("Couldn't find input: $inputMask", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inputMask);
    152158&my_die("Couldn't find input: $inputWeight", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inputWeight);
     159&my_die("Couldn't find input: $inputPSF", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inputPSF);
     160&my_die("Couldn't find input: $templateSources", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateSources);
    153161
    154162# Get the output filenames
     
    158166my $outputMask = $ipprc->filename("PPSUB.OUTPUT.MASK", $outputRoot);
    159167my $outputWeight = $ipprc->filename("PPSUB.OUTPUT.WEIGHT", $outputRoot);
     168my $outputSources = $ipprc->filename("PSPHOT.OUTPUT", $outputRoot);
    160169#my $bin1Name =  $ipprc->filename("PPSUB.BIN1", $outputRoot);
    161170#my $bin2Name =  $ipprc->filename("PPSUB.BIN2", $outputRoot);
     
    177186    $command .= " -stats $outputStats";
    178187    $command .= " -recipe PPSTATS WARPSTATS";
     188    $command .= " -sources $templateSources";
     189    $command .= " -psf $inputPSF";
    179190
    180191    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    187198    &my_die("Couldn't find expected output file: $outputMask", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputMask);
    188199    &my_die("Couldn't find expected output file: $outputWeight", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputWeight);
     200    &my_die("Couldn't find expected output file: $outputSources", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources);
    189201#    &my_die("Couldn't find expected output file: $bin1Name",    $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin1Name);
    190202#    &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.