Changeset 14691
- Timestamp:
- Aug 29, 2007, 3:04:57 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/warp_overlap.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/warp_overlap.pl
r14578 r14691 89 89 my $astromSource; # The astrometry source 90 90 my $astromAccept; # Accept the astrometry unconditionally? 91 my $astromDepth; # File level of the astrometry source (SPLIT or MEF)? 91 92 { 92 93 my $command = "$ppConfigDump -camera $camera -dump-recipe PSWARP -"; … … 101 102 $astromSource = metadataLookupStr($metadata, 'ASTROM.SOURCE'); 102 103 $astromAccept = metadataLookupBool($metadata, 'ASTROM.ACCEPT'); 104 $astromDepth = metadataLookupStr($metadata, 'ASTROM.DEPTH'); 103 105 } 104 106 … … 172 174 } 173 175 176 # XXX this file needs some additional error checking: if no overlaps are found, we 177 # keep running this step over and over (a successful warptool -addoverlap prevents 178 # successive warptime -imfile from running. 179 174 180 # Generate a MDC file with the overlaps 175 181 my ($overlapFile, $overlapName) = tempfile( 'overlaps.wrp' . $warp_id . '.mdc.XXXX', UNLINK => 1 ); … … 255 261 my $fileLevel = $imfile->{filelevel}; 256 262 my $entry; # How to identify this imfile in the dvoImageOverlaps output 257 if ( lc($fileLevel) eq "chip") {263 if ((lc($fileLevel) eq "chip") && (lc($astromDepth) eq "MEF")) { 258 264 my $class_id = $imfile->{class_id}; 259 265 my $chipRoot = $ipprc->file_resolve( $imfile->{chip_path_base} ); 260 266 my $extname = $ipprc->extname_rule("CMF.HEAD", $class_id); # MEF psastro output 261 267 262 print STDERR "class: $class_id, chiproot: $chipRoot, extname: $extname\n";263 268 264 269 $entry = $filename . '\[' . $extname . '\]'; 270 print STDERR "class: $class_id, entry: $entry, extname: $extname, chiproot: $chipRoot\n"; 265 271 } else { 266 272 $entry = $filename; 273 print STDERR "class: $class_id, entry: $entry\n"; 267 274 } 268 275 269 276 my @skycells = &select_skycells($entry, @$matches); # Matching skycells 277 my $Nskycells = @skycells; 278 printf STDERR "Nskycells: $Nskycells\n"; 270 279 foreach my $skycell (@skycells) { 271 280 my %overlap = (); # Overlap information for warptool
Note:
See TracChangeset
for help on using the changeset viewer.
