Changeset 13826
- Timestamp:
- Jun 13, 2007, 6:03:39 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/warp_overlap.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/warp_overlap.pl
r13643 r13826 129 129 my $fileLevel = $imfile->{filelevel}; 130 130 my $entry = ""; 131 if ( $fileLeveleq "chip") {131 if (lc($fileLevel) eq "chip") { 132 132 my $class_id = $imfile->{class_id}; 133 133 my $chipRoot = $ipprc->file_resolve( $imfile->{chip_path_base} ); … … 136 136 print STDERR "class: $class_id, chiproot: $chipRoot, extname: $extname\n"; 137 137 138 $entry = "$psastroRootFile\[$extname\]";138 $entry = $psastroRootFile . '\[' . $extname . '\]'; 139 139 } else { 140 140 $entry = "$psastroRootFile"; 141 141 } 142 142 143 my @skycells = &select_skycells ($entry, @matchlist); 143 144 foreach my $skycell (@skycells) { … … 150 151 push @overlaps, \%overlap; 151 152 152 printf STDERR "overlap: %s : %s \n", $skycell, $imfile->{cam_id};153 printf STDERR "overlap: %s : %s , %s\n", $skycell, $imfile->{cam_id}, $imfile->{class_id}; 153 154 154 155 # generate a unique list of the skycells … … 204 205 close $overlapFile; 205 206 207 system "cat $overlapName"; 208 206 209 # Add the processed file to the database 207 210 unless ($no_update) { … … 232 235 sub select_skycells 233 236 { 234 my $entry = shift; 235 my @list = @_; 236 237 my $skycell; 237 my $entry = shift; # File+Ext to search for 238 my @list = @_; # List of "File+Ext : skycell" 239 238 240 my @skycells = (); 239 241 240 242 foreach my $line (@list) { 241 243 if ($line =~ m|$entry|) { 242 ($skycell) = $line =~ m|$entry\S*\s+:\s+(\S+)|;244 my ($skycell) = $line =~ m|$entry\S*\s+:\s+(\S+)|; 243 245 push @skycells, $skycell; 244 246 }
Note:
See TracChangeset
for help on using the changeset viewer.
