<?xml version="1.0" encoding="UTF-8"?>

<!-- <!DOCTYPE sddlschema SYSTEM "sddlschema.xsd">-->

<sddl>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- -->
<!--  SDDL Name:  COS_DISP.SDDL -->
<!-- -->
<!--  Purpose:      This SDDL file defines the COS_DISP relation. -->
<!-- -->
<!--  Modification History:-->
<!-- -->
<!--    Date       PR      Who                       Reason -->
<!--  - - - -    - - - -   - -   - - - - - - - - - - - - - - - - - - - - - -->
<!--  06/14/96   29753     Baum   Original implementation-->
<lm>  07/03/03   48821     CTB   Converted to XML format </lm> 
<lm>  07/21/08   56981     Mary  Copied from stis_disp.xml</lm>
<lm>  09/02/08   60722     Mary  Adding new columns to cos_disp</lm><!-- last mod -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 

    <record name="COS_DISP_TYPE"> 
 
 
        <description>"This relation is used to define the values OPUS needs for
                   WCS calculations for observations using dispersive elements."</description>


            <field name="detector">
                    <type>C8</type>
                    <description>"FUV and NUV are the two detectors on COS. "</description>
            </field>

            <field name="grating">
                    <type>C8</type>
                    <description>"G130M,G160M,G140L,G185M,G225M,G285M, and G230L.
                         These are the values from OPUS DGX keyword SS_GRTNG
                         that come from qelogsheet.ap_1. "</description>
            </field>
	
            <field name="cen_wave">
                    <type>I4</type>
                    <description>"The central wavelength supplied in the proposal and
                         found in OPUS DGX keyword SS_CWAVE that comes from
                         qelogsheet.min_wave. The allow values are in the
                         proposal instructions. "</description>
            </field>
	
            <field name="scale">
                    <type>R4</type>
                    <description>"Change in sky arcsec along slit per pixel. "</description>
            </field>
 
            <field name="spec_res">
                    <type>I4</type>
                    <description>"Resolving power at central wavelength. "</description>
            </field>
 
            <field name="min_wave">
                    <type>I4</type>
                    <description>"Minimum wavelength in spectrum. "</description>
            </field>
 
            <field name="max_wave">
                    <type>I4</type>
                    <description>"Maximum wavelength in spectrum. "</description>
            </field>
 
           <field name="disp_angle">
                    <type>R4</type>
                    <description>"dispersion angle"</description>
            </field>
 
           <field name="dispersion">
                    <type>R4</type>
                    <description>"dispersion "</description>
            </field>
 
    </record>
 
  
 
    <relation name="cos_disp">
 
        <type>COS_DISP_TYPE</type>

        <description>COS Dispersion Relation</description>

        <subsystem_using>OPUS</subsystem_using>

        <index name="cos_disp_1">
            <type>unique clustered</type>
            <field name="detector"/>
            <field name="grating"/>
            <field name="cen_wave"/>
        </index>

    </relation>
 
 
 
    <instance  name="cos_disp" scope="global" type="COS_DISP_TYPE" />
 
</sddl>
