Index: branches/eam_branches/ipp-20211108/ippconfig/recipes/fitstypes.mdc
===================================================================
--- branches/eam_branches/ipp-20211108/ippconfig/recipes/fitstypes.mdc	(revision 41952)
+++ branches/eam_branches/ipp-20211108/ippconfig/recipes/fitstypes.mdc	(revision 41953)
@@ -129,20 +129,7 @@
 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
+# NOTE: only allows exposure times up to 6553.6 seconds
+# (too small for UNIONS and other deep stacks)
 EXP	METADATA
 	BITPIX		S32	16
@@ -161,4 +148,51 @@
 END
 
+# Deep Compressed log flux image for stacks.
+# allows real images values up to 10^8 DN
+STK_UNIONS_RAW     METADATA
+	BITPIX		S32	-32
+	SCALING		STR	MANUAL
+	BSCALE		F32	1.0
+	BZERO		F32	0.0
+	COMPRESSION	STR	NONE
+	TILE.X		S32	0
+	TILE.Y		S32	1
+	TILE.Z		S32	1
+	NOISE		S32	8
+END
+
+STK_UNIONS_COMP     METADATA
+        BITPIX          S32     16
+        SCALING         STR     ASINH_MANUAL
+	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
+
+# Deep compressed exposure image
+# NOTE: only allows exposure times up to 65536 seconds
+# (OK for UNIONS but not MD deep stacks)
+EXP_UNIONS METADATA
+	BITPIX		S32	16
+	SCALING		STR	MANUAL
+	FUZZ		BOOL	FALSE
+	# Note: TRUE = BZERO + BSCALE * DISK
+	BSCALE		F32	1	# Disk is stored as 1/10th sec
+	BZERO		F32	32768	# Store unsigned zero as zero
+	# switch to NONE to work around ticket 1411
+	#COMPRESSION	STR	NONE
+	COMPRESSION	STR	GZIP
+	TILE.X		S32	0
+	TILE.Y		S32	1
+	TILE.Z		S32	1
+	NOISE		S32	8
+END
+
 # Compressed number image
 EXPNUM	METADATA
