Changeset 16308 for trunk/ippScripts/scripts/warp_skycell.pl
- Timestamp:
- Feb 5, 2008, 11:47:19 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/warp_skycell.pl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/warp_skycell.pl
r16247 r16308 37 37 my $ipprc = PS::IPP::Config->new(); # IPP configuration 38 38 39 my ($warp_id, $skycell_id, $tess_id, $camera, $dbname, $workdir, $ no_update, $no_op, $save_temps);39 my ($warp_id, $skycell_id, $tess_id, $camera, $dbname, $workdir, $verbose, $no_update, $no_op, $save_temps); 40 40 GetOptions( 41 41 'warp_id|i=s' => \$warp_id, # Warp identifier … … 45 45 'dbname|d=s' => \$dbname, # Database name 46 46 'workdir|w=s' => \$workdir, # Working directory, for output files 47 'verbose' => \$verbose, # Print to stdout 47 48 'no-update' => \$no_update, # Don't update the database? 48 49 'no-op' => \$no_op, # Don't do any operations? … … 88 89 $command .= " -dbname $dbname" if defined $dbname; 89 90 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 90 run(command => $command, verbose => 1);91 run(command => $command, verbose => $verbose); 91 92 unless ($success) { 92 93 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); … … 105 106 my $command = "$ppConfigDump -camera $camera -dump-recipe PSWARP -"; 106 107 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 107 run(command => $command, verbose => 1);108 run(command => $command, verbose => $verbose); 108 109 unless ($success) { 109 110 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); … … 190 191 191 192 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 192 run(command => $command, verbose => 1);193 run(command => $command, verbose => $verbose); 193 194 unless ($success) { 194 195 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); … … 229 230 230 231 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 231 run(command => $command, verbose => 1);232 run(command => $command, verbose => $verbose); 232 233 unless ($success) { 233 234 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); … … 249 250 my $command = "$warptool -addwarped -warp_id $warp_id -skycell_id $skycell_id -tess_id $tess_id -code $exit_code"; 250 251 $command .= " -dbname $dbname" if defined $dbname; 251 run(command => $command, verbose => 1);252 run(command => $command, verbose => $verbose); 252 253 } 253 254 exit $exit_code;
Note:
See TracChangeset
for help on using the changeset viewer.
