Changeset 23417
- Timestamp:
- Mar 18, 2009, 4:58:45 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/diff_skycell.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/diff_skycell.pl
r23397 r23417 91 91 92 92 # Identify the input and the template 93 my ($input, $inputMask, $inputVariance, $inputPath ); # Input files and path93 my ($input, $inputMask, $inputVariance, $inputPath, $inputSources); # Input files and path 94 94 my ($template, $templateMask, $templateVariance, $templatePath, $templateSources); # Template files and path 95 95 my $tess_id; # Tesselation identifier … … 115 115 $inputMask = "PPSTACK.OUTPUT.MASK"; 116 116 $inputVariance = "PPSTACK.OUTPUT.VARIANCE"; 117 $inputSources = "PSPHOT.OUT.CMF.MEF"; ## this must be consistent with the value in stack_skycell.pl:161 117 118 } else { 118 119 $inputMask = "PSWARP.OUTPUT.MASK"; 119 120 $inputVariance = "PSWARP.OUTPUT.VARIANCE"; 121 $inputSources = "PSWARP.OUTPUT.SOURCES"; 120 122 } 121 123 } … … 160 162 # print "inputVariance: $inputVariance\n"; 161 163 # print "templateSources: $templateSources\n"; 164 # print "inputSources: $inputSources\n"; 162 165 163 166 $templateMask = $ipprc->filename($templateMask, $templatePath); … … 174 177 print "inputVariance: $inputVariance\n"; 175 178 print "templateSources: $templateSources\n"; 179 print "inputSources: $inputSources\n"; 176 180 177 181 &my_die("Couldn't find input: $template", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($template); 178 182 &my_die("Couldn't find input: $templateMask", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateMask); 179 183 &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); 180 185 &my_die("Couldn't find input: $input", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($input); 181 186 &my_die("Couldn't find input: $inputMask", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inputMask); 182 187 &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); 184 189 185 190 # Get the output filenames … … 198 203 # Perform subtraction 199 204 unless ($no_op) { 200 my $command = "$ppSub -inimage $input -refimage $template $outroot"; 205 my $command = "$ppSub $outroot"; 206 $command .= " -inimage $input"; 207 $command .= " -refimage $template"; 201 208 $command .= " -inmask $inputMask"; 202 209 $command .= " -refmask $templateMask"; 203 210 $command .= " -invariance $inputVariance"; 204 211 $command .= " -refvariance $templateVariance"; 212 $command .= " -insources $inputSources"; 213 $command .= " -refsources $templateSources"; 205 214 $command .= " -stats $outputStats"; 206 215 $command .= " -threads $threads" if defined $threads; … … 211 220 $command .= " -F PSPHOT.OUTPUT PSPHOT.OUT.CMF.MEF"; 212 221 $command .= " -F PSPHOT.BACKMDL PSPHOT.BACKMDL.MEF"; 213 $command .= " -sources $templateSources";214 222 $command .= " -photometry"; 215 223 $command .= " -tracedest $traceDest -log $logDest";
Note:
See TracChangeset
for help on using the changeset viewer.
