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

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

<sddl>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- -->
<!--  SDDL Name;  ENG_TELEMETRY.SDDL -->
<!-- -->
<!--  Purpose:      This SDDL file defines the ENG_TELEMETRY relation.-->
<!-- -->
<!--  Modification History:-->
<!-- -->
<!--    Date       PR      Who                      Reason-->
<!--  - - - -    - - - -   - -   - - - - - - - - - - - - - - - - - - - - - -->
<!--  09/28/00   44862     Baum  Original implementation-->
<lm>  07/03/03   48821     CTB   Converted to XML format </lm> <!-- last mod -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 
    <record name="ENG_TELEMETRY_TYPE"> 
 
        <description>This relation is used to identify the engineering telemetry
                   received from CCS that must be converted into either FGS or
                   AST eng files. The type of telemetry is identified by
                   the field eng_type. Certain telemetry items are passed on
                   in raw form and the raw_flag is used to identify these
                   items. The telemetry files used eng_number rather than
                   ccs_number.  The name of the telemetry is found in the
                   eng_telem_name table by joining on the eng_number. </description>


            <field name="eng_type">
                    <type>C3</type>
                    <description>Either FGS or AST, for FGS obslogs or astrometry,
                         respectively.</description>

            </field>

            <field name="ccs_number">
                    <type>I4</type>
                    <description>A positive value less than 64K defined by CCS for
                         every unique telemetry item in the engineering 
                         warehouse. It is the Numeric ID described in the
                         definition of FOF elements (see Appendix A of 
                         HST-ICD-T2). </description>
            </field>

            <field name="eng_number">
                    <type>I4</type>
                    <description>A small positive value used only in FGS or AST eng
                         files. </description>
            </field>

            <field name="raw_flag">
                    <type>C1</type>
                    <description>Y -- only use raw value, N -- use engineering value.</description>

            </field>
 
            <field name="change_only">
                    <type>C1</type>
                    <description>Y -- change-only item, N -- all-points item.</description>

            </field>

    </record>
 
  
 
    <relation name="eng_telemetry">
 
        <type>ENG_TELEMETRY_TYPE</type>

        <description>ENG Telemetry Definition Relation</description>

        <subsystem_using>OPUS</subsystem_using>

        <index name="eng_telemetry_1">
            <type>unique clustered</type>
            <field name="eng_type"/>
            <field name="ccs_number"/>
        </index>

        <index name="eng_telemetry_2">
            <type>nonclustered</type>
            <field name="eng_type"/>
            <field name="eng_number"/>
            </index>

    </relation>
</sddl>
