Changeset 22430 for trunk/ippScripts/scripts/warp_skycell.pl
- Timestamp:
- Feb 24, 2009, 12:00:25 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/warp_skycell.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/warp_skycell.pl
r21371 r22430 26 26 27 27 my $ipprc = PS::IPP::Config->new(); # IPP configuration 28 29 # Look for programs we need 30 my $missing_tools; 31 my $warptool = can_run('warptool') or (warn "Can't find warptool" and $missing_tools = 1); 32 my $pswarp = can_run('pswarp') or (warn "Can't find pswarp" and $missing_tools = 1); 33 my $ppConfigDump = can_run('ppConfigDump') or (warn "Can't find ppConfigDump" and $missing_tools = 1); 34 my $ppStatsFromMetadata = can_run('ppStatsFromMetadata') or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1); 35 if ($missing_tools) { 36 warn("Can't find required tools."); 37 exit($PS_EXIT_CONFIG_ERROR); 38 } 28 39 29 40 my ($warp_id, $skycell_id, $warp_skyfile_id, $tess_dir, $camera, $dbname, $outroot, $threads, $run_state, $verbose, $no_update, $no_op, $redirect, $save_temps); … … 57 68 and defined $run_state; 58 69 70 # Unhandled exceptions should be passed on to my_die so they get pushed into the database 71 $SIG{__DIE__} = sub { die @_ if $^S; 72 my_die( $_[0], $warp_id, $skycell_id, $tess_dir, $PS_EXIT_UNKNOWN_ERROR ); }; 73 59 74 $ipprc->define_camera($camera); 60 75 … … 65 80 66 81 my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_WARP); 67 68 # Look for programs we need69 my $missing_tools;70 my $warptool = can_run('warptool') or (warn "Can't find warptool" and $missing_tools = 1);71 my $pswarp = can_run('pswarp') or (warn "Can't find pswarp" and $missing_tools = 1);72 my $ppConfigDump = can_run('ppConfigDump') or (warn "Can't find ppConfigDump" and $missing_tools = 1);73 my $ppStatsFromMetadata = can_run('ppStatsFromMetadata') or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1);74 if ($missing_tools) {75 warn("Can't find required tools.");76 exit($PS_EXIT_CONFIG_ERROR);77 }78 82 79 83 # Get list of component imfiles for exposure
Note:
See TracChangeset
for help on using the changeset viewer.
