
# rules to identify camera: 

CFH12K.MEF	METADATA
  TELESCOP	STR   CFHT
  INSTRUME	STR   CFH12K
  EXTEND	BOOL  T
  NEXTEND	S32   12
END

CFH12K.SPLIT	METADATA
  TELESCOP	STR   CFHT
  INSTRUME	STR   CFH12K
  EXTEND	BOOL  F
END

MEGACAM.RAW	METADATA
  TELESCOP	STR   CFHT
  INSTRUME	STR   MEGACAM
  EXTEND	BOOL  T
  NEXTEND	S32   72
END

MEGACAM.RAW	METADATA
  TELESCOP	STR   CFHT
  INSTRUME	STR   MEGACAM
  EXTEND	BOOL  T
  NEXTEND	S32   36
END

# camera definitions:
TYPE            CELL   FILENAME    EXT.KEY  READOUT       CCDBIN1     CCDBIN2     DATASEC     BIASSEC     CHIP  

MEGACAM.RAW     METADATA    
  NCELL         S32    72
  CELL.FMT      STR    CELL.%02d
  EXT.TYPE      STR    CELL
  EXT.KEY       STR    EXTNAME
  PHU           STR    FPA
  #
  #                    FILENAME    EXT.KEY  READOUT       CCDBIN1     CCDBIN2     DATASEC     BIASSEC     CHIP  
  CELL.00       CELL   %f.%x       amp00    CF:[0:0,0:0]  HD:CCDBIN1  HD:CCDBIN2  HD:DATASEC  HD:BIASSEC  CHIP.00
  CELL.01       CELL   %f.%x       amp01    CF:[0:0,0:0]  HD:CCDBIN1  HD:CCDBIN2  HD:DATASEC  HD:BIASSEC  CHIP.00
  CELL.02       CELL   %f.%x       amp02    CF:[0:0,0:0]  HD:CCDBIN1  HD:CCDBIN2  HD:DATASEC  HD:BIASSEC  CHIP.01
  CELL.03       CELL   %f.%x       amp03    CF:[0:0,0:0]  HD:CCDBIN1  HD:CCDBIN2  HD:DATASEC  HD:BIASSEC  CHIP.01
  ...
END

MEGACAM.SPLICE  METADATA      
  NCELL         S32    36
  CELL.FMT      STR    CELL.%02d
  EXT.TYPE      STR    CHIP
  EXT.KEY       STR    EXTNAME
  PHU           STR    FPA
  #
  #                    FILENAME    EXT.KEY  READOUT       CCDBIN1     CCDBIN2     DATASEC     BIASSEC     CHIP  
  CELL.00       CELL   %f.%x       ccd00    HD:ASECA      HD:CCDBIN1  HD:CCDBIN2  HD:DSECA    HD:BSECA    CHIP.00
  CELL.01       CELL   %f.%x       ccd00    HD:ASECB      HD:CCDBIN1  HD:CCDBIN2  HD:DSECB    HD:BSECB    CHIP.00
  CELL.02       CELL   %f.%x       ccd01    HD:ASECA      HD:CCDBIN1  HD:CCDBIN2  HD:DSECA    HD:BSECA    CHIP.01
  CELL.03       CELL   %f.%x       ccd01    HD:ASECB      HD:CCDBIN1  HD:CCDBIN2  HD:DSECB    HD:BSECB    CHIP.01
  ...
END

CFH12K.SPLIT    METADATA
  NCELL         S32    12
  CELL.FMT      STR    CELL.%02d
  EXT.TYPE      STR    CELL
  EXT.KEY       STR    EXTNAME
  PHU           STR    NONE
  #
  #                    FILENAME    EXT.KEY  READOUT       CCDBIN1     CCDBIN2     DATASEC     BIASSEC     CHIP   
  CELL.00       CELL   %f/%f00.%x  chip00   CF:[0:0,0:0]  HD:CCDBIN1  HD:CCDBIN2  HD:DATASEC  HD:BIASSEC  CHIP.00
  CELL.01     	CELL   %f/%f01.%x  chip01   CF:[0:0,0:0]  HD:CCDBIN1  HD:CCDBIN2  HD:DATASEC  HD:BIASSEC  CHIP.01
  CELL.02     	CELL   %f/%f02.%x  chip02   CF:[0:0,0:0]  HD:CCDBIN1  HD:CCDBIN2  HD:DATASEC  HD:BIASSEC  CHIP.02
  ...
END

CFH12K.MEF      METADATA
  NCELL         S32    12
  CELL.FMT      STR    CELL.%02d
  EXT.TYPE      STR    CELL
  EXT.KEY       STR    EXTNAME
  PHU		STR    FPA
  #
  #                    FILENAME    EXT.KEY  READOUT       CCDBIN1     CCDBIN2     DATASEC     BIASSEC     CHIP   
  CELL.00       STR    %f.%x  	   chip00   CF:[0:0,0:0]  HD:CCDBIN1  HD:CCDBIN2  HD:DATASEC  HD:BIASSEC  CHIP.00
  CELL.01     	STR    %f.%x  	   chip01   CF:[0:0,0:0]  HD:CCDBIN1  HD:CCDBIN2  HD:DATASEC  HD:BIASSEC  CHIP.01
  CELL.02     	STR    %f.%x  	   chip02   CF:[0:0,0:0]  HD:CCDBIN1  HD:CCDBIN2  HD:DATASEC  HD:BIASSEC  CHIP.02
  ...
END

GPC.RAW         METADATA    
  NCELL         S32    4096
  CELL.FMT      STR    CELL.%04d
  EXT.TYPE      STR    CELL
  EXT.KEY       STR    EXTNAME
  PHU		STR    CHIP
  #
  #                    FILENAME    EXT.KEY  READOUT       CCDBIN1     CCDBIN2     DATASEC     BIASSEC     CHIP  
  CELL.0000     CELL   %f.%x       amp00    CF:[0:0,0:0]  HD:CCDBIN1  HD:CCDBIN2  HD:DATASEC  HD:BIASSEC  CHIP.00
  CELL.0001     CELL   %f.%x       amp01    CF:[0:0,0:0]  HD:CCDBIN1  HD:CCDBIN2  HD:DATASEC  HD:BIASSEC  CHIP.00
  CELL.0002     CELL   %f.%x       amp02    CF:[0:0,0:0]  HD:CCDBIN1  HD:CCDBIN2  HD:DATASEC  HD:BIASSEC  CHIP.00
  CELL.0003     CELL   %f.%x       amp03    CF:[0:0,0:0]  HD:CCDBIN1  HD:CCDBIN2  HD:DATASEC  HD:BIASSEC  CHIP.00
  ...
  CELL.0065     CELL   %f.%x       amp03    CF:[0:0,0:0]  HD:CCDBIN1  HD:CCDBIN2  HD:DATASEC  HD:BIASSEC  CHIP.01
  CELL.0066     CELL   %f.%x       amp03    CF:[0:0,0:0]  HD:CCDBIN1  HD:CCDBIN2  HD:DATASEC  HD:BIASSEC  CHIP.01
  ...
END

SKYPROBE        METADATA
  NCELL		S32    1
  CELL.FMT      STR    CELL.%02d
  EXT.TYPE      STR    CELL
  EXT.KEY       STR    DETECTOR
  PHU		STR    NONE
  #
  #             CELL   FILENAME    EXT.KEY  READOUT       CCDBIN1     CCDBIN2     DATASEC     BIASSEC     CHIP  
  CELL.00       CELL   %f.%x        -       CF:[0:0,0:0]  HD:CCDBIN1  HD:CCDBIN2  HD:DATASEC  HD:BIASSEC  CHIP.00
  CELL.00       CELL   KEY="SBIG ST-7 Dual CCD Camera"
END
