IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14578


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

Adding ASTROM.ACCEPT check, which sets the -accept-astrom flag to dvoImageOverlaps.

File:
1 edited

Legend:

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

    r14571 r14578  
    2727                       $PS_EXIT_TIMEOUT_ERROR
    2828                       metadataLookupStr
     29                       metadataLookupBool
    2930                       caturi
    3031                       );
     
    8788# Where do we get the astrometry source from?
    8889my $astromSource;               # The astrometry source
     90my $astromAccept;               # Accept the astrometry unconditionally?
    8991{
    9092    my $command = "$ppConfigDump -camera $camera -dump-recipe PSWARP -";
     
    98100        &my_die("Unable to parse metadata config doc", $warp_id, $PS_EXIT_PROG_ERROR);
    99101    $astromSource = metadataLookupStr($metadata, 'ASTROM.SOURCE');
     102    $astromAccept = metadataLookupBool($metadata, 'ASTROM.ACCEPT');
    100103}
    101104
     
    125128            my $astromFile = $ipprc->filename($astromSource, $camRoot); # Astrometry file
    126129           
    127             my @matchlist = get_overlaps($astromFile, $tess_dir, 0); # List of overlaps
     130            my @matchlist = get_overlaps($astromFile, $tess_dir, $astromAccept); # List of overlaps
    128131           
    129132            # Match each of the imfiles to this list
     
    135138            foreach my $imfile (@$imfiles) {
    136139                my $astromFile = $imfile->{chip_uri}; # Astrometry file
    137                 my @matchlist = get_overlaps($astromFile, $tess_dir, 1); # List of overlaps
     140                my @matchlist = get_overlaps($astromFile, $tess_dir, $astromAccept); # List of overlaps
    138141                extract_overlaps(\@matchlist, $imfile, $astromFile, $tess_id, \@overlaps, \%unique_skycells);
    139142            }
     
    217220    my $filename = shift;       # Filename on which to run dvoImageOverlaps
    218221    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?
    220223
    221224    my $command = "$dvoImageOverlaps -D CATDIR $tess_dir " . $ipprc->file_resolve($filename);
    222     $command .= ' -accept-astrom' if $flag;
     225    $command .= ' -accept-astrom' if $accept;
    223226    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    224227        run(command => $command, verbose => 1);
Note: See TracChangeset for help on using the changeset viewer.