Changeset 11837 for trunk/ippScripts/scripts/phase4_overlap.pl
- Timestamp:
- Feb 15, 2007, 2:23:33 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/phase4_overlap.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/phase4_overlap.pl
r11829 r11837 32 32 use Pod::Usage qw( pod2usage ); 33 33 34 my ($ det_id, $dbname, $workdir, $no_update);34 my ($p4_id, $dbname, $workdir, $no_update, $no_op); 35 35 GetOptions( 36 36 'p4_id|i=s' => \$p4_id, # Phase 4 identifier 37 37 'dbname|d=s' => \$dbname, # Database name 38 38 'workdir|w=s' => \$workdir, # Working directory, for output files 39 'no-update' => \$no_update 39 'no-update' => \$no_update, # Don't update the database? 40 'no-op' => \$no_op, # Don't do any operations 40 41 ) or pod2usage( 2 ); 41 42 … … 67 68 } 68 69 70 my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files 69 71 my $metadata = $mdcParser->parse(join "", @$stdout_buf) or 70 72 &my_die("Unable to parse metadata config doc", $p4_id, $PS_EXIT_PROG_ERROR); … … 73 75 } 74 76 77 unless ($no_op) { 78 75 79 ### Calculates, in some as-yet unknown way the overlaps between imfiles and skycells 76 80 77 # Add in the skycell and tesselation for each imfile 78 foreach my $imfile (@$imfiles) { 79 $imfile->{skycell_id} = 'default'; 80 $imfile->{tess_id} = 'default'; 81 } else { 82 # Add in the skycell and tesselation for each imfile 83 foreach my $imfile (@$imfiles) { 84 $imfile->{skycell_id} = 'default'; 85 $imfile->{tess_id} = 'default'; 86 } 81 87 } 82 88 83 89 84 90 # Generate a MDC file with the overlaps 85 91 $workdir = $ipprc->convert_filename_absolute( $workdir ); 86 my $overlapName = File::Spec->catfile( $workdir, $p4_id . ".overlap.mdc");87 open my $overlapFile "> $overlapName" or92 my $overlapName = File::Spec->catfile( $workdir, $p4_id . '.overlap.mdc' ); 93 open my $overlapFile, "> $overlapName" or 88 94 &my_die("Unable to open mdc file $overlapName", $p4_id, $PS_EXIT_DATA_ERROR); 89 95 print $overlapFile "p4SkyCellMap MULTI\n\n";
Note:
See TracChangeset
for help on using the changeset viewer.
