Changeset 16746 for trunk/ippScripts/scripts/ipp_serial_warp.pl
- Timestamp:
- Feb 28, 2008, 4:35:57 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/ipp_serial_warp.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_serial_warp.pl
r16336 r16746 27 27 my ($dbname, # Database name to use 28 28 $verbose, # Verbose operations? 29 $workdir_global, # Global working directory 29 30 $no_op, # No operations? 30 31 $no_update, # No updating? … … 33 34 'dbname=s' => \$dbname, 34 35 'verbose' => \$verbose, 36 'workdir' => \$workdir_global, 35 37 'no-op' => \$no_op, 36 38 'no-update' => \$no_update, … … 82 84 $command .= " --no-op" if defined $no_op; 83 85 $command .= " --no-update" if defined $no_update; 84 $command .= " --workdir $workdir" if defined $workdir;85 86 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 86 87 run( command => $command, verbose => 1 ); … … 108 109 my $camera = $item->{camera}; 109 110 110 my $command = "$warp_skycell --warp_id $warp_id --skycell_id $skycell_id --tess_id $tess_id --camera $camera --dbname $dbname"; 111 $workdir = $workdir_global unless defined $workdir and $workdir ne "NULL"; 112 die "No working directory specified.\n" unless defined $workdir; 113 114 my $outroot = caturi( $workdir, "tess_$tess_id", $skycell_id, "$tess_id.$skycell_id.wrp.$warp_id" ); 115 116 my $command = "$warp_skycell --warp_id $warp_id --skycell_id $skycell_id --tess_id $tess_id --camera $camera --dbname $dbname --outroot $outroot"; 111 117 $command .= " --verbose" if defined $verbose; 112 118 $command .= " --no-op" if defined $no_op; 113 119 $command .= " --no-update" if defined $no_update; 114 $command .= " --workdir $workdir" if defined $workdir and $workdir ne "NULL";115 120 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 116 121 run( command => $command, verbose => 1 );
Note:
See TracChangeset
for help on using the changeset viewer.
