<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE DetectorSchema SYSTEM "Detector.dtd" [
<!ENTITY % lrisblueentities SYSTEM "LrisBlueEntities.dtd">
<!-- this file is actually xml, not dtd --><!-- external (parsed) general entity declarations get xml elements --><!ENTITY ccdgeomlist SYSTEM "CCDgeomList.xml">
<!ENTITY ccdtypelist SYSTEM "CCDtypeList.xml">
<!ENTITY e2v4482amptypes SYSTEM "e2v4482ampTypes.xml">
<!ENTITY ccdlist SYSTEM "CCDlist.xml">
<!ENTITY lrisblueccdlocs SYSTEM "LrisBlueCCDlocs.xml">
<!ENTITY lrisblueamplocs SYSTEM "LrisBlueAmpLocs.xml">
<!ENTITY lrisblueampwire SYSTEM "LrisBlueAmpWire.xml">
<!ENTITY lrisbluemosaicdesign SYSTEM "LrisBlueMosDesigns.xml">
<!ENTITY amp2ccdwcs SYSTEM "Amp2CCD.xml">
<!ENTITY ccd2panewcs SYSTEM "CCD2pane.xml">
<!ENTITY ccd2ndetwcs SYSTEM "CCD2ndet.xml">
<!ENTITY ccd2gapwcs SYSTEM "CCD2gap.xml">
<!ENTITY CD2ident SYSTEM "CD2ident.xml">
<!ENTITY CD2flipX SYSTEM "CD2flipX.xml">
<!ENTITY CD2flipY SYSTEM "CD2flipY.xml">
<!ENTITY CD2flipXY SYSTEM "CD2flipXY.xml">
<!--
begin internal general entity declaration lrisbluegenent
can be used to refer to the following
--><!ENTITY lrisbluegenent "
  <!--
  general entity reference
  inserts list of all designed geometries of CCDs
  -->
  &ccdgeomlist;

  <!--
  general entity reference
  inserts list of all types of CCDs
  -->
  &ccdtypelist;

  <!--
  general entity reference
  inserts list of all types of amplifiers on CCDs
  -->
  &e2v4482amptypes;



  <!--
  general entity reference
  inserts list of all CCDs inserted into mosaics
  -->
  &ccdlist;

  <!--
  general entity reference
  inserts list of all mosaic designs
  -->
  &lrisbluemosaicdesign;

  <!--
  general entity reference
  inserts list of all mosaic wirings
  -->
  &lrisblueampwire;
">
<!--
end internal general entity declaration lrisbluegenent
--><!--
begin external (parsed) general entity declaration lrisbluemos
can be used to refer to content of LrisBlueMos.xml
--><!ENTITY lrisbluemos SYSTEM "LrisBlueMos.xml">
<!--
end external general entity declaration lrisbluemos
--><!-- this file is actually xml, not dtd -->]>
<DetectorSchema>


  <!--
  general entity reference
  inserts list of all designed geometries of CCDs
  -->
  

<!--
A listing of all the different geometries of CCD designs that are
used as part of detector mosaics.
-->

<CCDgeom Id="mitll_geom" Name="MIT/LL 2k*4k" NumImgPix1="2048" NumImgPix2="4096" SizImgPix1="15 um" SizImgPix2="15 um"/>
<CCDgeom Id="fcs_geom" Name="UCO/Lick FCS" NumImgPix1="1200" NumImgPix2="600" SizImgPix1="15 um" SizImgPix2="15 um"/>
<CCDgeom Id="e2v4482_geom" Name="e2v (Marconi) CCD44-82" NumImgPix1="2048" NumImgPix2="4102" SizImgPix1="15 um" SizImgPix2="15 um"/>
<CCDgeom Id="lbnl2kx4k_geom" Name="LBNL Thick High-Resistivity" NumImgPix1="2048" NumImgPix2="4096" SizImgPix1="15 um" SizImgPix2="15 um"/>


  <!--
  general entity reference
  inserts list of all types of CCDs
  -->
  

<!--
A listing of all the different types of CCDs that are
used as part of detector mosaics.
-->

<CCDtype Id="unspecCCD" Name="Unspecified"/>
<CCDtype Id="hirhoCCD" Name="High Resistivity"/>
<CCDtype Id="thickHiRhoCCD" Name="Thick High Resistivity"/>


  <!--
  general entity reference
  inserts list of all types of amplifiers on CCDs
  -->
  

<!--
A listing of all the different types of amplifiers that are
on e2v CCD44-82 2k*4k CCDs.
-->

<!--
These are the amplifiers on the e2v CCD44-82 2k*4k CCDs.
They claim to have 50 prescan columns.
-->
<AmpType Id="e2vCCD44-82_amp_L" Name="L" NumPrePix1="50" NumPrePix2="0" CCDgeomId="e2vCCD44-82"/>
<wcs version="c" Owner="e2vCCD44-82_amp_L">
	<CRPIXj j="1" value="1"/>
	<CRPIXj j="2" value="1"/>
	<CRVALi i="1" value="1"/>
	<CRVALi i="2" value="1"/>
	<!--
A general entity which contains the elements of an identity WCS
-->
	<CDi_j i="1" j="1" value="   1."/>
	<CDi_j i="1" j="2" value="   0."/>
	<CDi_j i="2" j="1" value="   0."/>
	<CDi_j i="2" j="2" value="   1."/>


	<!--
A general entity which contains the elements that
are identical for all amp2ccd WCSs.
-->
	<WCSNAME value="amp2ccd" comment="imaging pixels thru this CCD"/>
	<CUNITi i="1" value="pixel"/>
	<CUNITi i="2" value="pixel"/>
	<CRDERi i="1"/>
	<CRDERi i="2"/>
	<CSYERi i="1"/>
	<CSYERi i="2"/>
	<CTYPEi i="1" value="CCD_X"/>
	<CTYPEi i="2" value="CCC_Y"/>

</wcs>

<AmpType Id="e2vCCD44-82_amp_R" Name="R" NumPrePix1="50" NumPrePix2="0" CCDgeomId="e2vCCD44-82"/>
<wcs version="c" Owner="e2vCCD44-82_amp_R">
	<CRPIXj j="1" value="1"/>
	<CRPIXj j="2" value="1"/>
	<CRVALi i="1" value="2048"/>
	<CRVALi i="2" value="1"/>
	

	<CDi_j i="1" j="1" value="  -1."/>
	<CDi_j i="1" j="2" value="   0."/>
	<CDi_j i="2" j="1" value="   0."/>
	<CDi_j i="2" j="2" value="   1."/>


	<!--
A general entity which contains the elements that
are identical for all amp2ccd WCSs.
-->
	<WCSNAME value="amp2ccd" comment="imaging pixels thru this CCD"/>
	<CUNITi i="1" value="pixel"/>
	<CUNITi i="2" value="pixel"/>
	<CRDERi i="1"/>
	<CRDERi i="2"/>
	<CSYERi i="1"/>
	<CSYERi i="2"/>
	<CTYPEi i="1" value="CCD_X"/>
	<CTYPEi i="2" value="CCC_Y"/>

</wcs>




  <!--
  general entity reference
  inserts list of all CCDs inserted into mosaics
  -->
  

<!--
A gathering of all the different chunks of silicon (CCDs)
used as part of detector mosaics.
-->

<!--
These two are FCS CCDs which were used in the DEIMOS Blue
Science Mosaic.  This was the mosaic in use for the integrated
testing of DEIMOS while it was being assembled in the Lick
shops during 2000 to 2002.
The plan as of early 2002 is that these will be removed from
the blue mosaic and incorporated into the DEIMOS Red Science
Mosaic when it is assembled.
-->
<CCD Id="fcs_ccd_1" Name="1" CCDgeomId="fcs_geom" CCDtypeId="unspecCCD"/>
<CCD Id="fcs_ccd_13" Name="13" CCDgeomId="fcs_geom" CCDtypeId="unspecCCD"/>

<!--
These are MIT/LL 2k*4k CCDs which are intended to go into the
DEIMOS Red Science Mosaic when it is assembled.
-->
<CCD Id="mitll_14_2_6" Name="14-2-6" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_14_12_3" Name="14-12-3" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_14_10_6" Name="14-10-6" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_14_10_5" Name="14-10-5" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_14_4_1" Name="14-4-1" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_14_4_3" Name="14-4-3" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_14_4_2" Name="14-4-2" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_14_5_2" Name="14-5-2" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>

<!--
There were no FCS CCDs in the DEIMOS engineering mosaic.
This was the mosaic in use in the CCD lab before the
integrated testing of DEIMOS while it was being assembled in
the Lick shops during 2000 to 2002.

These are MIT/LL 2k*4k CCDs which were inserted into the
DEIMOS Engineering Science Mosaic for the in-house testing.
-->
<CCD Id="mitll_10_2_5" Name="10-2-5" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_9_6_5" Name="9-6-5" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_9_6_4" Name="9-6-4" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_w83c1" Name="W83C1" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_10_2_6" Name="10-2-6" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_10_1_2" Name="10-1-2" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_9_1_6" Name="9-1-6" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_w83c2" Name="W83C2" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>

<!--
These are MIT/LL 2k*4k CCDs which were inserted into the
DEIMOS Blue Science Mosaic used in the Lick labs during
instrument integration during 2000 thru 2002
-->
<CCD Id="mitll_w6c2" Name="W6C2" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_9_1_3" Name="9-1-3" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_10_3_5" Name="10-3-5" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_w18c2" Name="W18C2" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_10_10_4" Name="10-10-4" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_w85c2" Name="W85C2" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_w97c2" Name="W97C2" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>
<CCD Id="mitll_10_14_2" Name="10-14-2" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>

<!--
These are MIT/LL 2k*4k CCDs which were inserted into the
HIRES Engineering Mosaic used in the Lick labs during
instrument integration during mid 2003
-->
<CCD Id="mitll_14_1_1" Name="LL-14-1-1" CCDgeomId="mitll_geom" CCDtypeId="hirhoCCD"/>
<!--
HIRES Engineering CCD is 10-10-4 which was in the
DEIMOS blue above
-->
<CCD Id="mitll_14_1_6" Name="LL-14-1-6" CCDgeomId="mitll_geom" CCDtypeId="hirhoCCD"/>

<!--
These are MIT/LL 2k*4k CCDs which were inserted into the
HIRES Science Mosaic used in the Lick labs during
instrument integration during late 2003
-->
<CCD Id="mitll_17_7_1" Name="17-7-1" CCDgeomId="mitll_geom" CCDtypeId="hirhoCCD"/>
<CCD Id="mitll_17_7_6" Name="17-7-6" CCDgeomId="mitll_geom" CCDtypeId="hirhoCCD"/>
<CCD Id="mitll_2_2_1" Name="2-2-1" CCDgeomId="mitll_geom" CCDtypeId="unspecCCD"/>

<!--
These are e2v CCD44-82 2k*4k CCDs which are in LRIS Blue NBC
-->
<CCD Id="e2v4482_1" Name="00151-14-1" CCDgeomId="e2v4482_geom" CCDtypeId="unspecCCD"/>
<CCD Id="e2v4482_2" Name="00152-19-1" CCDgeomId="e2v4482_geom" CCDtypeId="unspecCCD"/>

<!--
These are LBNL 2k*4k thick high resistivity CCDs
The engineering test devices initially in LRIS-R red mosaic
-->
<CCD Id="lbnl2kx4k_2_12" Name="2-12" CCDgeomId="lbnl2kx4k_geom" CCDtypeId="thickHiRhoCCD"/>
<CCD Id="lbnl2kx4k_2_9" Name="2-9" CCDgeomId="lbnl2kx4k_geom" CCDtypeId="thickHiRhoCCD"/>

<!--
These are LBNL 2k*4k thick high resistivity CCDs
The science grade devices delivered in LRIS-R red mosaic
-->
<CCD Id="lbnl2kx4k_1_12" Name="1-12" CCDgeomId="lbnl2kx4k_geom" CCDtypeId="thickHiRhoCCD"/>
<CCD Id="lbnl2kx4k_1_13" Name="1-13" CCDgeomId="lbnl2kx4k_geom" CCDtypeId="thickHiRhoCCD"/>


  <!--
  general entity reference
  inserts list of all mosaic designs
  -->
  

<!--
The designed attributes of the LRIS Blue NBC mosaic detector layout.
-->
<MosaicDesign Id="lris_blue_mosaic_design" Name="LRIS Blue NBC Mosaic" NumCCD="2" NumAmp="4"/>



<!--
A gathering of all the different CCD locations
in the design of the LRIS Blue mosaic.
-->

<!--
This should describe the nomenclature of the CCDs
in the LRIS Blue mosaic design along with their layout.
The manner in which the layout is specified is by giving
PANE coordinates to every CCD.
-->
<CCDloc Id="lris_blue_ccdloc_0" Name="1" CCDgeomId="lbnl2kx4k_geom" MosaicDesignId="lris_blue_mosaic_design"/>
<wcs version="p" Owner="lris_blue_ccdloc_0">
	<CRPIXj j="1" value="1"/>
	<CRPIXj j="2" value="1"/>
	<CRVALi i="1" value="   0.5"/>
	<CRVALi i="2" value="   0.5"/>
	

	<CDi_j i="1" j="1" value="  -1."/>
	<CDi_j i="1" j="2" value="   0."/>
	<CDi_j i="2" j="1" value="   0."/>
	<CDi_j i="2" j="2" value="   1."/>


	<!--
A general entity which contains the elements that
are identical for all ccd2pane WCSs.
-->
	<WCSNAME value="ccd2pane" comment="UCO/Lick mosaic PANE coordinates"/>
	<CUNITi i="1" value="pixel"/>
	<CUNITi i="2" value="pixel"/>
	<CRDERi i="1"/>
	<CRDERi i="2"/>
	<CSYERi i="1"/>
	<CSYERi i="2"/>
	<CTYPEi i="1" value="PANE_X"/>
	<CTYPEi i="2" value="PANE_Y"/>

</wcs>

<CCDloc Id="lris_blue_ccdloc_1" Name="2" CCDgeomId="lbnl2kx4k_geom" MosaicDesignId="lris_blue_mosaic_design"/>
<wcs version="p" Owner="lris_blue_ccdloc_1">
	<CRPIXj j="1" value="1"/>
	<CRPIXj j="2" value="1"/>
	<CRVALi i="1" value="2048.5"/>
	<CRVALi i="2" value="   0.5"/>
	

	<CDi_j i="1" j="1" value="  -1."/>
	<CDi_j i="1" j="2" value="   0."/>
	<CDi_j i="2" j="1" value="   0."/>
	<CDi_j i="2" j="2" value="   1."/>


	<!--
A general entity which contains the elements that
are identical for all ccd2pane WCSs.
-->
	<WCSNAME value="ccd2pane" comment="UCO/Lick mosaic PANE coordinates"/>
	<CUNITi i="1" value="pixel"/>
	<CUNITi i="2" value="pixel"/>
	<CRDERi i="1"/>
	<CRDERi i="2"/>
	<CSYERi i="1"/>
	<CSYERi i="2"/>
	<CTYPEi i="1" value="PANE_X"/>
	<CTYPEi i="2" value="PANE_Y"/>

</wcs>




<!--
A gathering of all the different amplifier locations
in the design of the LRIS Blue NBC mosaic mosaic.
-->

<!--
This should describe the nomenclature of the amplifiers
in the LRIS Blue NBC mosaic design.
-->
<AmpLoc Id="lrisblue_amploc_0" Name="0" AmpTypeId="e2v4481_amp_a" CCDlocId="lrisblue_ccdloc_0"/>
<AmpLoc Id="lrisblue_amploc_1" Name="1" AmpTypeId="e2v4481_amp_b" CCDlocId="lrisblue_ccdloc_0"/>
<AmpLoc Id="lrisblue_amploc_2" Name="2" AmpTypeId="e2v4481_amp_a" CCDlocId="lrisblue_ccdloc_1"/>
<AmpLoc Id="lrisblue_amploc_3" Name="3" AmpTypeId="e2v4481_amp_b" CCDlocId="lrisblue_ccdloc_1"/>



  <!--
  general entity reference
  inserts list of all mosaic wirings
  -->
  

<!--
A listing of the amplifier wiring connections which have been in use
for LRIS Blue NBC CCD Mosaic exposures.
-->
<AmpWiring Id="lrisblue_wiring" Name="LRIS Blue NBC Wiring, 4-amplifier"/>

<AmpWire VideoInputEnum="1" AmpLocId="lrisblue_amploc_0" AmpWiringId="lrisblue_wiring"/>
<AmpWire VideoInputEnum="2" AmpLocId="lrisblue_amploc_1" AmpWiringId="lrisblue_wiring"/>
<AmpWire VideoInputEnum="3" AmpLocId="lrisblue_amploc_2" AmpWiringId="lrisblue_wiring"/>
<AmpWire VideoInputEnum="4" AmpLocId="lrisblue_amploc_3" AmpWiringId="lrisblue_wiring"/>





<!--
The as-built attributes of LRIS Blue Mosaic.

The positions of the CCDs for the Engineering Mosaic 1 have not yet
been measured.  For the moment we are using the specified separations in
the Cabak design drawings.

-->

<BuiltMosaic Id="lris_blue_mosaic" Name="LRIS Blue Mosaic" MosaicDesignId="lris_blue_mosaic_design" NumCCD="2" NumAmp="4"/>

<!--
Within each CCDpos we will place the ccd2ndet and
ccd2whatever WCSs.

The WCSs herein describe the LRIS Blue mosaic as given by
Steve Allen on his drawing
-->
<CCDpos Id="lris_blue_pos_0" CCDlocId="lris_blue_ccdloc_0" CCDid="e2v4482_1" BuiltMosaicId="lris_blue_mosaic"/>
<wcs version="n" Owner="lris_blue_pos_0">
	<CRPIXj j="1" value="1"/>
	<CRPIXj j="2" value="1"/>
	<CRVALi i="1" value="1"/>
	<CRVALi i="2" value="1"/>
	

	<CDi_j i="1" j="1" value="  -1."/>
	<CDi_j i="1" j="2" value="   0."/>
	<CDi_j i="2" j="1" value="   0."/>
	<CDi_j i="2" j="2" value="   1."/>


	<!--
A general entity which contains the elements that
are identical for all ccd2ndet WCSs.
-->
	<WCSNAME value="ccd2ndet" comment="NOAO-style detector coordinates"/>
	<CUNITi i="1" value="pixel"/>
	<CUNITi i="2" value="pixel"/>
	<CRDERi i="1" value="1."/>
	<CRDERi i="2" value="1."/>
	<CSYERi i="1" value="1."/>
	<CSYERi i="2" value="1."/>
	<CTYPEi i="1" value="DETECTOR_X"/>
	<CTYPEi i="2" value="DETECTOR_Y"/>

</wcs>

<CCDpos Id="lris_blue_pos_1" CCDlocId="lris_blue_ccdloc_1" CCDid="e2v4482_2" BuiltMosaicId="lris_blue_mosaic"/>
<wcs version="n" Owner="lris_blue_pos_1">
	<CRPIXj j="1" value="1"/>
	<CRPIXj j="2" value="1"/>
	<CRVALi i="1" value="2049"/>
	<CRVALi i="2" value="1"/>
	

	<CDi_j i="1" j="1" value="  -1."/>
	<CDi_j i="1" j="2" value="   0."/>
	<CDi_j i="2" j="1" value="   0."/>
	<CDi_j i="2" j="2" value="   1."/>


	<!--
A general entity which contains the elements that
are identical for all ccd2ndet WCSs.
-->
	<WCSNAME value="ccd2ndet" comment="NOAO-style detector coordinates"/>
	<CUNITi i="1" value="pixel"/>
	<CUNITi i="2" value="pixel"/>
	<CRDERi i="1" value="1."/>
	<CRDERi i="2" value="1."/>
	<CSYERi i="1" value="1."/>
	<CSYERi i="2" value="1."/>
	<CTYPEi i="1" value="DETECTOR_X"/>
	<CTYPEi i="2" value="DETECTOR_Y"/>

</wcs>



<!--
########################################################################
-->

<!-- LRIS Blue NBC Mosaic -->

<Controller Name="LRIS Blue NBC mosaic" Macro="LRIS_BLUE_MOSAIC or somesuch" MacroValue="unique integer value #defined in the code" BuiltMosaicId="lris_blue_mosaic" AmpWiringId="lris_blue_wiring" NumAmp="4"/>

<!--
########################################################################
-->

</DetectorSchema>
