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

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

<sddl>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- -->
<!--  SDDL Name:    CGG4_ORDER.SDDL-->
<!-- -->
<!--  Purpose:      This SDDL file defines the CGG4_ORDER relation.-->
<!-- -->
<!--  Modification History:-->
<!-- -->
<!--    Date       OPR      Who                       Reason-->
<!--  - - - -    - - - -    - -   - - - - - - - - - - - - - - - - - - - - - -->
<!--  06/26/96    28182     Rose  Original implementation-->
<lm>  07/03/03   48821     CTB   Converted to XML format </lm> <!-- last mod -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->


    <record name="ORDER_TYPE">

        <description>This relation is used in OPUS to define the order in which
		sections of keywords appear in a FITS header.

		The keywords are grouped in the cgg1_keyword relation by
		instrument and 'file_type'.  In fact the 'file_type' field
		has been used, historically, just to group keywords together.

		This relation specifies for each FITS header (for a particular
		instrument) which cgg1 keyword groups should be put in that
		header in which order.</description>



            <field name="instrument">
                    <type>C3</type>
                    <description>The name of the instrument: eg: NIC or STI</description>
            </field>

            <field name="header_type">
                    <type>C36</type>
                    <description>The name of the FITS header. eg: NIC_SPT_PRIMARY</description>
            </field>

            <field name="ftype_order">
                    <type>I2</type>
                    <description>The order in which to put the following section</description>
            </field>

            <field name="cgg1_instr">
                    <type>C3</type>
                    <description>The cgg1_keyword relation instrument name.  This
			 can be the same as 'instrument' above, or another
			 name such as SSY or GEN.</description>
            </field>

            <field name="cgg1_ftype">
                    <type>C3</type>
                    <description>The cgg1_keyword relation 'file_type' specification
			 for this section of keywords.</description>
            </field>

    </record>



    <relation name="cgg4_order">

            <type>ORDER_TYPE</type>

            <description>Keyword section order</description>

            <subsystem_using>OPUS</subsystem_using>

    </relation>


    <instance  name="cgg4_order" scope="global" type="ORDER_TYPE" />

</sddl>
