IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 20, 2007, 3:26:08 PM (19 years ago)
Author:
Paul Price
Message:

Add flag to dvoImageOverlaps call.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/warp_overlap.pl

    r14569 r14571  
    125125            my $astromFile = $ipprc->filename($astromSource, $camRoot); # Astrometry file
    126126           
    127             my @matchlist = get_overlaps($astromFile, $tess_dir); # List of overlaps
     127            my @matchlist = get_overlaps($astromFile, $tess_dir, 0); # List of overlaps
    128128           
    129129            # Match each of the imfiles to this list
     
    135135            foreach my $imfile (@$imfiles) {
    136136                my $astromFile = $imfile->{chip_uri}; # Astrometry file
    137                 my @matchlist = get_overlaps($astromFile, $tess_dir); # List of overlaps
     137                my @matchlist = get_overlaps($astromFile, $tess_dir, 1); # List of overlaps
    138138                extract_overlaps(\@matchlist, $imfile, $astromFile, $tess_id, \@overlaps, \%unique_skycells);
    139139            }
     
    217217    my $filename = shift;       # Filename on which to run dvoImageOverlaps
    218218    my $tess_dir = shift;       # Tessellation directory
     219    my $flag = shift;           # Do we use the -accept-astrom flag?
    219220
    220221    my $command = "$dvoImageOverlaps -D CATDIR $tess_dir " . $ipprc->file_resolve($filename);
     222    $command .= ' -accept-astrom' if $flag;
    221223    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    222224        run(command => $command, verbose => 1);
Note: See TracChangeset for help on using the changeset viewer.