Changeset 17792 for trunk/ippScripts/scripts
- Timestamp:
- May 23, 2008, 3:52:15 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/warp_overlap.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/warp_overlap.pl
r17671 r17792 97 97 } 98 98 99 100 99 101 # Determine the imfile/skycell overlaps 100 102 my @overlaps = (); 101 102 103 unless ($no_op) { 103 104 # Calculate the overlaps between imfiles and skycells … … 156 157 } 157 158 158 # XXX this file needs some additional error checking: if no overlaps are found, we159 # If no overlaps are found, we 159 160 # keep running this step over and over (a successful warptool -addoverlap prevents 160 161 # successive warptime -imfile from running. 162 &my_die("Unable to find any overlaps", $warp_id, $PS_EXIT_PROG_ERROR) if scalar @overlaps == 0; 161 163 162 164 # Generate a MDC file with the overlaps … … 197 199 my $exit_code = shift; # Exit code to add 198 200 199 warn($msg); 200 201 # No failure option on warptool for this mode, so just die. 201 carp($msg); 202 if (defined $warp_id and not $no_update) { 203 my $command = "$warptool -addoverlap"; 204 $command .= " -warp_id $warp_id"; 205 $command .= " -code $exit_code"; 206 $command .= " -dbname $dbname" if defined $dbname; 207 system ($command); 208 } 202 209 exit $exit_code; 203 210 }
Note:
See TracChangeset
for help on using the changeset viewer.
