- Timestamp:
- Mar 29, 2010, 3:55:49 PM (16 years ago)
- Location:
- branches/eam_branches/20100225
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/camera_exp.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20100225
- Property svn:mergeinfo changed
-
branches/eam_branches/20100225/ippScripts/scripts/camera_exp.pl
r27062 r27517 171 171 172 172 # XXX we perform astrometry iff photometry output exists 173 my $chipObjectsExist = 0;174 173 my @outMasks; # Names of output masks 175 174 foreach my $file (@$files) { 175 next if $file->{quality} != 0; 176 176 # use the path_base as OUTPUT root and convert the filenames with ipprc->filename: 177 177 my $class_id = $file->{class_id}; … … 181 181 my $chipObjects = $ipprc->filename("PSPHOT.OUTPUT", $file->{path_base}, $class_id); 182 182 my $chipMask = $ipprc->filename("PPIMAGE.CHIP.MASK", $file->{path_base}, $class_id); 183 184 # if any of the output chip photometry files exist, we can run psastro / addstar below185 if ($ipprc->file_exists($chipObjects)) {186 $chipObjectsExist = 1;187 } else {188 if ($verbose) { print "skipping $chipObjects (not found)\n"; }189 next;190 }191 183 192 184 print $list1File ($ipprc->filename("PPIMAGE.BIN1", $file->{path_base}, $class_id) . "\n"); … … 243 235 &my_die("Unable to perform ppImage: $error_code", $cam_id, $error_code); 244 236 } 245 &my_die("Unable to find expected output file: $jpeg1", $cam_id, $PS_EXIT_PROG_ERROR) unless -f $ipprc->file_resolve($jpeg1);237 &my_die("Unable to find expected output file: $jpeg1", $cam_id, $PS_EXIT_PROG_ERROR) unless $ipprc->file_exists($jpeg1); 246 238 } 247 239 … … 258 250 &my_die("Unable to perform ppImage: $error_code", $cam_id, $error_code); 259 251 } 260 &my_die("Unable to find expected output file: $jpeg2", $cam_id, $PS_EXIT_PROG_ERROR) unless -f $ipprc->file_resolve($jpeg2); 261 } 262 263 # only run psastro / addstar if any of the output chip astrometry files exist (should we test for successful astrometry?) 264 if ($chipObjectsExist) { 252 &my_die("Unable to find expected output file: $jpeg2", $cam_id, $PS_EXIT_PROG_ERROR) unless $ipprc->file_exists($jpeg2); 253 } 254 255 { 265 256 # run psastro on the chipObjects, producing fpaObjects 266 257 my $command; … … 313 304 314 305 if (!$quality) { 315 &my_die("Unable to find expected output file: $fpaObjects", $cam_id, $PS_EXIT_PROG_ERROR) unless -f $ipprc->file_resolve($fpaObjects);306 &my_die("Unable to find expected output file: $fpaObjects", $cam_id, $PS_EXIT_PROG_ERROR) unless $ipprc->file_exists($fpaObjects); 316 307 317 308 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);309 &my_die("Unable to find expected output file: $outMask", $cam_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outMask); 319 310 } 320 311
Note:
See TracChangeset
for help on using the changeset viewer.
