Changeset 27062
- Timestamp:
- Feb 24, 2010, 2:41:51 PM (16 years ago)
- Location:
- trunk/ippScripts/scripts
- Files:
-
- 5 edited
-
camera_exp.pl (modified) (2 diffs)
-
chip_imfile.pl (modified) (1 diff)
-
diff_skycell.pl (modified) (6 diffs)
-
stack_skycell.pl (modified) (1 diff)
-
warp_skycell.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/camera_exp.pl
r27050 r27062 294 294 if ($do_stats) { 295 295 my $fpaStatsReal = $ipprc->file_resolve($fpaStats); 296 &my_die("Couldn't find expected output file: $fpaStats", $cam_id, $PS_EXIT_SYS_ERROR) unless -f $fpaStatsReal;296 &my_die("Couldn't find expected output file: $fpaStats", $cam_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $fpaStatsReal ); 297 297 298 298 # parse stats from metadata … … 317 317 foreach my $outMask (@outMasks) { 318 318 &my_die("Unable to find expected output file: $outMask", $cam_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($outMask); 319 } 320 321 if ($run_state eq 'new') { 322 &my_die("Couldn't find expected output file: $configuration", $cam_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($configuration); 319 323 } 320 324 } -
trunk/ippScripts/scripts/chip_imfile.pl
r26901 r27062 399 399 &my_die("Couldn't find expected output file: $outputBin1\n", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputBin1); 400 400 &my_die("Couldn't find expected output file: $outputBin2\n", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputBin2); 401 if ($run_state eq 'new') { 402 &my_die("Couldn't find expected output file: $configuration", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($configuration); 403 } 401 404 } 402 405 -
trunk/ippScripts/scripts/diff_skycell.pl
r26939 r27062 107 107 # Both are zero, so stack stack diff; 108 108 unless ($use_convolved) { 109 $use_convolved = 0;109 $use_convolved = 0; 110 110 } 111 111 } … … 120 120 $templatePath = $file->{path_base}; 121 121 if ($file->{warp_id} == 0) { 122 if ($use_convolved) {123 $template = "PPSTACK.OUTPUT";124 $templateMask = "PPSTACK.OUTPUT.MASK";125 $templateVariance = "PPSTACK.OUTPUT.VARIANCE";126 }127 else {128 $template = "PPSTACK.UNCONV";129 $templateMask = "PPSTACK.UNCONV.MASK";130 $templateVariance = "PPSTACK.UNCONV.VARIANCE";131 }122 if ($use_convolved) { 123 $template = "PPSTACK.OUTPUT"; 124 $templateMask = "PPSTACK.OUTPUT.MASK"; 125 $templateVariance = "PPSTACK.OUTPUT.VARIANCE"; 126 } 127 else { 128 $template = "PPSTACK.UNCONV"; 129 $templateMask = "PPSTACK.UNCONV.MASK"; 130 $templateVariance = "PPSTACK.UNCONV.VARIANCE"; 131 } 132 132 $templateSources = "PSPHOT.OUT.CMF.MEF"; ## this must be consistent with the value in stack_skycell.pl:161 133 133 # template is a stack so it doesn't need to be magicked … … 135 135 ## use an explicit stack name for psphot output objects 136 136 } else { 137 $template = "PSWARP.OUTPUT";137 $template = "PSWARP.OUTPUT"; 138 138 $templateMask = "PSWARP.OUTPUT.MASK"; 139 139 $templateVariance = "PSWARP.OUTPUT.VARIANCE"; … … 146 146 $inputMagic = $file->{magicked}; # if input is a stack the output can't be "magicked" 147 147 if ($file->{warp_id} == 0) { 148 if ($use_convolved) {149 $input = "PPSTACK.OUTPUT";150 $inputMask = "PPSTACK.OUTPUT.MASK";151 $inputVariance = "PPSTACK.OUTPUT.VARIANCE";152 }153 else {154 $input = "PPSTACK.UNCONV";155 $inputMask = "PPSTACK.UNCONV.MASK";156 $inputVariance = "PPSTACK.UNCONV.VARIANCE";157 }148 if ($use_convolved) { 149 $input = "PPSTACK.OUTPUT"; 150 $inputMask = "PPSTACK.OUTPUT.MASK"; 151 $inputVariance = "PPSTACK.OUTPUT.VARIANCE"; 152 } 153 else { 154 $input = "PPSTACK.UNCONV"; 155 $inputMask = "PPSTACK.UNCONV.MASK"; 156 $inputVariance = "PPSTACK.UNCONV.VARIANCE"; 157 } 158 158 $inputSources = "PSPHOT.OUT.CMF.MEF"; ## this must be consistent with the value in stack_skycell.pl:161 159 159 } else { 160 $input = "PSWARP.OUTPUT";160 $input = "PSWARP.OUTPUT"; 161 161 $inputMask = "PSWARP.OUTPUT.MASK"; 162 162 $inputVariance = "PSWARP.OUTPUT.VARIANCE"; … … 312 312 313 313 my $outputStatsReal = $ipprc->file_resolve($outputStats); 314 &my_die("Couldn't find expected output file: $outputStats", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless -f $outputStatsReal;314 &my_die("Couldn't find expected output file: $outputStats", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputStatsReal); 315 315 316 316 # measure chip stats … … 341 341 &my_die("Couldn't find expected output file: $inverseVariance", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inverseVariance); 342 342 &my_die("Couldn't find expected output file: $inverseSources", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inverseSources); 343 if ($run_state eq 'new') { 344 &my_die("Couldn't find expected output file: $configuration", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($configuration); 345 } 343 346 } 344 347 } -
trunk/ippScripts/scripts/stack_skycell.pl
r26600 r27062 283 283 &my_die("Couldn't find expected output file: $outputMask", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputMask); 284 284 &my_die("Couldn't find expected output file: $outputWeight", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputWeight); 285 if ($photometry) { 286 &my_die("Couldn't find expected output file: $outputSources", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources); 287 } 285 if ($photometry) { 286 &my_die("Couldn't find expected output file: $outputSources", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources); 287 } 288 if ($run_state eq 'new') { 289 &my_die("Couldn't find expected output file: $configuration", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($configuration); 290 } 288 291 # &my_die("Couldn't find expected output file: $bin1Name", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin1Name); 289 292 # &my_die("Couldn't find expected output file: $bin2Name", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin2Name); -
trunk/ippScripts/scripts/warp_skycell.pl
r27051 r27062 287 287 &my_die("Couldn't find expected output file: $outputSources", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources); 288 288 &my_die("Couldn't find expected output file: $outputPSF", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) if metadataLookupBool($recipe, 'PSF') and not $ipprc->file_exists($outputPSF); 289 if ($run_state eq 'new') { 290 &my_die("Couldn't find expected output file: $configuration", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($configuration); 291 } 289 292 } 290 293
Note:
See TracChangeset
for help on using the changeset viewer.
