Changeset 22430 for trunk/ippScripts/scripts/detrend_resid_exp.pl
- Timestamp:
- Feb 24, 2009, 12:00:25 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_resid_exp.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_resid_exp.pl
r20120 r22430 35 35 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); # option parsing 36 36 use Pod::Usage qw( pod2usage ); 37 38 # Look for programs we need 39 my $missing_tools; 40 my $dettool = can_run('dettool') or (warn "Can't find dettool" and $missing_tools = 1); 41 my $ppImage = can_run('ppImage') or (warn "Can't find ppImage" and $missing_tools = 1); 42 my $ppStatsFromMetadata = can_run('ppStatsFromMetadata') or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1); 43 if ($missing_tools) { 44 warn("Can't find required tools."); 45 exit($PS_EXIT_CONFIG_ERROR); 46 } 37 47 38 48 # parse the command-line options … … 69 79 defined $outroot; 70 80 81 # Unhandled exceptions should be passed on to my_die so they get pushed into the database 82 $SIG{__DIE__} = sub { die @_ if $^S; 83 my_die( $_[0], $det_id, $iter, $exp_id, $PS_EXIT_UNKNOWN_ERROR ); }; 84 71 85 # load IPP config information for the specified camera 72 86 $ipprc->define_camera($camera); … … 81 95 my $recipe = $ipprc->reduction($reduction, uc($det_type) . '_JPEG_RESID'); # Recipe to use 82 96 &my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $PS_EXIT_PROG_ERROR) unless defined $recipe; 83 84 # Look for programs we need85 my $missing_tools;86 my $dettool = can_run('dettool') or (warn "Can't find dettool" and $missing_tools = 1);87 my $ppImage = can_run('ppImage') or (warn "Can't find ppImage" and $missing_tools = 1);88 my $ppStatsFromMetadata = can_run('ppStatsFromMetadata') or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1);89 if ($missing_tools) {90 warn("Can't find required tools.");91 exit($PS_EXIT_CONFIG_ERROR);92 }93 97 94 98 # Get list of imfile files
Note:
See TracChangeset
for help on using the changeset viewer.
