Changeset 16308 for trunk/ippScripts/scripts/chip_imfile.pl
- Timestamp:
- Feb 5, 2008, 11:47:19 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/chip_imfile.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/chip_imfile.pl
r16247 r16308 33 33 34 34 # Parse the command-line arguments 35 my ($exp_id, $exp_tag, $chip_id, $class_id, $uri, $camera, $outroot, $dbname, $reduction, $no_update, $no_op); 35 my ( $exp_id, $exp_tag, $chip_id, $class_id, $uri, $camera, $outroot, $dbname, $reduction, $verbose, 36 $no_update, $no_op ); 36 37 GetOptions( 37 'exp_id=s' => \$exp_id, # Exposure identifier 38 'exp_tag=s' => \$exp_tag, # Exposure identifier 39 'chip_id=s' => \$chip_id, # Chiptool identifier 40 'class_id=s' => \$class_id, # Class identifier 41 'uri|u=s' => \$uri, # Input FITS file 42 'camera|c=s' => \$camera, # Camera 38 'exp_id=s' => \$exp_id, # Exposure identifier 39 'exp_tag=s' => \$exp_tag, # Exposure identifier 40 'chip_id=s' => \$chip_id, # Chiptool identifier 41 'class_id=s' => \$class_id, # Class identifier 42 'uri|u=s' => \$uri, # Input FITS file 43 'camera|c=s' => \$camera, # Camera 43 44 'outroot|w=s' => \$outroot, # output file base name 44 45 'dbname|d=s' => \$dbname, # Database name 45 'reduction=s' => \$reduction, # Reduction class 46 'no-update' => \$no_update, # Don't update the database? 47 'no-op' => \$no_op, # Don't do any operations? 46 'reduction=s' => \$reduction, # Reduction class 47 'verbose' => \$verbose, # Print to stdout 48 'no-update' => \$no_update, # Don't update the database? 49 'no-op' => \$no_op, # Don't do any operations? 48 50 ) or pod2usage( 2 ); 49 51 … … 70 72 # values to extract from output metadata and the stats to calculate 71 73 # XXX commented-out entries are not yet defined in the output files 72 my $STATS = 73 [ 74 my $STATS = 75 [ 74 76 # PPSTATS KEYWORD STATISTIC CHIPTOOL FLAG 75 77 { name => "ROBUST_MEDIAN", type => "mean", flag => "-bg", dtype => "float" }, … … 103 105 my $chiptool = can_run('chiptool') or (warn "Can't find chiptool" and $missing_tools = 1); 104 106 my $ppImage = can_run('ppImage') or (warn "Can't find ppImage" and $missing_tools = 1); 105 if ($missing_tools) { 107 if ($missing_tools) { 106 108 warn("Can't find required tools."); 107 exit($PS_EXIT_CONFIG_ERROR); 109 exit($PS_EXIT_CONFIG_ERROR); 108 110 } 109 111 … … 140 142 141 143 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 142 run(command => $command, verbose => 1);144 run(command => $command, verbose => $verbose); 143 145 unless ($success) { 144 146 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); … … 185 187 unless ($no_update) { 186 188 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 187 run(command => $command, verbose => 1);189 run(command => $command, verbose => $verbose); 188 190 unless ($success) { 189 191 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Note:
See TracChangeset
for help on using the changeset viewer.
