- Timestamp:
- Mar 17, 2009, 12:08:50 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/detrend_stack.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk merged eligible /branches/eam_branches/eam_branch_20090303 23158-23228
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/cnb_branches/cnb_branch_20090301/ippScripts/scripts/detrend_stack.pl
r22430 r23352 18 18 use PS::IPP::Metadata::List qw( parse_md_list ); 19 19 use PS::IPP::Config 1.01 qw( :standard ); 20 21 my $ipprc = PS::IPP::Config->new(); # IPP configuration22 20 23 21 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); … … 63 61 defined $outroot; 64 62 65 $ipprc->define_camera($camera);66 63 $det_type = uc($det_type); 67 64 65 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR ); # IPP configuration 68 66 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) 69 67 or &my_die("Missing entry in file rules", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR); 70 71 # Unhandled exceptions should be passed on to my_die so they get pushed into the database 72 $SIG{__DIE__} = sub { die @_ if $^S; 73 my_die( $_[0], $det_id, $iter, $class_id, $PS_EXIT_UNKNOWN_ERROR ); }; 74 75 # optionally redirect the outputs from this script to LOG.IMFILE 76 $ipprc->redirect_output($logDest) if $redirect; 68 $ipprc->redirect_output($logDest) or my_die( "Unable to redirect output", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR ) if $redirect; 77 69 78 70 # Recipes to use as a function of detrend type … … 259 251 my $exit_code = shift; # Exit code to add 260 252 253 $exit_code = $PS_EXIT_PROG_ERROR unless defined $exit_code; 254 261 255 carp($msg); 262 256 if (defined $det_id and defined $iter and defined $class_id and not $no_update) {
Note:
See TracChangeset
for help on using the changeset viewer.
