IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 23, 2008, 3:52:15 PM (18 years ago)
Author:
Paul Price
Message:

Add facility to fault on warp overlaps.

File:
1 edited

Legend:

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

    r17671 r17792  
    9797}
    9898
     99
     100
    99101# Determine the imfile/skycell overlaps
    100102my @overlaps = ();
    101 
    102103unless ($no_op) {
    103104    # Calculate the overlaps between imfiles and skycells
     
    156157}
    157158
    158 # XXX this file needs some additional error checking: if no overlaps are found, we
     159# If no overlaps are found, we
    159160# keep running this step over and over (a successful warptool -addoverlap prevents
    160161# successive warptime -imfile from running.
     162&my_die("Unable to find any overlaps", $warp_id, $PS_EXIT_PROG_ERROR) if scalar @overlaps == 0;
    161163
    162164# Generate a MDC file with the overlaps
     
    197199    my $exit_code = shift;      # Exit code to add
    198200
    199     warn($msg);
    200 
    201     # No failure option on warptool for this mode, so just die.
     201    carp($msg);
     202    if (defined $warp_id and not $no_update) {
     203        my $command = "$warptool -addoverlap";
     204        $command .= " -warp_id $warp_id";
     205        $command .= " -code $exit_code";
     206        $command .= " -dbname $dbname" if defined $dbname;
     207        system ($command);
     208    }
    202209    exit $exit_code;
    203210}
Note: See TracChangeset for help on using the changeset viewer.