IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40389 for trunk


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)

Location:
trunk
Files:
7 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
  • trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/RequestFile.pm

    r36811 r40389  
    3535                    $PSTAMP_SELECT_UNCONV
    3636                    $PSTAMP_RESTORE_BACKGROUND
     37                    $PSTAMP_MULTI_OVERLAP_IMAGE
    3738                    $PSTAMP_USE_IMFILE_ID
    3839                    $PSTAMP_NO_WAIT_FOR_UPDATE
     
    8182our $PSTAMP_SELECT_UNCONV       = 2048;
    8283our $PSTAMP_RESTORE_BACKGROUND  = 4096;
    83 # unused 8192
    84 
     84# MEH -- previously unused 8192
     85our $PSTAMP_MULTI_OVERLAP_IMAGE  = 8192;
    8586our $PSTAMP_USE_IMFILE_ID      = 16384;
    8687our $PSTAMP_NO_WAIT_FOR_UPDATE = 32768;
  • trunk/pstamp/scripts/pstamp_job_run.pl

    r38073 r40389  
    248248        $command .= " -stage $stage";
    249249        $command .= " -forheader $calibfile" if $calibfile;
     250        ## MEH hack for centeroffchip -- needs constraint for coord_mask 0 all in sky values..
     251        $command .= " -centeroffchip" if ($options & $PSTAMP_MULTI_OVERLAP_IMAGE);
     252
    250253        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    251254            run(command => $command, verbose => $verbose);
  • trunk/pstamp/src/ppstampArguments.c

    r35893 r40389  
    3131    fprintf(stderr, "   [-write_cmf]          : create an output cmf with the sources overlapping the stamp\n");
    3232    fprintf(stderr, "   [-wholefile]          : ignore the region of interest and process the entire input image\n");
     33    fprintf(stderr, "   [-centeroffchip]          : allow center to be off chip boundary and include any pixels in ROI (testing) \n");
    3334    // fprintf(stderr, "   [-no_censor_masked]   : do not set masked pixels to NAN\n");
    3435    fprintf(stderr, "\n");
     
    6667    *pOptions = options;
    6768
     69    if ((argnum = psArgumentGet(argc, argv, "-centeroffchip"))) {
     70        psArgumentRemove(argnum, &argc, argv);
     71        options->centeroffchip = true;
     72    }
     73       
    6874    if ((argnum = psArgumentGet(argc, argv, "-wholefile"))) {
    6975        psArgumentRemove(argnum, &argc, argv);
  • trunk/pstamp/src/ppstampMakeStamp.c

    r36060 r40389  
    592592    }
    593593
    594     if (onChip) {
     594    //MEH add hack for ROI not to include center on chip
     595    if (onChip || options->centeroffchip ) {
    595596        if (options->roip.celestialRange) {
    596597            findBoundingBox(options, input->fpa, chip, center);
  • trunk/pstamp/src/ppstampOptions.h

    r35893 r40389  
    88    // input arguments
    99    pstampROI   roip;
     10    bool        centeroffchip;
    1011    bool        wholeFile;
    1112    psString    chipName;
  • trunk/pstamp/src/pstamp.h

    r36811 r40389  
    4343#define PSTAMP_SELECT_UNCONV        2048
    4444#define PSTAMP_RESTORE_BACKGROUND   4096
    45 // unused                           8192
     45// MEH -- previously unused                           8192
     46#define PSTAMP_MULTI_OVERLAP_IMAGE  8192
    4647#define PSTAMP_USE_IMFILE_ID        16384
    4748
Note: See TracChangeset for help on using the changeset viewer.