# Camera configuration file for Lulin 1m Optical Telescope

# File formats that we know about
FORMATS         METADATA
        SIMPLE	STR     lulin/format.config
END

# Description of camera --- all the chips and the cells that comprise them
FPA     METADATA
        Chip	STR	Cell
END

# Lookup table for filter name to filter abstract name
FILTER.ID       METADATA 
	UNKNOWN	STR	UNKNOWN
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	lulin		# 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 LIGHT
  science  STR LIGHT
END

# Recipe options
RECIPES         METADATA
        # Other recipes
        PSPHOT          STR     lulin/psphot.config           # psphot details
        PSASTRO         STR     lulin/psastro.config          # psastro details
	PSWARP		STR	lulin/pswarp.config		# pswarp details
        PPIMAGE         STR     lulin/ppImage.config          # ppImage recipe
	REJECTIONS      STR     lulin/rejections.config       # rejection recipe
	PPMERGE		STR	lulin/ppMerge.config		# ppMerge recipe
END

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

FITSTYPES       STR     recipes/fitstypes.mdc

FILERULES	STR	recipes/filerules-simple.mdc		# File rules appropriate for MEF format

EXTNAME.RULES METADATA
  CMF.HEAD   STR {CHIP.NAME}.hdr
  CMF.DATA   STR {CHIP.NAME}.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?

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

  REF.ASTROM STR {CHIP.NAME}.ref_astrom
END

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