Index: /trunk/ippconfig/recipes/jpeg.mdc
===================================================================
--- /trunk/ippconfig/recipes/jpeg.mdc	(revision 42657)
+++ /trunk/ippconfig/recipes/jpeg.mdc	(revision 42658)
@@ -1,2 +1,16 @@
+# This recipe file is used in a slightly different fashion from the others
+# The different programs define an output JPEG file (or files) for the binned
+# images with names based on the program and the binning level.
+
+# ppImage : PPIMAGE.JPEG1 & PPIMAGE.JPEG2
+# ppSub   : PPSUB.OUTPUT.JPEG1 & PPSUB.OUTPUT.JPEG2 & PPSUB.OUTPUT.RESID.JPEG
+# ppStack : PPSTACK.OUTPUT.JPEG1 & PPSTACK.OUTPUT.JPEG2
+# ppstamp : PPSTAMP.OUTPUT.JPEG
+
+# these names are the used to select the recipe metadata blocks below
+
+# alternate recipes can be defined by nesting those metadata blocks inside
+# additional named blocks, like the BIAS example below
+
 # JPEG options for files
 # Each METADATA entry should contain:
@@ -7,4 +21,14 @@
 # * OPTIONS: comma-separated list : -SB,+SB,+X,+Y,-X,-Y
 
+# to define the grayscale values, the image robust MEAN and STDEV are calculated
+# (if those cannot be calculated, a simple MEAN and STDEV are used)
+
+# the different SCALE.MODE values define the min and max colorscale values as:
+# RANGE    : MEAN - 2*STDEV*SCALE.MIN to MEAN + 2*STDEV*SCALE.MAX
+# FRACTION : MEAN*SCALE.MIN           to MEAN*SCALE.MAX
+# VALUE    : SCALE.MIN                to SCALE.MAX
+
+# COLORMAP values can be: greyscale, grayscale, -greyscale, -grayscale, heat, rainbow, 
+
 PPIMAGE.JPEG1  	        METADATA
 	COLORMAP	STR	-greyscale
@@ -15,18 +39,36 @@
 END
 
+PPIMAGE.JPEG2	METADATA
+	COLORMAP	STR	-greyscale
+	SCALE.MODE	STR	RANGE
+	SCALE.MIN	F32	 -5.0
+	SCALE.MAX	F32	+10.0
+	OPTIONS		STR	-SB,-X,+Y
+END
+
+ALTCOLORS		METADATA
+    PPIMAGE.JPEG1           METADATA
+            COLORMAP        STR     rainbow
+            SCALE.MODE      STR     RANGE
+            SCALE.MIN       F32      -5.0
+            SCALE.MAX       F32     +10.0
+            OPTIONS         STR     +SB,-X,+Y
+    END
+    
+    PPIMAGE.JPEG2   METADATA
+            COLORMAP        STR     rainbow
+            SCALE.MODE      STR     RANGE
+            SCALE.MIN       F32      -5.0
+            SCALE.MAX       F32     +10.0
+            OPTIONS         STR     -SB,-X,+Y
+    END
+END
+
 PPIMAGE.JPEG1.HEAT	METADATA
-	COLORMAP	STR	heat
+	COLORMAP	STR	-greyscale
 	SCALE.MODE	STR	FRACTION
-	SCALE.MIN	F32	0.95
-	SCALE.MAX	F32	1.05
-	OPTIONS		STR	+SB,-X,+Y
-END
-
-PPIMAGE.JPEG2	METADATA
-	COLORMAP	STR	-greyscale
-	SCALE.MODE	STR	RANGE
-	SCALE.MIN	F32	 -5.0
-	SCALE.MAX	F32	+10.0
-	OPTIONS		STR	-SB,-X,+Y
+	SCALE.MIN	F32	0.5
+	SCALE.MAX	F32	1.5
+	OPTIONS		STR	+SB,+X,+Y
 END
 
