Changeset 19117 for trunk/ippScripts/scripts/warp_overlap.pl
- Timestamp:
- Aug 17, 2008, 3:42:48 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
r19099 r19117 224 224 # Extract a list of overlaps for an imfile 225 225 # 226 # The command "dvoImageOverlaps -accept-astrom -D CATDIR tessellation (megacam)" returns:227 # 729534pa.cmf[ccd00.hdr] : skycell.051.fits228 # PSASTRO.OUTPUT[CMF.HEAD] : SKYCELL229 # [CMF.HEAD] is optionally used for MEF files (SIMPLE or MOSAIC)226 # The command "dvoImageOverlaps FILENAME" returns: 227 # FILENAME[HDU] : SKYCELL.ID 228 # eg: 729534pa.cmf[ccd00.hdr] : skycell.051.fits 229 # for the case of split data, we need to identify the input imfiles based on this information 230 230 sub extract_overlaps 231 231 { 232 my $matches = shift; # Reference to list of skycells from dvoImageOverlaps233 my $imfile = shift; # Imfile information234 my $filename = shift; # Filename used with dvoImageOverlaps232 my $matches = shift; # Reference to list of skycells from dvoImageOverlaps 233 my $imfile = shift; # Imfile information 234 my $filename = shift; # Filename used with dvoImageOverlaps 235 235 my $tess_dir = shift; # Tessellation identifier 236 my $overlaps = shift; # Reference to list of overlaps236 my $overlaps = shift; # Reference to list of overlaps 237 237 my $unique_skycells = shift; # Reference to hash of found skycells 238 238 … … 244 244 my $fileLevel = $imfile->{filelevel}; 245 245 my $entry; # How to identify this imfile in the dvoImageOverlaps output 246 246 247 if (lc($fileLevel) eq "chip") { 248 # in the case of SPLIT images, all CLASSes are included in the output list 249 # we need to pull out the single CLASS_ID for this imfile from the full list 247 250 my $class_id = $imfile->{class_id}; 248 251 my $chipRoot = $ipprc->file_resolve( $imfile->{chip_path_base} ); … … 252 255 print STDERR "entry: $entry, class: $class_id, extname: $extname, chiproot: $chipRoot\n" if $verbose; 253 256 } else { 257 # in the case of MEF or SINGLE images, there is only a single CLASS in the output list 254 258 $entry = $filename; 255 259 print STDERR "entry: $entry\n" if $verbose;
Note:
See TracChangeset
for help on using the changeset viewer.
