Changeset 18562 for trunk/ippScripts/scripts/fake_imfile.pl
- Timestamp:
- Jul 15, 2008, 10:33:17 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/fake_imfile.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/fake_imfile.pl
r18020 r18562 42 42 # Parse the command-line arguments 43 43 my ( $exp_id, $fake_id, $class_id, $chiproot, $camroot, $camera, $outroot, 44 $dbname, $reduction, $verbose, $no_update, $no_op );44 $dbname, $reduction, $verbose, $no_update, $no_op, $redirect ); 45 45 GetOptions( 46 'exp_id=s' => \$exp_id, # Exposure identifier 47 'fake_id=s' => \$fake_id, # Chiptool identifier 48 'class_id=s' => \$class_id, # Class identifier 49 'chiproot=s' => \$chiproot, # Input Chip files (root) 50 'camroot=s' => \$camroot, # Input Camera files (root) 51 'camera|c=s' => \$camera, # Camera 52 'outroot|w=s' => \$outroot, # output file base name 53 'dbname|d=s' => \$dbname, # Database name 54 'reduction=s' => \$reduction, # Reduction class 55 'verbose' => \$verbose, # Print to stdout 56 'no-update' => \$no_update, # Don't update the database? 57 'no-op' => \$no_op, # Don't do any operations? 58 ) or pod2usage( 2 ); 46 'exp_id=s' => \$exp_id, # Exposure identifier 47 'fake_id=s' => \$fake_id, # Chiptool identifier 48 'class_id=s' => \$class_id, # Class identifier 49 'chiproot=s' => \$chiproot, # Input Chip files (root) 50 'camroot=s' => \$camroot, # Input Camera files (root) 51 'camera|c=s' => \$camera, # Camera 52 'outroot|w=s' => \$outroot, # output file base name 53 'dbname|d=s' => \$dbname, # Database name 54 'reduction=s' => \$reduction, # Reduction class 55 'verbose' => \$verbose, # Print to stdout 56 'no-update' => \$no_update, # Don't update the database? 57 'no-op' => \$no_op, # Don't do any operations? 58 'redirect-output' => \$redirect, 59 ) or pod2usage( 2 ); 59 60 60 61 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 71 72 $ipprc->define_camera($camera); 72 73 74 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $fake_id, $class_id, $PS_EXIT_CONFIG_ERROR); 75 76 $ipprc->redirect_output($logDest) if $redirect; 77 73 78 # Recipes to use based on reduction class 74 79 $reduction = 'DEFAULT' unless defined $reduction; … … 116 121 my $cameraObjects = $ipprc->filename("PSASTRO.OUTPUT", $camroot) or &my_die("Missing entry from camera config", $exp_id, $fake_id, $class_id, $PS_EXIT_CONFIG_ERROR); 117 122 my $traceDest = $ipprc->filename("TRACE.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $fake_id, $class_id, $PS_EXIT_CONFIG_ERROR); 118 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $fake_id, $class_id, $PS_EXIT_CONFIG_ERROR);119 123 120 124 # XXX check for existence of input data
Note:
See TracChangeset
for help on using the changeset viewer.
