Changeset 23740 for trunk/ippScripts/scripts/diff_skycell.pl
- Timestamp:
- Apr 7, 2009, 4:50:25 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/diff_skycell.pl (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/pap merged: 23690,23704,23711,23719,23723,23730-23735
- Property svn:mergeinfo changed
-
trunk/ippScripts/scripts/diff_skycell.pl
r23688 r23740 95 95 my $tess_id; # Tesselation identifier 96 96 my $camera; # Camera 97 my $magicked_0;98 my $ magicked_1;97 my ($inputMagic, $templateMagic); # Are the inputs been magicked? 98 my $inverse = 1; # Generate inverse subtraction if warp-warp 99 99 foreach my $file (@$files) { 100 100 if (defined $file->{template} and $file->{template}) { … … 106 106 $templateSources = "PSPHOT.OUT.CMF.MEF"; ## this must be consistent with the value in stack_skycell.pl:161 107 107 # template is a stack so it doesn't need to be magicked 108 $magicked_1 = 1; 108 $templateMagic = 1; 109 $inverse = 0; 109 110 ## use an explicit stack name for psphot output objects 110 111 } else { … … 112 113 $templateVariance = "PSWARP.OUTPUT.VARIANCE"; 113 114 $templateSources = "PSWARP.OUTPUT.SOURCES"; 114 $ magicked_1= $file->{magicked};115 $templateMagic = $file->{magicked}; 115 116 } 116 117 } else { 117 118 $input = $file->{uri}; 118 119 $inputPath = $file->{path_base}; 119 $ magicked_0= $file->{magicked}; # if input is a stack the output can't be "magicked"120 $inputMagic = $file->{magicked}; # if input is a stack the output can't be "magicked" 120 121 if ($file->{warp_id} == 0) { 121 122 $inputMask = "PPSTACK.OUTPUT.MASK"; 122 123 $inputVariance = "PPSTACK.OUTPUT.VARIANCE"; 123 124 $inputSources = "PSPHOT.OUT.CMF.MEF"; ## this must be consistent with the value in stack_skycell.pl:161 125 $inverse = 0; 124 126 } else { 125 127 $inputMask = "PSWARP.OUTPUT.MASK"; … … 145 147 $camera = $file->{camera}; 146 148 } 147 148 149 } 149 150 … … 158 159 # note that difftool -inputskyfile outputs the magicked boolean as an int not T or F 159 160 # because the output is constructed from a union of two selects 160 my $magicked = $ magicked_0 && $magicked_1;161 my $magicked = $inputMagic && $templateMagic; 161 162 162 163 # Recipes to use based on reduction class … … 207 208 my $outputMask = $ipprc->filename("PPSUB.OUTPUT.MASK", $outroot); 208 209 my $outputVariance = $ipprc->filename("PPSUB.OUTPUT.VARIANCE", $outroot); 210 my $outputSources = $ipprc->filename("PPSUB.OUTPUT.SOURCES", $outroot); 211 my $jpeg1Name = $ipprc->filename("PPSUB.OUTPUT.JPEG1", $outroot); 212 my $jpeg2Name = $ipprc->filename("PPSUB.OUTPUT.JPEG2", $outroot); 209 213 my $configuration = $ipprc->filename("PPSUB.CONFIG", $outroot); 210 my $outputSources = $ipprc->filename("PSPHOT.OUT.CMF.MEF", $outroot);211 #my $bin1Name = $ipprc->filename("PPSUB.BIN1", $outroot);212 #my $bin2Name = $ipprc->filename("PPSUB.BIN2", $outroot);213 214 my $outputStats = $ipprc->filename("SKYCELL.STATS", $outroot); 214 215 my $traceDest = $ipprc->filename("TRACE.EXP", $outroot); 216 217 my ($inverseName, $inverseMask, $inverseVariance, $inverseSources); 218 if ($inverse) { 219 $inverseName = $ipprc->filename("PPSUB.INVERSE", $outroot); 220 $inverseMask = $ipprc->filename("PPSUB.INVERSE.MASK", $outroot); 221 $inverseVariance = $ipprc->filename("PPSUB.INVERSE.VARIANCE", $outroot); 222 $inverseSources = $ipprc->filename("PPSUB.INVERSE.SOURCES", $outroot); 223 } 215 224 216 225 my $cmdflags; … … 236 245 $command .= " -F PSPHOT.BACKMDL PSPHOT.BACKMDL.MEF"; 237 246 $command .= " -photometry"; 247 $command .= " -inverse" if $inverse; 238 248 $command .= " -tracedest $traceDest -log $logDest"; 239 249 $command .= " -dumpconfig $configuration"; … … 271 281 &my_die("Couldn't find expected output file: $outputMask", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputMask); 272 282 &my_die("Couldn't find expected output file: $outputVariance", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputVariance); 273 # &my_die("Couldn't find expected output file: $outputSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources); 274 # &my_die("Couldn't find expected output file: $bin1Name", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin1Name); 275 # &my_die("Couldn't find expected output file: $bin2Name", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin2Name); 283 &my_die("Couldn't find expected output file: $outputSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources); 284 &my_die("Couldn't find expected output file: $jpeg1Name", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($jpeg1Name); 285 &my_die("Couldn't find expected output file: $jpeg2Name", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($jpeg2Name); 286 if ($inverse) { 287 &my_die("Couldn't find expected output file: $inverseName", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inverseName); 288 &my_die("Couldn't find expected output file: $inverseMask", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inverseMask); 289 &my_die("Couldn't find expected output file: $inverseVariance", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inverseVariance); 290 &my_die("Couldn't find expected output file: $inverseSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inverseSources); 291 } 276 292 } 277 293 }
Note:
See TracChangeset
for help on using the changeset viewer.
