IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27091


Ignore:
Timestamp:
Feb 25, 2010, 2:25:24 PM (16 years ago)
Author:
bills
Message:

hacks to allow stamps from stack-stack diffs to "work"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm

    r27022 r27091  
    445445        my ($warp_id, $exp_id, $exp_name, $chip_id, $cam_id);
    446446        if ($inverse and !$image->{bothways}) {
    447             print STDERR "Inverse images requested for diffRun that is not bothways. Ignoring.\n";
     447            print STDERR "Inverse images requested for diffRun that is not bothways. Ignoring inverse.\n";
    448448            $inverse = 0;
    449449        }
     
    470470            $image->{cam_id} = $cam_id;
    471471        } else {
    472             print STDERR "unexpected result warp_id not defined\n";
    473             next;
     472            my $stack1 = $image->{stack1};
     473            # XXX: change this to check $image->{diff_mode} once it's populated and
     474            # included in the difftool output
     475            if ($stack1 and ($stack1 != 9223372036854775807)) {
     476
     477                # we have a stack - stack diff (well it might be stack - warp....)
     478                # but at any rate we only handle image type diff
     479                if ($img_type ne "diff") {
     480                    print STDERR "lookup_diff: cannot lookup IMG_TYPE $img_type bydiff from SSdiff\n";
     481                    next;
     482                }
     483
     484                # XXX: If difftool doesn't return a camera insert it here
     485                if (!$image->{camera}) {
     486                    $image->{camera} = "GPC1";
     487                    # lie about the magicked status since stack stack diffs don't require destreaking
     488                    # we can remove this once diff_mode gets included
     489                    $image->{magicked} = 42;
     490                }
     491            } else {
     492                print STDERR "unexpected result: both warp1 and stack1 are null\n";
     493                next;
     494            }
    474495        }
    475496        if ($img_type eq "diff") {
     
    483504                $image->{weight} = $ipprc->filename($filerule_base . ".VARIANCE", $image->{path_base});
    484505            } else {
    485                 # XXX this will only happen if the minuend is not a warp
    486                 print STDERR "WARNING: cannot resolve camera so cannot get weight and mask images\n";
     506                # XXX this will only happen if the minuend is not a warp. See hack above
     507                print STDERR "WARNING: cannot resolve camera so cannot get resolve file rules\n";
    487508                next;
    488509            }
Note: See TracChangeset for help on using the changeset viewer.