Index: /branches/eam_branches/ipp-20211108/ippTests/ippCheck/Makefile.am
===================================================================
--- /branches/eam_branches/ipp-20211108/ippTests/ippCheck/Makefile.am	(revision 41947)
+++ /branches/eam_branches/ipp-20211108/ippTests/ippCheck/Makefile.am	(revision 41948)
@@ -1,16 +1,18 @@
 module_files = \
-  cammask.pro   /
-  camstats.pro  /
-  diffmask.pro  /
-  truth.pro     /
-  warpmask.pro  /
+  cammask.pro   \
+  camstats.pro  \
+  diffmask.pro  \
+  truth.pro     \
+  warpmask.pro  \
   warpstats.pro
 
-dvo_dir = $(datadir)/dvo
-module_dir = $(dvo_dir)/modules
+ippchecksdir = $(datadir)/dvo/modules
+
 ippchecks_DATA = $(module_files)
 
+bin_SCRIPTS = ippCheck
+
 install-data-hook:
-	chmod 0755 $(dvo_dir) $(module_dir)
+	chmod 0755 $(ippchecksdir)
 
 EXTRA_DIST = $(module_files)
Index: /branches/eam_branches/ipp-20211108/ippTests/ippCheck/configure.ac
===================================================================
--- /branches/eam_branches/ipp-20211108/ippTests/ippCheck/configure.ac	(revision 41947)
+++ /branches/eam_branches/ipp-20211108/ippTests/ippCheck/configure.ac	(revision 41948)
@@ -2,5 +2,5 @@
 
 AC_INIT([ippCheck], [1.1.0], [ipp-dev@ifa.hawaii.edu])
-AC_CONFIG_SRCDIR([pantasks.pro])
+AC_CONFIG_SRCDIR([ippCheck])
 
 AM_INIT_AUTOMAKE([1.6 foreign dist-bzip2])
Index: /branches/eam_branches/ipp-20211108/ippconfig/recipes/filerules-mef.mdc
===================================================================
--- /branches/eam_branches/ipp-20211108/ippconfig/recipes/filerules-mef.mdc	(revision 41947)
+++ /branches/eam_branches/ipp-20211108/ippconfig/recipes/filerules-mef.mdc	(revision 41948)
@@ -354,5 +354,6 @@
 PPSTACK.OUTPUT.EXPNUM	OUTPUT {OUTPUT}.num.fits     		 MASK      EXPNUM     FPA	 TRUE      NONE
 PPSTACK.OUTPUT.EXPWT	OUTPUT {OUTPUT}.expwt.fits               VARIANCE  EXP	      FPA	 TRUE      NONE
-PPSTACK.UNCONV          OUTPUT {OUTPUT}.unconv.fits              IMAGE     COMP_IMG   FPA        TRUE      NONE
+#PPSTACK.UNCONV          OUTPUT {OUTPUT}.unconv.fits              IMAGE     COMP_IMG   FPA        TRUE      NONE
+PPSTACK.UNCONV          OUTPUT {OUTPUT}.unconv.fits              IMAGE     UNIONS_STACK   FPA        TRUE      NONE
 PPSTACK.UNCONV.MASK     OUTPUT {OUTPUT}.unconv.mask.fits         MASK      COMP_MASK  FPA        TRUE      NONE
 PPSTACK.UNCONV.VARIANCE OUTPUT {OUTPUT}.unconv.wt.fits           VARIANCE  COMP_WT    FPA        TRUE      NONE
Index: /branches/eam_branches/ipp-20211108/ippconfig/recipes/fitstypes.mdc
===================================================================
--- /branches/eam_branches/ipp-20211108/ippconfig/recipes/fitstypes.mdc	(revision 41947)
+++ /branches/eam_branches/ipp-20211108/ippconfig/recipes/fitstypes.mdc	(revision 41948)
@@ -129,4 +129,19 @@
 END
 
+# Compressed log flux image for stacks.
+UNIONS_STACK     METADATA
+        BITPIX          S32     16
+        SCALING         STR     ASINH_RANGE
+	BSCALE		F32	0.00061	# 2^15 ~ 100M DN
+	BZERO		F32	0.0	# symmetric about 0.0 DN
+	BOFFSET		F32	0.0	# symmetric about 0.0 DN
+	BSOFTEN		F32	1.0	# bend the curve at 1 DN
+	COMPRESSION     STR     RICE
+	TILE.X		S32	0
+	TILE.Y		S32	1
+	TILE.Z		S32	1
+	NOISE		S32	8
+END
+
 # Compressed exposure image
 EXP	METADATA
Index: /branches/eam_branches/ipp-20211108/ppStack/src/ppStackArguments.c
===================================================================
--- /branches/eam_branches/ipp-20211108/ppStack/src/ppStackArguments.c	(revision 41947)
+++ /branches/eam_branches/ipp-20211108/ppStack/src/ppStackArguments.c	(revision 41948)
@@ -197,5 +197,5 @@
     }
 
-    // stack-type : used to define the stack for PSPS
+    // stack-type : used to define the stack for PSPS (added as metadata to header key STK_TYPE)
     if ((argNum = psArgumentGet (argc, argv, "-stack-type"))) {
 	if (argc <= argNum+1) {
Index: /branches/eam_branches/ipp-20211108/psLib/src/fits/psFits.h
===================================================================
--- /branches/eam_branches/ipp-20211108/psLib/src/fits/psFits.h	(revision 41947)
+++ /branches/eam_branches/ipp-20211108/psLib/src/fits/psFits.h	(revision 41948)
@@ -60,5 +60,5 @@
     PS_FITS_SCALE_ASINH_STDEV_NEGATIVE, ///< Do asinh scaling, auto-scale to sample stdev, place mean at upper limit
     PS_FITS_SCALE_ASINH_STDEV_BOTH,     ///< Do asinh scaling, auto-scale to sample stdev, place mean at middle
-    PS_FITS_SCALE_ASINH_MANUAL          ///< Manual scaling after doing asinh scaling.
+    PS_FITS_SCALE_ASINH_MANUAL          ///< Manual scaling after doing asinh scaling.(use specified BSCALE, BZERO, BOFFSET, BSOFTEN)
 } psFitsScaling;
 
Index: /branches/eam_branches/ipp-20211108/psLib/src/fits/psFitsImage.c
===================================================================
--- /branches/eam_branches/ipp-20211108/psLib/src/fits/psFitsImage.c	(revision 41947)
+++ /branches/eam_branches/ipp-20211108/psLib/src/fits/psFitsImage.c	(revision 41948)
@@ -744,5 +744,5 @@
       }
     }	
-    // Remove any BSOFTENvalues that exist in the header if we are not using that scaling anymore
+    // Remove any BSOFTEN values that exist in the header if we are not using that scaling anymore
     if (options && (!((options->scaling == PS_FITS_SCALE_ASINH_RANGE)||
 		      (options->scaling == PS_FITS_SCALE_ASINH_MANUAL)||
Index: /branches/eam_branches/ipp-20211108/psLib/src/fits/psFitsScale.c
===================================================================
--- /branches/eam_branches/ipp-20211108/psLib/src/fits/psFitsScale.c	(revision 41947)
+++ /branches/eam_branches/ipp-20211108/psLib/src/fits/psFitsScale.c	(revision 41948)
@@ -963,4 +963,10 @@
         *bzero = options->bzero;
 	*boffset = options->boffset;
+        break;
+      case PS_FITS_SCALE_ASINH_MANUAL:
+        *bscale = options->bscale;
+        *bzero = options->bzero;
+	*boffset = options->boffset;
+	*bsoften = options->bsoften;
         break;
       default:
