IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 12, 2018, 9:10:37 AM (8 years ago)
Author:
mhuber
Message:

mod to pstamp to provide multiple images for all overlapping pixels in the ROI for byexp and skycoords request using last open OPTION_MASK 8192 value (ie MOPS)

File:
1 edited

Legend:

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

    r39209 r40389  
    16661666    foreach my $row (@$rowList) {
    16671667        print $pointsList "$npoints $row->{CENTER_X} $row->{CENTER_Y}\n";
    1668         $npoints++;
     1668        #$npoints++;
     1669        ## MEH hack -- add width, height corners
     1670        if ( ($row->{OPTION_MASK} & $PSTAMP_MULTI_OVERLAP_IMAGE) && !($row->{COORD_MASK} & $PSTAMP_RANGE_IN_PIXELS) ){
     1671            ## +ra +dec corner
     1672            printf $pointsList "$npoints %f %f\n", $row->{CENTER_X}+$row->{WIDTH}/3600.0, $row->{CENTER_Y}+$row->{HEIGHT}/3600.0;
     1673            #$npoints++;
     1674            ## +ra -dec corner
     1675            printf $pointsList "$npoints %f %f\n", $row->{CENTER_X}+$row->{WIDTH}/3600.0, $row->{CENTER_Y}-$row->{HEIGHT}/3600.0;
     1676            #$npoints++;
     1677            ## -ra +dec corner
     1678            printf $pointsList "$npoints %f %f\n", $row->{CENTER_X}-$row->{WIDTH}/3600.0, $row->{CENTER_Y}+$row->{HEIGHT}/3600.0;
     1679            #$npoints++;
     1680            ## -ra -dec corner
     1681            printf $pointsList "$npoints %f %f\n", $row->{CENTER_X}-$row->{WIDTH}/3600.0, $row->{CENTER_Y}-$row->{HEIGHT}/3600.0;
     1682            #$npoints++;
     1683        }
     1684        ####
     1685        $npoints++;
    16691686        # this gets overwitten if an overlapping image is found
    16701687        $row->{error_code} = $PSTAMP_NO_OVERLAP;
     
    17251742                    $ref = $components{$component} = [];
    17261743                }
    1727                 push @$ref, $ptnum;
     1744                #push @$ref, $ptnum;
     1745                ## MEH hack -- only push ptnum if not already, so check if ptnum in list
     1746                push(@$ref, $ptnum) unless grep{$_ == $ptnum} @$ref;
     1747                ##
    17281748                my $row = $rowList->[$ptnum];
    17291749                # this row found a match
Note: See TracChangeset for help on using the changeset viewer.