Changeset 14578
- Timestamp:
- Aug 20, 2007, 3:56:41 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/warp_overlap.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/warp_overlap.pl
r14571 r14578 27 27 $PS_EXIT_TIMEOUT_ERROR 28 28 metadataLookupStr 29 metadataLookupBool 29 30 caturi 30 31 ); … … 87 88 # Where do we get the astrometry source from? 88 89 my $astromSource; # The astrometry source 90 my $astromAccept; # Accept the astrometry unconditionally? 89 91 { 90 92 my $command = "$ppConfigDump -camera $camera -dump-recipe PSWARP -"; … … 98 100 &my_die("Unable to parse metadata config doc", $warp_id, $PS_EXIT_PROG_ERROR); 99 101 $astromSource = metadataLookupStr($metadata, 'ASTROM.SOURCE'); 102 $astromAccept = metadataLookupBool($metadata, 'ASTROM.ACCEPT'); 100 103 } 101 104 … … 125 128 my $astromFile = $ipprc->filename($astromSource, $camRoot); # Astrometry file 126 129 127 my @matchlist = get_overlaps($astromFile, $tess_dir, 0); # List of overlaps130 my @matchlist = get_overlaps($astromFile, $tess_dir, $astromAccept); # List of overlaps 128 131 129 132 # Match each of the imfiles to this list … … 135 138 foreach my $imfile (@$imfiles) { 136 139 my $astromFile = $imfile->{chip_uri}; # Astrometry file 137 my @matchlist = get_overlaps($astromFile, $tess_dir, 1); # List of overlaps140 my @matchlist = get_overlaps($astromFile, $tess_dir, $astromAccept); # List of overlaps 138 141 extract_overlaps(\@matchlist, $imfile, $astromFile, $tess_id, \@overlaps, \%unique_skycells); 139 142 } … … 217 220 my $filename = shift; # Filename on which to run dvoImageOverlaps 218 221 my $tess_dir = shift; # Tessellation directory 219 my $ flag= shift; # Do we use the -accept-astrom flag?222 my $accept = shift; # Do we use the -accept-astrom flag? 220 223 221 224 my $command = "$dvoImageOverlaps -D CATDIR $tess_dir " . $ipprc->file_resolve($filename); 222 $command .= ' -accept-astrom' if $ flag;225 $command .= ' -accept-astrom' if $accept; 223 226 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 224 227 run(command => $command, verbose => 1);
Note:
See TracChangeset
for help on using the changeset viewer.
