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

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

<sddl>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- -->
<!--  SDDL Name:  STIS_DISP.SDDL -->
<!-- -->
<!--  Purpose:      This SDDL file defines the STIS_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> <!-- last mod -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 

    <record name="STIS_DISP_TYPE"> 
 
 
        <description>"This relation is used to define the values OPUS needs for
                   WCS calculations for observations using dispersive elements.
                   There must be a record in this table for every STIS spectral
                   element (except MIRROR and PRISM) and valid central
                   wavelength (as listed in the proposal instructions). If
                   significant MSM changes are made during the mission that
                   requires different data for different observation times,
                   the valid_date is used by OPUS to fetch the right record. "</description>


            <field name="detector">
                    <type>C8</type>
                    <description>"STIS/CCD, STIS/MA1, STIS/MA2 are the values of
                         OPUS DGX keyword SS_DTCTR found in qelogsheet.config. "</description>
            </field>
	
            <field name="grating">
                    <type>C8</type>
                    <description>"G140L,G140M,E140M,E140H,X140M,X140H,G230L,G230M,E230M,
                         E230H,X230M,X230H,G230LB,G230MB,G430M,G750L,or G750M.
                         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="valid_date">
                    <type>C17</type>
                    <description>"YYYY.DDD:HH:MM:SS, the date-time of either the SMS
                         which loads a new dither table or a time preceding
                         the first STIS observation that uses a new dither
                         table. "</description>
            </field>
	
            <field name="ref_wavelen">
                    <type>R4</type>
                    <description>"Actual wavelength at reference pixel (Angstrom)"</description>

            </field>

            <field name="disp_angle">
                    <type>R4</type>
                    <description>"Degrees from axis1 toward axis2 for dispersion. "</description>

            </field>
	
            <field name="dispersion">
                    <type>R4</type>
                    <description>"Change is wavelength (Angstrom) per pixel. "</description>

            </field>
	
            <field name="scale">
                    <type>R4</type>
                    <description>"Change in sky arcsec along slit per pixel. "</description>

            </field>
 
            <field name="spec_res">
                    <type>R4</type>
                    <description>"Resolving power at central wavelength. "</description>

            </field>
 
            <field name="min_wave">
                    <type>R4</type>
                    <description>"Minimum wavelength in spectrum. "</description>

            </field>
 
            <field name="max_wave">
                    <type>R4</type>
                    <description>"Maximum wavelength in spectrum. "</description>

            </field>
 
    </record>
 
 
 
 
    <relation name="stis_disp">
 
        <type>STIS_DISP_TYPE</type>

        <description>STIS Dispersion Relation</description>

        <subsystem_using>OPUS</subsystem_using>

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

    </relation>
 
 
 
    <instance  name="stis_disp" scope="global" type="STIS_DISP_TYPE" />
 
</sddl>
