Changeset 27180
- Timestamp:
- Mar 3, 2010, 5:29:07 PM (16 years ago)
- Location:
- trunk/ippScripts/scripts
- Files:
-
- 12 edited
-
camera_exp.pl (modified) (3 diffs)
-
chip_imfile.pl (modified) (1 diff)
-
detrend_correct_imfile.pl (modified) (1 diff)
-
detrend_norm_apply.pl (modified) (1 diff)
-
detrend_norm_exp.pl (modified) (2 diffs)
-
detrend_process_exp.pl (modified) (2 diffs)
-
detrend_process_imfile.pl (modified) (2 diffs)
-
detrend_resid_exp.pl (modified) (4 diffs)
-
detrend_resid_imfile.pl (modified) (2 diffs)
-
detrend_stack.pl (modified) (3 diffs)
-
stack_skycell.pl (modified) (1 diff)
-
warp_skycell.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/camera_exp.pl
r27062 r27180 243 243 &my_die("Unable to perform ppImage: $error_code", $cam_id, $error_code); 244 244 } 245 &my_die("Unable to find expected output file: $jpeg1", $cam_id, $PS_EXIT_PROG_ERROR) unless -f $ipprc->file_resolve($jpeg1);245 &my_die("Unable to find expected output file: $jpeg1", $cam_id, $PS_EXIT_PROG_ERROR) unless $ipprc->file_exists($jpeg1); 246 246 } 247 247 … … 258 258 &my_die("Unable to perform ppImage: $error_code", $cam_id, $error_code); 259 259 } 260 &my_die("Unable to find expected output file: $jpeg2", $cam_id, $PS_EXIT_PROG_ERROR) unless -f $ipprc->file_resolve($jpeg2);260 &my_die("Unable to find expected output file: $jpeg2", $cam_id, $PS_EXIT_PROG_ERROR) unless $ipprc->file_exists($jpeg2); 261 261 } 262 262 … … 313 313 314 314 if (!$quality) { 315 &my_die("Unable to find expected output file: $fpaObjects", $cam_id, $PS_EXIT_PROG_ERROR) unless -f $ipprc->file_resolve($fpaObjects);315 &my_die("Unable to find expected output file: $fpaObjects", $cam_id, $PS_EXIT_PROG_ERROR) unless $ipprc->file_exists($fpaObjects); 316 316 317 317 foreach my $outMask (@outMasks) { 318 &my_die("Unable to find expected output file: $outMask", $cam_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($outMask);318 &my_die("Unable to find expected output file: $outMask", $cam_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outMask); 319 319 } 320 320 -
trunk/ippScripts/scripts/chip_imfile.pl
r27062 r27180 376 376 if ($do_stats) { 377 377 my $outputStatsReal = $ipprc->file_resolve($outputStats); 378 &my_die("Couldn't find expected output file: $outputStats", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR) unless -f $outputStatsReal;378 &my_die("Couldn't find expected output file: $outputStats", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputStatsReal); 379 379 380 380 # measure chip stats -
trunk/ippScripts/scripts/detrend_correct_imfile.pl
r24764 r27180 96 96 } 97 97 98 &my_die("Couldn't find expected output file: $outputImage", $det_id, $class_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($outputImage);98 &my_die("Couldn't find expected output file: $outputImage", $det_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputImage); 99 99 } 100 100 -
trunk/ippScripts/scripts/detrend_norm_apply.pl
r26514 r27180 150 150 &my_die("Unable to perform ppImage: $error_code", $det_id, $iter, $class_id, $error_code); 151 151 } 152 &my_die("Can't find expected output file: $output", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($output);153 &my_die("Can't find expected output file: $b1name", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($b1name);154 &my_die("Can't find expected output file: $b2name", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($b2name);152 &my_die("Can't find expected output file: $output", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($output); 153 &my_die("Can't find expected output file: $b1name", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($b1name); 154 &my_die("Can't find expected output file: $b2name", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($b2name); 155 155 156 156 my $statsNameReal = $ipprc->file_resolve($statsName); 157 &my_die("Can't find expected output file: $statsName", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless -f $statsNameReal;157 &my_die("Can't find expected output file: $statsName", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($statsNameReal); 158 158 159 159 # parse stats from metadata -
trunk/ippScripts/scripts/detrend_norm_exp.pl
r24764 r27180 144 144 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 145 145 run(command => $command, verbose => $verbose); 146 &my_die("Unable to find expected output file: $jpeg1Name", $det_id, $iter, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($jpeg1Name);146 &my_die("Unable to find expected output file: $jpeg1Name", $det_id, $iter, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($jpeg1Name); 147 147 148 148 # Make the jpeg for binning 2 … … 153 153 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 154 154 run(command => $command, verbose => $verbose); 155 &my_die("Unable to find expected output file: $jpeg2Name", $det_id, $iter, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($jpeg2Name);155 &my_die("Unable to find expected output file: $jpeg2Name", $det_id, $iter, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($jpeg2Name); 156 156 157 157 } -
trunk/ippScripts/scripts/detrend_process_exp.pl
r24764 r27180 156 156 &my_die("Unable to perform ppImage: $error_code", $det_id, $exp_id, $error_code); 157 157 } 158 &my_die("Unable to find expected output file: $jpeg1", $det_id, $exp_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($jpeg1);158 &my_die("Unable to find expected output file: $jpeg1", $det_id, $exp_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($jpeg1); 159 159 160 160 # Make the jpeg for binning 2 … … 169 169 &my_die("Unable to perform ppImage: $error_code", $det_id, $exp_id, $error_code); 170 170 } 171 &my_die("Unable to find expected output file: $jpeg2", $det_id, $exp_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($jpeg2);171 &my_die("Unable to find expected output file: $jpeg2", $det_id, $exp_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($jpeg2); 172 172 } 173 173 -
trunk/ippScripts/scripts/detrend_process_imfile.pl
r26514 r27180 91 91 'DOMEFLAT_RAW' => 'PPIMAGE.OUTPUT.DETREND', 92 92 'SKYFLAT_RAW' => 'PPIMAGE.OUTPUT.DETREND', 93 'SKYFLATTEST_RAW' => 'PPIMAGE.OUTPUT.DETREND',93 'SKYFLATTEST_RAW' => 'PPIMAGE.OUTPUT.DETREND', 94 94 'FLAT' => 'PPIMAGE.OUTPUT.DETREND', 95 95 'DOMEFLAT' => 'PPIMAGE.OUTPUT.DETREND', … … 139 139 } 140 140 141 &my_die("Couldn't find expected output file: $outputImage", $det_id, $exp_id, $class_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($outputImage);142 &my_die("Couldn't find expected output file: $outputBin1", $det_id, $exp_id, $class_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($outputBin1);143 &my_die("Couldn't find expected output file: $outputBin2", $det_id, $exp_id, $class_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($outputBin2);141 &my_die("Couldn't find expected output file: $outputImage", $det_id, $exp_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputImage); 142 &my_die("Couldn't find expected output file: $outputBin1", $det_id, $exp_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputBin1); 143 &my_die("Couldn't find expected output file: $outputBin2", $det_id, $exp_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputBin2); 144 144 145 145 my $outputStatsReal = $ipprc->file_resolve($outputStats); 146 &my_die("Couldn't find expected output file: $outputStats", $det_id, $exp_id, $class_id, $PS_EXIT_SYS_ERROR) unless -f $outputStatsReal;146 &my_die("Couldn't find expected output file: $outputStats", $det_id, $exp_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputStatsReal); 147 147 148 148 # parse stats from metadata -
trunk/ippScripts/scripts/detrend_resid_exp.pl
r24764 r27180 134 134 foreach my $norm (@$normsMD) { 135 135 my $class_id = $norm->{class_id}; 136 my $normalization = 1.0 / $norm->{norm};136 my $normalization = 1.0 / $norm->{norm}; 137 137 138 138 $norms{$class_id} = $normalization; … … 197 197 # modify and save the data in this block: 198 198 foreach my $data (@$mdComponents) { 199 my $norm = 1.0;200 if ($det_mode eq "master") {201 $norm = $norms{$class_id};202 }199 my $norm = 1.0; 200 if ($det_mode eq "master") { 201 $norm = $norms{$class_id}; 202 } 203 203 204 204 # fields to modify by the normalization: … … 272 272 &my_die("Unable to run ppImage: $error_code", $det_id, $iter, $exp_id, $error_code); 273 273 } 274 &my_die("Unable to find expected output file: $jpeg1Name", $det_id, $iter, $exp_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($jpeg1Name);274 &my_die("Unable to find expected output file: $jpeg1Name", $det_id, $iter, $exp_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($jpeg1Name); 275 275 276 276 # Make the jpeg for binning 2 … … 287 287 &my_die("Unable to run ppImage: $error_code", $det_id, $iter, $exp_id, $error_code); 288 288 } 289 &my_die("Unable to find expected output file: $jpeg2Name", $det_id, $iter, $exp_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($jpeg2Name);289 &my_die("Unable to find expected output file: $jpeg2Name", $det_id, $iter, $exp_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($jpeg2Name); 290 290 } 291 291 -
trunk/ippScripts/scripts/detrend_resid_imfile.pl
r26514 r27180 138 138 'DOMEFLAT_RAW' => 'PPIMAGE.OUTPUT.DETREND', 139 139 'SKYFLAT_RAW' => 'PPIMAGE.OUTPUT.DETREND', 140 'SKYFLATTEST_RAW' => 'PPIMAGE.OUTPUT.DETREND',140 'SKYFLATTEST_RAW' => 'PPIMAGE.OUTPUT.DETREND', 141 141 'FLAT' => 'PPIMAGE.OUTPUT.DETREND', 142 142 'DOMEFLAT' => 'PPIMAGE.OUTPUT.DETREND', … … 190 190 } 191 191 192 &my_die("Couldn't find expected output file: $outputName", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($outputName);193 &my_die("Couldn't find expected output file: $bin1Name", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($bin1Name);194 &my_die("Couldn't find expected output file: $bin2Name", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($bin2Name);192 &my_die("Couldn't find expected output file: $outputName", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputName); 193 &my_die("Couldn't find expected output file: $bin1Name", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin1Name); 194 &my_die("Couldn't find expected output file: $bin2Name", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin2Name); 195 195 196 196 my $outputStatsReal = $ipprc->file_resolve($outputStats); 197 &my_die("Couldn't find expected output file: $outputStats", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_SYS_ERROR) unless -f $outputStatsReal;197 &my_die("Couldn't find expected output file: $outputStats", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputStatsReal); 198 198 199 199 # ppStatsFromMetadata $outputStats - DETREND_RESID_IMFILE -
trunk/ippScripts/scripts/detrend_stack.pl
r26499 r27180 89 89 'DOMEFLAT_RAW' => 'PPMERGE.OUTPUT.FLAT', 90 90 'SKYFLAT_RAW' => 'PPMERGE.OUTPUT.FLAT', 91 'SKYFLATTEST_RAW' => 'PPMERGE.OUTPUT.FLAT',91 'SKYFLATTEST_RAW' => 'PPMERGE.OUTPUT.FLAT', 92 92 'FLAT' => 'PPMERGE.OUTPUT.FLAT', 93 93 'DOMEFLAT' => 'PPMERGE.OUTPUT.FLAT', … … 114 114 'DOMEFLAT_RAW' => 'DETSTATS', 115 115 'SKYFLAT_RAW' => 'DETSTATS', 116 'SKYFLATTEST_RAW' => 'DETSTATS',116 'SKYFLATTEST_RAW' => 'DETSTATS', 117 117 'FLAT' => 'DETSTATS', 118 118 'DOMEFLAT' => 'DETSTATS', … … 206 206 &my_die("Unable to perform ppMerge: $error_code", $det_id, $iter, $class_id, $error_code); 207 207 } 208 &my_die("Unable to find expected output file: $outputStack\n", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($outputStack);209 &my_die("Unable to find expected output file: $outputCount\n", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($outputCount);210 &my_die("Unable to find expected output file: $outputSigma\n", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($outputSigma);208 &my_die("Unable to find expected output file: $outputStack\n", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputStack); 209 &my_die("Unable to find expected output file: $outputCount\n", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputCount); 210 &my_die("Unable to find expected output file: $outputSigma\n", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSigma); 211 211 212 212 my $outputStatsReal = $ipprc->file_resolve($outputStats); 213 &my_die("Couldn't find expected output file: $outputStats", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless -f $outputStatsReal;213 &my_die("Couldn't find expected output file: $outputStats", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputStatsReal); 214 214 215 215 # parse stats from metadata -
trunk/ippScripts/scripts/stack_skycell.pl
r27130 r27180 261 261 if ($do_stats) { 262 262 my $outputStatsReal = $ipprc->file_resolve($outputStats); 263 &my_die("Couldn't find expected output file: $outputStats", $stack_id, $PS_EXIT_SYS_ERROR) unless -f $outputStatsReal;263 &my_die("Couldn't find expected output file: $outputStats", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputStatsReal); 264 264 265 265 # measure stats -
trunk/ippScripts/scripts/warp_skycell.pl
r27062 r27180 263 263 # Check first for the stats file 264 264 my $outputStatsReal = $ipprc->file_resolve($outputStats); 265 &my_die("Couldn't find expected output file: $outputStats", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless -f $outputStatsReal;265 &my_die("Couldn't find expected output file: $outputStats", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputStatsReal); 266 266 &my_die("Stats file has zero size: $outputStats", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless -s $outputStatsReal; 267 267
Note:
See TracChangeset
for help on using the changeset viewer.
