Changeset 23186 for trunk/ippScripts/scripts/detrend_resid_imfile.pl
- Timestamp:
- Mar 4, 2009, 4:17:15 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_resid_imfile.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_resid_imfile.pl
r23183 r23186 17 17 use PS::IPP::Metadata::Config; 18 18 use PS::IPP::Config 1.01 qw( :standard ); 19 20 my $ipprc = PS::IPP::Config->new(); # IPP configuration21 19 22 20 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); … … 76 74 defined $detrend; 77 75 78 # Unhandled exceptions should be passed on to my_die so they get pushed into the database 79 $SIG{__DIE__} = sub { die @_ if $^S; 80 my_die( $_[0], $det_id, $iter, $exp_id, $class_id, $PS_EXIT_UNKNOWN_ERROR ); }; 81 82 $ipprc->define_camera($camera); 83 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id); 84 if ($redirect) { 85 $ipprc->redirect_output($logDest); 86 } 76 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_CONFIG_ERROR ); # IPP configuration 77 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or my_die( "Unable to find LOG.IMFILE", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_CONFIG_ERROR ); 78 $ipprc->redirect_output($logDest) or my_die( "Unable to find LOG.IMFILE", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_SYS_ERROR ) if $redirect; 87 79 88 80 # Recipes to use as a function of detrend type and mode … … 155 147 # my $outputName = $ipprc->filename("PPIMAGE.OUTPUT", $outroot, $class_id); 156 148 157 my $outputName = $ipprc->filename("PPIMAGE.OUTPUT.RESID", $outroot, $class_id); 149 my $filerule = $FILERULES->{$det_type}; # File rule to use 150 151 my $outputName = $ipprc->filename($filerule, $outroot, $class_id); 158 152 my $bin1Name = $ipprc->filename("PPIMAGE.BIN1", $outroot, $class_id); 159 153 my $bin2Name = $ipprc->filename("PPIMAGE.BIN2", $outroot, $class_id); … … 169 163 $command .= " -recipe JPEG $jpeg_recipe"; 170 164 $command .= " -recipe PPSTATS RESIDUAL"; 171 $command .= " -F PPIMAGE.OUTPUT $ FILERULES{$det_type}" if defined $FILERULES{$det_type};165 $command .= " -F PPIMAGE.OUTPUT $filerule"; 172 166 $command .= " -stats $outputStats"; 173 167 $command .= " -tracedest $traceDest -log $logDest";
Note:
See TracChangeset
for help on using the changeset viewer.
