# Camera configuration file for simulated mosaic

# File formats that we know about
FORMATS         METADATA
	TOGETHER STR	simmosaic/format_together.config
	SPLIT	STR	simmosaic/format_split.config
END
 
# Description of camera --- all the chips and the cells that comprise them
FPA     METADATA
        Chip00		STR	Cell00 Cell01 Cell10 Cell11
        Chip01		STR	Cell00 Cell01 Cell10 Cell11
        Chip10		STR	Cell00 Cell01 Cell10 Cell11
        Chip11		STR	Cell00 Cell01 Cell10 Cell11
END

# move this elsewhere?  we need a lookup table to go from filter ID to abstract name
FILTER.ID       METADATA
	NONE	STR	NONE
	B	STR	B
	V	STR	V
	R	STR	R
	I	STR	I
	g	STR	g
	r	STR	r
	i	STR	i
	z	STR	z
END

# Table of strings to use for the class identifier (see ippdb) according to the file level.
CLASSID		METADATA
	FPA	STR	fpa
	CHIP	STR	{CHIP.NAME}
	CELL	STR	{CHIP.NAME}.{CELL.NAME}
	fpa	STR	fpa
	chip	STR	{CHIP.NAME}
	cell	STR	{CHIP.NAME}.{CELL.NAME}
END

DVO.CAMERADIR	STR	simmosaic		# Camera directory for DVO

# convert supplied FPA.OBSTYPE values to abstract exptype names
OBSTYPE.TABLE METADATA
  bias 	   STR BIAS
  zero 	   STR BIAS
  dark 	   STR DARK
  flat 	   STR SKYFLAT
  skyflat  STR SKYFLAT
  domeflat STR DOMEFLAT
  object   STR OBJECT
  science  STR OBJECT
END

# Recipe options
RECIPES		METADATA
        PPIMAGE         STR     simmosaic/ppImage.config	# Default: all (normal) options on
	PSPHOT		STR	simmosaic/psphot.config		# psphot details
	PSASTRO		STR	simmosaic/psastro.config	# psastro details
	REJECTIONS	STR	simmosaic/rejections.config	# Rejection limits
END

# reduction classes (recipes which are grouped together)
REDUCTION	STR	recipes/reductionClasses.mdc

FITSTYPES       STR     recipes/fitstypes.mdc

FILERULES       STR     recipes/filerules-mef.mdc

EXTNAME.RULES	METADATA
	CMF.HEAD	STR	{CHIP.NAME}.hdr
	CMF.DATA	STR	{CHIP.NAME}.psf
        CMF.XSRC        STR     {CHIP.NAME}.xsrc # use .PSF and .EXT?
        CMF.XFIT        STR     {CHIP.NAME}.xfit # use .PSF and .EXT?

	PSF.HEAD	STR	{CHIP.NAME}.hdr
	PSF.TABLE	STR	{CHIP.NAME}.psf_model
	PSF.RESID	STR	{CHIP.NAME}.psf_resid
END

BLANK.HEADERS	METADATA
	FPA.TIME	STR	MJD-OBS
	FPA.EXPOSURE	STR	EXPTIME
	FPA.AIRMASS	STR	AIRMASS
END
