Index: /trunk/ippconfig/simtest/Makefile.am
===================================================================
--- /trunk/ippconfig/simtest/Makefile.am	(revision 20392)
+++ /trunk/ippconfig/simtest/Makefile.am	(revision 20393)
@@ -5,4 +5,5 @@
 	camera.config \
 	format.config \
+	format_relphot.config \
 	ppImage.config \
 	psastro.config \
@@ -10,4 +11,5 @@
 	rejections.config \
 	dvo.config \
+	dvo.layout \
 	ppSim.config \
 	ppSub.config
Index: /trunk/ippconfig/simtest/dvo.layout
===================================================================
--- /trunk/ippconfig/simtest/dvo.layout	(revision 20393)
+++ /trunk/ippconfig/simtest/dvo.layout	(revision 20393)
@@ -0,0 +1,27 @@
+# this file defines the layout of the mosaic imager:
+
+NCCD 1
+NAXIS1 2048
+NAXIS2 2048
+
+MOSAIC_X 1
+MOSAIC_Y 1
+
+## XXX is this a good place for this, or is ptolemy.rc better?
+REFCELL.X 2
+REFCELL.Y 2
+
+# header format lines : these are added to the PHU to specify the format to IPP tools
+NFORMAT 4
+FORMAT  INSTRUME  SIMTEST
+FORMAT  TELESCOP  SimScope
+FORMAT  PSFORMAT  RELPHOT
+
+# lines need to contain:
+CHIPID_KEYWORD EXTNAME
+
+# ID     CHIPID xoffset yoffset xflip yflip datasec         biassec            Xo      Yo      theta
+CCD.0        00       0       0     0     0 [0:2048,0:2048] [2085:2110,2:4400] 0       0       0
+
+# can we use header to find biassec
+USE_BIASSEC 1
Index: /trunk/ippconfig/simtest/format_relphot.config
===================================================================
--- /trunk/ippconfig/simtest/format_relphot.config	(revision 20393)
+++ /trunk/ippconfig/simtest/format_relphot.config	(revision 20393)
@@ -0,0 +1,93 @@
+# Simulation test camera with single chip with single cell
+
+# How to identify this type
+RULE	METADATA
+	INSTRUME	STR	SIMTEST
+	TELESCOP	STR	SimScope
+	PSFORMAT        STR     RELPHOT
+END
+
+# How to read this data
+FILE	METADATA
+	PHU		STR	FPA	# The FITS file represents an entire FPA
+	EXTENSIONS	STR	CHIP	# The extensions represent chips
+	FPA.OBS		STR	OBJECT	# A PHU keyword for unique identifier within the hierarchy level
+END
+
+# What's in the FITS file?
+CONTENTS	METADATA
+	00	STR	Chip:SimpleChip
+END
+
+CHIPS   METADATA
+	SimpleChip	METADATA
+		# Extension name, cellName:cellType
+		xy00    STR  Cell:amplifier
+	END
+END
+
+# Specify the cell data
+CELLS	METADATA
+	amplifier	METADATA
+		CELL.TRIMSEC.SOURCE	STR	HEADER
+		CELL.TRIMSEC		STR	TRIMSEC
+		CELL.BIASSEC.SOURCE	STR	HEADER
+		CELL.BIASSEC		STR	BIASSEC
+	END
+END
+
+# How to translate PS concepts into FITS headers
+TRANSLATION	METADATA
+	FPA.TELESCOPE	STR	TELESCOP
+	FPA.INSTRUMENT	STR	INSTRUME
+	FPA.OBSTYPE	STR	OBSTYPE
+	FPA.AIRMASS	STR	AIRMASS
+        FPA.FILTERID    STR     FILTER
+	FPA.FILTER	STR	FILTER
+	FPA.POSANGLE	STR	POSANGLE
+	FPA.RA		STR	RA
+	FPA.DEC		STR	DEC
+	FPA.OBJECT	STR	OBJECT
+	FPA.TIME	STR	DATE-OBS UTC-OBS	# Date and time
+	FPA.EXPOSURE	STR	EXPTIME
+	CELL.EXPOSURE	STR	EXPTIME
+	CELL.DARKTIME	STR	DARKTIME
+	CELL.TIME	STR	DATE-OBS UTC-OBS	# Date and time
+	CELL.XBIN	STR	XBIN
+	CELL.YBIN	STR	YBIN
+END
+
+# Default PS concepts that may be specified by value
+DEFAULTS	METADATA
+	FPA.TIMESYS	STR	UTC
+	FPA.RADECSYS	STR	ICRS
+	FPA.DETECTOR	STR	SIMTEST
+        FPA.LONGITUDE   F64     10.4170608521 # West Longitude in Hours 
+        FPA.LATITUDE    F64     20.7070999146 # North Latitude in Degrees 
+        FPA.ELEVATION   F32     3048.0 # altitude in meters
+	CELL.SATURATION	F32	65535
+	CELL.BAD	F32	-100 ## XXX this value is bogus, but needs to be context based so residual images do not get half-masked
+	CELL.READDIR	S32	1
+	CELL.TIMESYS	STR	UTC
+	CELL.XPARITY	S32	1
+	CELL.YPARITY	S32	1
+	CHIP.XPARITY	S32	1
+	CHIP.YPARITY	S32	1
+	CELL.X0		S32	0
+	CELL.Y0		S32	0
+	CELL.XSIZE	S32	2048
+	CELL.YSIZE	S32	2048
+	CELL.XWINDOW	S32	0
+	CELL.YWINDOW	S32	0
+	CELL.GAIN	F32	1.0
+	CELL.READNOISE	F32	10.0
+END
+
+FORMATS		METADATA
+	FPA.LONGITUDE	STR	HOURS
+	FPA.LATITUDE	STR	DEGREES
+	FPA.RA		STR	HOURS
+	FPA.DEC		STR	DEGREES
+	FPA.TIME	STR	SEPARATE,YEAR.FIRST
+	CELL.TIME	STR	SEPARATE,YEAR.FIRST
+END
