Changeset 18562 for trunk/ippScripts/scripts/chip_imfile.pl
- Timestamp:
- Jul 15, 2008, 10:33:17 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/chip_imfile.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/chip_imfile.pl
r18360 r18562 26 26 # Parse the command-line arguments 27 27 my ( $exp_id, $chip_id, $class_id, $uri, $camera, $outroot, $dbname, $reduction, $verbose, 28 $no_update, $no_op );28 $no_update, $no_op, $redirect ); 29 29 GetOptions( 30 'exp_id=s' => \$exp_id, # Exposure identifier 31 'chip_id=s' => \$chip_id, # Chiptool identifier 32 'class_id=s' => \$class_id, # Class identifier 33 'uri|u=s' => \$uri, # Input FITS file 34 'camera|c=s' => \$camera, # Camera 35 'outroot|w=s' => \$outroot, # output file base name 36 'dbname|d=s' => \$dbname, # Database name 37 'reduction=s' => \$reduction, # Reduction class 38 'verbose' => \$verbose, # Print to stdout 39 'no-update' => \$no_update, # Don't update the database? 40 'no-op' => \$no_op, # Don't do any operations? 41 ) or pod2usage( 2 ); 30 'exp_id=s' => \$exp_id, # Exposure identifier 31 'chip_id=s' => \$chip_id, # Chiptool identifier 32 'class_id=s' => \$class_id, # Class identifier 33 'uri|u=s' => \$uri, # Input FITS file 34 'camera|c=s' => \$camera, # Camera 35 'outroot|w=s' => \$outroot, # output file base name 36 'dbname|d=s' => \$dbname, # Database name 37 'reduction=s' => \$reduction, # Reduction class 38 'verbose' => \$verbose, # Print to stdout 39 'no-update' => \$no_update, # Don't update the database? 40 'no-op' => \$no_op, # Don't do any operations? 41 'redirect-output' => \$redirect, 42 ) or pod2usage( 2 ); 42 43 43 44 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 52 53 53 54 $ipprc->define_camera($camera); 55 56 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR); 57 58 $ipprc->redirect_output($logDest) if $redirect; 54 59 55 60 # Recipes to use based on reduction class … … 125 130 my $outputStats = $ipprc->filename("PPIMAGE.STATS", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR); 126 131 my $traceDest = $ipprc->filename("TRACE.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR); 127 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR);128 132 129 133 # Run ppImage
Note:
See TracChangeset
for help on using the changeset viewer.
