Index: branches/czw_branch/20170908/pstamp/scripts/psmkreq
===================================================================
--- branches/czw_branch/20170908/pstamp/scripts/psmkreq	(revision 40128)
+++ branches/czw_branch/20170908/pstamp/scripts/psmkreq	(revision 40483)
@@ -29,5 +29,5 @@
 my ($ra, $dec, $x, $y, $list, $output, $req_name, $req_name_base);
 
-my ($image, $mask, $variance, $jpeg, $cmf, $psf, $backmdl, $inverse, $restorebackground);
+my ($image, $mask, $variance, $jpeg, $allroi, $cmf, $psf, $backmdl, $inverse, $restorebackground);
 my ($exptime, $expnum, $exptimejpeg, $expnumjpeg);
 my ($convolved, $unconvolved, $uncompressed, $use_imfile_id, $no_wait);
@@ -113,4 +113,5 @@
     'mask'              => \$mask,
     'jpeg'              => \$jpeg,
+    'allroi'            => \$allroi,
     'variance'          => \$variance,
     'cmf'               => \$cmf,
@@ -218,4 +219,5 @@
         $option_mask |= $PSTAMP_SELECT_VARIANCE if $variance;
         $option_mask |= $PSTAMP_SELECT_JPEG     if $jpeg;
+        $option_mask |= $PSTAMP_MULTI_OVERLAP_IMAGE     if $allroi;
 
         # if no image was requested make a stamp of the image
Index: branches/czw_branch/20170908/pstamp/scripts/pstamp_job_run.pl
===================================================================
--- branches/czw_branch/20170908/pstamp/scripts/pstamp_job_run.pl	(revision 40128)
+++ branches/czw_branch/20170908/pstamp/scripts/pstamp_job_run.pl	(revision 40483)
@@ -248,4 +248,7 @@
         $command .= " -stage $stage";
         $command .= " -forheader $calibfile" if $calibfile;
+	## MEH hack for centeroffchip -- needs constraint for coord_mask 0 all in sky values..
+	$command .= " -centeroffchip" if ($options & $PSTAMP_MULTI_OVERLAP_IMAGE);
+
         my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
             run(command => $command, verbose => $verbose);
Index: branches/czw_branch/20170908/pstamp/src/ppstampArguments.c
===================================================================
--- branches/czw_branch/20170908/pstamp/src/ppstampArguments.c	(revision 40128)
+++ branches/czw_branch/20170908/pstamp/src/ppstampArguments.c	(revision 40483)
@@ -31,4 +31,5 @@
     fprintf(stderr, "   [-write_cmf]          : create an output cmf with the sources overlapping the stamp\n");
     fprintf(stderr, "   [-wholefile]          : ignore the region of interest and process the entire input image\n");
+    fprintf(stderr, "   [-centeroffchip]          : allow center to be off chip boundary and include any pixels in ROI (testing) \n");
     // fprintf(stderr, "   [-no_censor_masked]   : do not set masked pixels to NAN\n");
     fprintf(stderr, "\n");
@@ -66,4 +67,9 @@
     *pOptions = options;
 
+    if ((argnum = psArgumentGet(argc, argv, "-centeroffchip"))) {
+        psArgumentRemove(argnum, &argc, argv);
+        options->centeroffchip = true;
+    }
+	
     if ((argnum = psArgumentGet(argc, argv, "-wholefile"))) {
         psArgumentRemove(argnum, &argc, argv);
Index: branches/czw_branch/20170908/pstamp/src/ppstampMakeStamp.c
===================================================================
--- branches/czw_branch/20170908/pstamp/src/ppstampMakeStamp.c	(revision 40128)
+++ branches/czw_branch/20170908/pstamp/src/ppstampMakeStamp.c	(revision 40483)
@@ -592,5 +592,6 @@
     }
 
-    if (onChip) {
+    //MEH add hack for ROI not to include center on chip
+    if (onChip || options->centeroffchip ) {
         if (options->roip.celestialRange) {
             findBoundingBox(options, input->fpa, chip, center);
Index: branches/czw_branch/20170908/pstamp/src/ppstampOptions.h
===================================================================
--- branches/czw_branch/20170908/pstamp/src/ppstampOptions.h	(revision 40128)
+++ branches/czw_branch/20170908/pstamp/src/ppstampOptions.h	(revision 40483)
@@ -8,4 +8,5 @@
     // input arguments
     pstampROI   roip;
+    bool    	centeroffchip;
     bool        wholeFile;
     psString    chipName;
Index: branches/czw_branch/20170908/pstamp/src/pstamp.h
===================================================================
--- branches/czw_branch/20170908/pstamp/src/pstamp.h	(revision 40128)
+++ branches/czw_branch/20170908/pstamp/src/pstamp.h	(revision 40483)
@@ -43,5 +43,6 @@
 #define PSTAMP_SELECT_UNCONV        2048
 #define PSTAMP_RESTORE_BACKGROUND   4096
-// unused                           8192
+// MEH -- previously unused                           8192
+#define PSTAMP_MULTI_OVERLAP_IMAGE  8192
 #define PSTAMP_USE_IMFILE_ID        16384
 
