- Timestamp:
- Aug 30, 2013, 4:52:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130711/ippScripts/scripts/chip_imfile.pl
- Property svn:mergeinfo changed
/tags/ipp-test-20130710/ippScripts/scripts/chip_imfile.pl (added) merged: 35796,35808 /trunk/ippScripts/scripts/chip_imfile.pl (added) merged: 35809,35811,35894
r35789 r36072 233 233 if ($do_photom and ($run_state eq 'update')) { 234 234 # If previous psf file is ok skip photometry 235 if ( $dump_config ||rerun_photometry($outroot, $class_id)) {235 if (rerun_photometry($outroot, $class_id)) { 236 236 carp "Will rerun photometry\n"; 237 237 } else { … … 348 348 } 349 349 } 350 # resolve uri 351 my $uriReal = $ipprc->file_resolve( $uri ); 352 # If instance is not found or if it doesn't exist try running neb-repair on it 353 # Note: file_exists returns false if the file exists but has zero size 354 if (!$uriReal or !$ipprc->file_exists($uriReal)) { 355 my $repair_cmd = "$nebrepair $uri"; 356 my ($repair_success, $repair_error_code, $repair_full_buf, $repair_stdout_buf, $repair_stderr_buf ) = run(command => $repair_cmd, verbose => $verbose); 357 unless ($repair_success) { 358 &my_die("Unable to attempt repair: $uri $repair_error_code", $exp_id,$chip_id, $class_id, $PS_EXIT_SYS_ERROR); 359 } 360 $uriReal = $ipprc->file_resolve( $uri ); 361 } 362 363 &my_die("Unable to resolve $uri on $host", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR) if !$uriReal; 350 364 351 365 # if recipe option PPIMAGE:APPLY.BURNTOOL is set and the burntool information is stored in … … 379 393 UNLINK => !$save_temps, SUFFIX => '.fits' ); 380 394 381 # get the UNIX version of the (possible) neb: or path: filename382 my $uriReal = $ipprc->file_resolve( $uri );383 # Catch errors here384 if (!$uriReal) {385 my $repair_cmd = "$nebrepair $uri";386 my ($repair_success, $repair_error_code, $repair_full_buf, $repair_stdout_buf, $repair_stderr_buf ) = run(command => $repair_cmd, verbose => $verbose);387 unless ($repair_success) {388 &my_die("Unable to attempt repair: $uri $repair_error_code", $exp_id,$chip_id, $class_id, $PS_EXIT_SYS_ERROR);389 }390 $uriReal = $ipprc->file_resolve( $uri );391 }392 393 &my_die("Unable to resolve $uri on $host", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR) if !$uriReal;394 395 395 # funpack into the temp file. 396 396 my $funpack_cmd = "$funpack -S $uriReal > $tempName"; … … 492 492 if ($no_compress_image) { 493 493 $command .= " -R PPIMAGE.CHIP FITS.TYPE NONE"; 494 } 495 if ($run_state eq 'update' and metadataLookupBool($recipeData, 'MASK.STATS')) { 496 $command .= " -Db PPIMAGE:MASK.STATS FALSE "; 494 497 } 495 498 $command .= $burntoolArguments if $burntoolArguments; - Property svn:mergeinfo changed
Note:
See TracChangeset
for help on using the changeset viewer.
