# Camera configuration file for the Pan-STARRS Imaging Sky Probe

# File formats that we know about
FORMATS         METADATA
        SIMPLE  STR     isp/format.config
  #      CMP     STR     isp/cmp.config
  #      CMF     STR     isp/cmf.config
END
 
# Description of camera --- all the chips and the cells that comprise them
FPA     METADATA
        Chip            STR     Cell
END

# valid filter names and corresponding IDs
FILTER.ID       METADATA
        g       STR     g
        r       STR     r
        i       STR     i
        z       STR     z
        y       STR     y
END

# Table of strings to use for the class identifier (see ippdb) according to the file level.
CLASSID		METADATA
	FPA	STR	fpa
END

DVO.CAMERADIR	STR	isp		# 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
        PSPHOT          STR     isp/psphot.config               # psphot details
        PSASTRO         STR     isp/psastro.config              # psastro details
        PPIMAGE         STR     isp/ppImage.config              # Recipes for ppImage
        PPMERGE         STR     isp/ppMerge.config              # Recipes for ppMerge
	REJECTIONS	STR     isp/rejections.config
END

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

FITSTYPES       STR     recipes/fitstypes.mdc

FILERULES	STR	recipes/filerules-simple.mdc

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

  PSF.HEAD  STR	hdr
  PSF.TABLE STR psf_model
  PSF.RESID STR psf_resid
END

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

PHOTCODE.RULE           STR     {DETECTOR}.{FILTER.ID}		# Rule for generating photcode
