IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20655


Ignore:
Timestamp:
Nov 10, 2008, 2:59:19 PM (17 years ago)
Author:
Paul Price
Message:

Die if the tessellation isn't specified.

File:
1 edited

Legend:

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

    r20100 r20655  
    6161}
    6262
     63&my_die("Tessellation identifier not provided: $tess_dir", $warp_id, $PS_EXIT_SYS_ERROR) unless $tess_dir ne "NULL";
     64
    6365my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files
    6466
     
    8183}
    8284
    83 # Where do we get the astrometry source from? 
     85# Where do we get the astrometry source from?
    8486my $astromSource;               # The astrometry source filerule (eg, PSASTRO.OUTPUT, PSASTRO.OUTPUT.MEF)
    8587my $astromAccept;               # Accept the astrometry unconditionally?
     
    116118    my $astromFile = $ipprc->filename($astromSource, $camRoot); # Astrometry file
    117119    if (!$astromFile) {
    118         &my_die("Unable to determine the astrometry source", $warp_id, $PS_EXIT_DATA_ERROR);
     120        &my_die("Unable to determine the astrometry source", $warp_id, $PS_EXIT_DATA_ERROR);
    119121    }
    120122    $astromFile = $ipprc->file_resolve($astromFile);
    121123    if (!$astromFile) {
    122         &my_die("Unable to resolve real astrometry source filename", $warp_id, $PS_EXIT_DATA_ERROR);
     124        &my_die("Unable to resolve real astrometry source filename", $warp_id, $PS_EXIT_DATA_ERROR);
    123125    }
    124126
    125127    my @matchlist = get_overlaps($astromFile, $tess_dir_abs, $astromAccept); # List of overlaps
    126128    if (! @matchlist) {
    127         &my_die("Unable to perform dvoImageOverlaps: missing astrometry", $warp_id, $PS_EXIT_DATA_ERROR);
     129        &my_die("Unable to perform dvoImageOverlaps: missing astrometry", $warp_id, $PS_EXIT_DATA_ERROR);
    128130    }
    129131    # Match each of the imfiles to this list (the input images may be split, but the astrometry is not)
    130132    # tess_dir (not tess_dir_abs) is supplied here so it may be written to the db
    131133    foreach my $imfile (@$imfiles) {
    132         extract_overlaps(\@matchlist, $imfile, $astromFile, $tess_dir, \@overlaps, \%unique_skycells);
     134        extract_overlaps(\@matchlist, $imfile, $astromFile, $tess_dir, \@overlaps, \%unique_skycells);
    133135    }
    134136} else {
     
    158160    print $overlapFile "  skycell_id     STR    $overlap->{skycell_id}\n";
    159161    # XXX convert tess_id here to tess_dir when db scheme is updated
    160     print $overlapFile "  tess_id        STR    $overlap->{tess_dir}\n"; 
     162    print $overlapFile "  tess_id        STR    $overlap->{tess_dir}\n";
    161163    print $overlapFile "  cam_id         S32    $overlap->{cam_id}\n";
    162164    print $overlapFile "  class_id       STR    $overlap->{class_id}\n";
     
    249251
    250252    if (lc($fileLevel) eq "chip") {
    251         # in the case of SPLIT images, all CLASSes are included in the output list
    252         # we need to pull out the single CLASS_ID for this imfile from the full list
     253        # in the case of SPLIT images, all CLASSes are included in the output list
     254        # we need to pull out the single CLASS_ID for this imfile from the full list
    253255        my $class_id = $imfile->{class_id};
    254256        my $chipRoot = $imfile->{chip_path_base};
     
    258260        print STDERR "entry: $entry, class: $class_id, extname: $extname, chiproot: $chipRoot\n" if $verbose;
    259261    } else {
    260         # in the case of MEF or SINGLE images, there is only a single CLASS in the output list
     262        # in the case of MEF or SINGLE images, there is only a single CLASS in the output list
    261263        $entry = $filename;
    262264        print STDERR "entry: $entry\n" if $verbose;
Note: See TracChangeset for help on using the changeset viewer.