IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40389 for trunk/pstamp


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/pstamp
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • 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.