Changeset 16336
- Timestamp:
- Feb 6, 2008, 9:52:57 AM (18 years ago)
- Location:
- trunk/ippScripts/scripts
- Files:
-
- 6 edited
-
ipp_serial_camera.pl (modified) (3 diffs)
-
ipp_serial_chip.pl (modified) (3 diffs)
-
ipp_serial_diff.pl (modified) (2 diffs)
-
ipp_serial_stack.pl (modified) (3 diffs)
-
ipp_serial_warp.pl (modified) (3 diffs)
-
warp_overlap.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_serial_camera.pl
r14372 r16336 13 13 14 14 my ($dbname, # Database name to use 15 $workdir, # Working directory 15 $workdir_default, # Default working directory 16 $verbose, # Verbose operations? 16 17 $no_op, # No operations? 17 18 $no_update, # No updating? 18 19 ); 19 20 GetOptions( 20 'dbname|d=s' => \$dbname, 21 'workdir|w=s' => \$workdir, 21 'dbname=s' => \$dbname, 22 'workdir=s' => \$workdir_default, 23 'verbose' => \$verbose, 22 24 'no-op' => \$no_op, 23 25 'no-update' => \$no_update, … … 28 30 -exitval => 3, 29 31 ) unless defined $dbname; 32 33 $workdir_default = `pwd` unless defined $workdir_default; 30 34 31 35 my $mdcParser = PS::IPP::Metadata::Config->new; # Metadata config parser … … 52 56 my $exp_tag = $item->{exp_tag}; 53 57 my $camera = $item->{camera}; 58 my $workdir = $item->{workdir}; 54 59 60 $workdir = $workdir_default unless (defined $workdir or $workdir ne "NULL"); 61 my $outroot = $workdir . '/' . ${exp_tag} . '/' . ${exp_tag} . '.cm.' . ${cam_id}; 62 55 63 my $command = "$camera_exp --cam_id $cam_id --exp_tag $exp_tag --camera $camera --dbname $dbname"; 64 $command .= " --verbose" if defined $verbose; 56 65 $command .= " --no-op" if defined $no_op; 57 66 $command .= " --no-update" if defined $no_update; -
trunk/ippScripts/scripts/ipp_serial_chip.pl
r15481 r16336 13 13 14 14 my ($dbname, # Database name to use 15 $workdir_default, # Default working directory 16 $verbose, # Verbose operations? 15 17 $no_op, # No operations? 16 18 $no_update, # No updating? 17 19 ); 18 20 GetOptions( 19 'dbname|d=s' => \$dbname, 21 'dbname=s' => \$dbname, 22 'workdir=s' => \$workdir_default, 23 'verbose' => \$verbose, 20 24 'no-op' => \$no_op, 21 25 'no-update' => \$no_update, 22 26 ) or pod2usage( 2 ); 23 27 24 pod2usage( 25 -msg => "Required options: --dbname", 26 -exitval => 3, 27 ) unless defined $dbname; 28 pod2usage( -msg => "Required options: --dbname --workdir", 29 -exitval => 3, 30 ) unless 31 defined $dbname; 32 33 $workdir_default = `pwd` unless defined $workdir_default; 28 34 29 35 my $mdcParser = PS::IPP::Metadata::Config->new; # Metadata config parser … … 35 41 die "Can't find required tools.\n" if $missing_tools; 36 42 37 # Phase 2 imfile processing43 # Imfile processing 38 44 my @whole; # The whole list for processing 39 45 { … … 65 71 my $reduction = $item->{reduction}; 66 72 my $workdir = $item->{workdir}; 67 68 my $command = "$chip --chip_id $chip_id --exp_id $exp_id --exp_tag $exp_tag --class_id $class_id --uri $uri --dbname $dbname --camera $camera"; 73 $workdir = $workdir_default unless (defined $workdir or $workdir ne "NULL"); 74 75 my $outroot = $workdir . '/' . ${exp_tag} . '/' . ${exp_tag} . '.ch.' . ${chip_id}; 76 77 my $command = "$chip --chip_id $chip_id --exp_id $exp_id --exp_tag $exp_tag --class_id $class_id --uri $uri --dbname $dbname --camera $camera --outroot $outroot"; 69 78 $command .= " --reduction $reduction" if defined $reduction; 79 $command .= " --verbose" if defined $verbose; 70 80 $command .= " --no-op" if defined $no_op; 71 81 $command .= " --no-update" if defined $no_update; 72 $command .= " --workdir $workdir" if defined $workdir and $workdir ne "NULL";73 82 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 74 83 run( command => $command, verbose => 1 ); -
trunk/ippScripts/scripts/ipp_serial_diff.pl
r15458 r16336 26 26 27 27 my ($dbname, # Database name to use 28 $verbose, # Verbose operations? 28 29 $no_op, # No operations? 29 30 $no_update, # No updating? 30 31 ); 31 32 GetOptions( 32 'dbname|d=s' => \$dbname, 33 'dbname=s' => \$dbname, 34 'verbose' => \$verbose, 33 35 'no-op' => \$no_op, 34 36 'no-update' => \$no_update, … … 72 74 73 75 my $command = "$diff_skycell --diff_id $diff_id --dbname $dbname"; 76 $command .= " --verbose" if defined $verbose; 74 77 $command .= " --no-op" if defined $no_op; 75 78 $command .= " --no-update" if defined $no_update; -
trunk/ippScripts/scripts/ipp_serial_stack.pl
r15458 r16336 26 26 27 27 my ($dbname, # Database name to use 28 $verbose, # Verbose operations? 28 29 $no_op, # No operations? 29 30 $no_update, # No updating? … … 31 32 ); 32 33 GetOptions( 33 'dbname|d=s' => \$dbname, 34 'dbname=s' => \$dbname, 35 'verbose' => \$verbose, 34 36 'no-op' => \$no_op, 35 37 'no-update' => \$no_update, … … 74 76 75 77 my $command = "$stack_skycell --stack_id $stack_id --dbname $dbname"; 78 $command .= " --verbose" if defined $verbose; 76 79 $command .= " --no-op" if defined $no_op; 77 80 $command .= " --no-update" if defined $no_update; -
trunk/ippScripts/scripts/ipp_serial_warp.pl
r16323 r16336 26 26 27 27 my ($dbname, # Database name to use 28 $verbose, # Verbose operations? 28 29 $no_op, # No operations? 29 30 $no_update, # No updating? 30 31 ); 31 32 GetOptions( 32 'dbname|d=s' => \$dbname, 33 'dbname=s' => \$dbname, 34 'verbose' => \$verbose, 33 35 'no-op' => \$no_op, 34 36 'no-update' => \$no_update, … … 77 79 78 80 my $command = "$warp_overlap --warp_id $warp_id --camera $camera --tess_id $tess_id --dbname $dbname"; 81 $command .= " --verbose" if defined $verbose; 79 82 $command .= " --no-op" if defined $no_op; 80 83 $command .= " --no-update" if defined $no_update; … … 106 109 107 110 my $command = "$warp_skycell --warp_id $warp_id --skycell_id $skycell_id --tess_id $tess_id --camera $camera --dbname $dbname"; 111 $command .= " --verbose" if defined $verbose; 108 112 $command .= " --no-op" if defined $no_op; 109 113 $command .= " --no-update" if defined $no_update; -
trunk/ippScripts/scripts/warp_overlap.pl
r16329 r16336 159 159 # Extract the skycells to images, used as warp templates. 160 160 my @skycells = keys %unique_skycells; 161 generate_skycells($ipprc, $tess_id, \@skycells, $workdir ) or161 generate_skycells($ipprc, $tess_id, \@skycells, $workdir, $verbose) or 162 162 &my_die("Unable to generate skycells for tessellation $tess_id", $warp_id, $PS_EXIT_SYS_ERROR); 163 163
Note:
See TracChangeset
for help on using the changeset viewer.
