IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 3, 2021, 2:32:31 PM (5 years ago)
Author:
eugene
Message:

add option to limit the allowed astrometry error

File:
1 edited

Legend:

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

    r32379 r41539  
    8181}
    8282
    83 # Where do we get the astrometry source from?
     83# Where do we get the astrometry source from? Do we limit by astrometry error?
    8484my $astromSource;               # The astrometry source filerule (eg, PSASTRO.OUTPUT, PSASTRO.OUTPUT.MEF)
    8585my $astromAccept;               # Accept the astrometry unconditionally?
     86my $maxCerror = 0.0;
    8687{
    8788    my $command = "$ppConfigDump -camera $camera -dump-recipe PSWARP -";
     
    9697    $astromSource = metadataLookupStr($metadata, 'ASTROM.SOURCE');
    9798    $astromAccept = metadataLookupBool($metadata, 'ASTROM.ACCEPT');
     99    $maxCerror    = metadataLookupF32($metadata, 'MAX.CERROR');
    98100}
    99101
     
    205207{
    206208    my $filename = shift;       # Filename on which to run dvoImageOverlaps
    207     my $tess_dir_abs = shift;       # Tessellation directory
     209    my $tess_dir_abs = shift;   # Tessellation directory
    208210    my $accept = shift;         # Do we use the -accept-astrom flag?
     211    my $maxCerror = shift;      # maximum allowed astrometric error
    209212
    210213    my $command = "$dvoImageOverlaps -D CATDIR $tess_dir_abs " . $filename;
    211214    $command .= ' -accept-astrom' if $accept;
     215    $command .= ' -D OVERLAPS_MAX_CERROR $maxCerror'; # skip poorly calibrated images from warps
    212216    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    213217        run(command => $command, verbose => $verbose);
Note: See TracChangeset for help on using the changeset viewer.