IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23417


Ignore:
Timestamp:
Mar 18, 2009, 4:58:45 PM (17 years ago)
Author:
Paul Price
Message:

Provide both input and reference source lists.

File:
1 edited

Legend:

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

    r23397 r23417  
    9191
    9292# Identify the input and the template
    93 my ($input, $inputMask, $inputVariance, $inputPath); # Input files and path
     93my ($input, $inputMask, $inputVariance, $inputPath, $inputSources); # Input files and path
    9494my ($template, $templateMask, $templateVariance, $templatePath, $templateSources); # Template files and path
    9595my $tess_id;                    # Tesselation identifier
     
    115115            $inputMask = "PPSTACK.OUTPUT.MASK";
    116116            $inputVariance = "PPSTACK.OUTPUT.VARIANCE";
     117            $inputSources = "PSPHOT.OUT.CMF.MEF";  ## this must be consistent with the value in stack_skycell.pl:161
    117118        } else {
    118119            $inputMask = "PSWARP.OUTPUT.MASK";
    119120            $inputVariance = "PSWARP.OUTPUT.VARIANCE";
     121            $inputSources = "PSWARP.OUTPUT.SOURCES";
    120122        }
    121123    }
     
    160162# print "inputVariance: $inputVariance\n";
    161163# print "templateSources: $templateSources\n";
     164# print "inputSources: $inputSources\n";
    162165
    163166$templateMask = $ipprc->filename($templateMask, $templatePath);
     
    174177print "inputVariance: $inputVariance\n";
    175178print "templateSources: $templateSources\n";
     179print "inputSources: $inputSources\n";
    176180
    177181&my_die("Couldn't find input: $template", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($template);
    178182&my_die("Couldn't find input: $templateMask", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateMask);
    179183&my_die("Couldn't find input: $templateVariance", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateVariance);
     184&my_die("Couldn't find input: $templateSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateSources);
    180185&my_die("Couldn't find input: $input", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($input);
    181186&my_die("Couldn't find input: $inputMask", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inputMask);
    182187&my_die("Couldn't find input: $inputVariance", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inputVariance);
    183 &my_die("Couldn't find input: $templateSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateSources);
     188&my_die("Couldn't find input: $inputSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inputSources);
    184189
    185190# Get the output filenames
     
    198203# Perform subtraction
    199204unless ($no_op) {
    200     my $command = "$ppSub -inimage $input -refimage $template $outroot";
     205    my $command = "$ppSub $outroot";
     206    $command .= " -inimage $input";
     207    $command .= " -refimage $template";
    201208    $command .= " -inmask $inputMask";
    202209    $command .= " -refmask $templateMask";
    203210    $command .= " -invariance $inputVariance";
    204211    $command .= " -refvariance $templateVariance";
     212    $command .= " -insources $inputSources";
     213    $command .= " -refsources $templateSources";
    205214    $command .= " -stats $outputStats";
    206215    $command .= " -threads $threads" if defined $threads;
     
    211220    $command .= " -F PSPHOT.OUTPUT PSPHOT.OUT.CMF.MEF";
    212221    $command .= " -F PSPHOT.BACKMDL PSPHOT.BACKMDL.MEF";
    213     $command .= " -sources $templateSources";
    214222    $command .= " -photometry";
    215223    $command .= " -tracedest $traceDest -log $logDest";
Note: See TracChangeset for help on using the changeset viewer.