Changeset 20655
- Timestamp:
- Nov 10, 2008, 2:59:19 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/warp_overlap.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/warp_overlap.pl
r20100 r20655 61 61 } 62 62 63 &my_die("Tessellation identifier not provided: $tess_dir", $warp_id, $PS_EXIT_SYS_ERROR) unless $tess_dir ne "NULL"; 64 63 65 my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files 64 66 … … 81 83 } 82 84 83 # Where do we get the astrometry source from? 85 # Where do we get the astrometry source from? 84 86 my $astromSource; # The astrometry source filerule (eg, PSASTRO.OUTPUT, PSASTRO.OUTPUT.MEF) 85 87 my $astromAccept; # Accept the astrometry unconditionally? … … 116 118 my $astromFile = $ipprc->filename($astromSource, $camRoot); # Astrometry file 117 119 if (!$astromFile) { 118 &my_die("Unable to determine the astrometry source", $warp_id, $PS_EXIT_DATA_ERROR);120 &my_die("Unable to determine the astrometry source", $warp_id, $PS_EXIT_DATA_ERROR); 119 121 } 120 122 $astromFile = $ipprc->file_resolve($astromFile); 121 123 if (!$astromFile) { 122 &my_die("Unable to resolve real astrometry source filename", $warp_id, $PS_EXIT_DATA_ERROR);124 &my_die("Unable to resolve real astrometry source filename", $warp_id, $PS_EXIT_DATA_ERROR); 123 125 } 124 126 125 127 my @matchlist = get_overlaps($astromFile, $tess_dir_abs, $astromAccept); # List of overlaps 126 128 if (! @matchlist) { 127 &my_die("Unable to perform dvoImageOverlaps: missing astrometry", $warp_id, $PS_EXIT_DATA_ERROR);129 &my_die("Unable to perform dvoImageOverlaps: missing astrometry", $warp_id, $PS_EXIT_DATA_ERROR); 128 130 } 129 131 # Match each of the imfiles to this list (the input images may be split, but the astrometry is not) 130 132 # tess_dir (not tess_dir_abs) is supplied here so it may be written to the db 131 133 foreach my $imfile (@$imfiles) { 132 extract_overlaps(\@matchlist, $imfile, $astromFile, $tess_dir, \@overlaps, \%unique_skycells);134 extract_overlaps(\@matchlist, $imfile, $astromFile, $tess_dir, \@overlaps, \%unique_skycells); 133 135 } 134 136 } else { … … 158 160 print $overlapFile " skycell_id STR $overlap->{skycell_id}\n"; 159 161 # XXX convert tess_id here to tess_dir when db scheme is updated 160 print $overlapFile " tess_id STR $overlap->{tess_dir}\n"; 162 print $overlapFile " tess_id STR $overlap->{tess_dir}\n"; 161 163 print $overlapFile " cam_id S32 $overlap->{cam_id}\n"; 162 164 print $overlapFile " class_id STR $overlap->{class_id}\n"; … … 249 251 250 252 if (lc($fileLevel) eq "chip") { 251 # in the case of SPLIT images, all CLASSes are included in the output list252 # we need to pull out the single CLASS_ID for this imfile from the full list253 # in the case of SPLIT images, all CLASSes are included in the output list 254 # we need to pull out the single CLASS_ID for this imfile from the full list 253 255 my $class_id = $imfile->{class_id}; 254 256 my $chipRoot = $imfile->{chip_path_base}; … … 258 260 print STDERR "entry: $entry, class: $class_id, extname: $extname, chiproot: $chipRoot\n" if $verbose; 259 261 } else { 260 # in the case of MEF or SINGLE images, there is only a single CLASS in the output list262 # in the case of MEF or SINGLE images, there is only a single CLASS in the output list 261 263 $entry = $filename; 262 264 print STDERR "entry: $entry\n" if $verbose;
Note:
See TracChangeset
for help on using the changeset viewer.
