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

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

<sddl>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- -->
<!--  SDDL Name:  OMS_SCHF.SDDL -->
<!-- -->
<!--  Purpose:      This SDDL file defines the OMS_SCHF relation.-->
<!-- -->
<!--  Modification History:-->
<!-- -->
<!--    Date       OPR      Who                       Reason-->
<!--  - - - -    - - - -    - -   - - - - - - - - - - - - - - - - - - - - - -->
<!--  10/14/98    31487     Baum   Original implementation-->
<!--  03/07/03    47507     MSwam  Rename sequence to sequence_num -->
<lm>  07/03/03   48821     CTB   Converted to XML format </lm> <!-- last mod -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 

    <record name="OMS_SCHF_TYPE"> 

 
 
        <description>This relation is used to contain all versions of the arrays
                   of Spacecraft Characteristics data used by OMS. Each 
                   version is identified by the SMS usage date. The description
                   of each array is found in the comments of the PDB:SCHF.DAT
                   file which contains one version of these arrays. Each array
                   has either one or two dimensions. The first dimension is the
                   FGS number. In this table, one dimensional data has a single
                   element per FGS which is given the array index of 1. Two
                   dimensional data will have sequential values of the array
                   index from 1 to the size of the second dimension of the
                   array. There is one record for each array element. Each
                   array is assigned a sequence number so that the data can
                   be retrieved in the same order as the data in the SCHF file.
                   All the values are stored as double precision floating point
                   data. </description>

        <field name="version_date">
            <type>C17</type>
            <description>YYYY.DDD:HH:MM:SS - set to the same value for each
                     PDB version. The default value should be set to 
                     9999.999:00:00:00 until the time of the start time of
                     the SMS that first uses that PDB is known. </description>
        </field>

        <field name="sequence_num">
            <type>I2</type>
            <description>A unique value for each array which is used to
                     maintain the same order of arrays as found in the
                     PDB:SCHF.DAT file which is the source of all the
                     data. </description>
        </field>

        <field name="fgs_num">
            <type>I2</type>
            <description>1, 2, or 3: used to indicate for which FGS the values
                     apply. </description>
        </field>

        <field name="array_index">
            <type>I2</type>
            <description>An array index identifying each element of the array.
                     The first element has an array_index of one and the
                     last element has an an array_index that is the 
                     array dimension. </description>
        </field>

        <field name="array_value">
	    <type>R8</type>
            <description>The value of the element of the array that is accessed
                     by fgs_num and index. </description>

        </field>

        <field name="array_name">
            <type>C6</type>
            <description>The name of the array as found in PDB:SCHF.DAT. </description>

        </field>

    </record>
 
  
    <relation name="oms_schf">
 
        <type>OMS_SCHF_TYPE</type>

        <description>OMS Spacecraft Characteristics Relation</description>

        <subsystem_using>OMS</subsystem_using>

        <index name="oms_schf_1">
            <type>unique clustered</type>
            <field name="version_date"/>
            <field name="sequence_num"/>
            <field name="fgs_num"/>
            <field name="array_index"/>
            <field name="array_name"/>
        </index>

    </relation>
</sddl>
