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

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

<sddl>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- -->
<!--  SDDL Name:    ZCGG1GK.SDDL-->
<!-- -->
<!--  Purpose:      This SDDL file defines the CGG1_KEYWORD relation.-->
<!-- -->
<!--  Modification History:-->
<!-- -->
<!--    Date       OPR      Who                       Reason-->
<!--  - - - -    - - - -    - -   - - - - - - - - - - - - - - - - - - - - - -->
<!--  10/24/95              AR   Original implementation -->
<!--  07/23/96    31174     Rose    Added index -->
<!--  07/31/96    31905     MARose  Removed FORTRAN from the LANGUAGE statement-->
<!--  08/01/96    31905     MARose  Fixed index name -->
<!--  02/06/03    47215     LG      Make index unique -->
<lm>  07/03/03   48821     CTB   Converted to XML format </lm> <!-- last mod -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->


    <record name="ZCGG1GK_TYPE">

            <description>keywords  to be written  to generic data files during
		       GENERIC CONVERSION.</description>

            <field name="instrument">
                    <type>C*3</type>
                    <description>instrument to which the keyword is associated:
                        FOC, FC2, FOS, HSP, HRS, WFI, WFP
                        NIC, STI, WF2, ACS, COS, WF3,
                        FGS, AST, OMS, JIT, 
                        FUS, GEN, SSY</description>
            </field>


            <field name="file_type">
                    <type>C*3</type>
                    <description>generic file type.  values are:
                        shp (standard header packet),
                        udl (unique data log);
                        dsk (digital sky), dst (digital star),
                        ask (analog sky),  ast (analog star),
                        asd (area scan/digital), asa (area scan/analog);
                        ext (extracted data), sci (science data);
                        shl (science header line), stl (science trailer line);
                        img (image).</description>
            </field>


            <field name="order_index">
                    <type>I*4</type>
                    <description>an index defining the keyword order in the relation;
                        variable, it is used to order the appearance of keywords
                        in the header file to which it will be written</description>
            </field>


            <field name="fixed_index">
                    <type>I*4</type>
                    <description>this item should be thought of as a map of a fixed index
                        for a keyword into a value in the sequence 1,2,...,n.  the
                        fixed index is used to indicate a particular keyword''</description>
            </field>


            <field name="keyword_str">
                    <type>C*8</type>
                    <description>keyword character string</description>
            </field>


            <field name="keyword_typ">
                    <type>C*3</type>
                    <description>data type of the keyword value</description>
            </field>


            <field name="keyword_val">
                    <type>C*20</type>
                    <description>keyword value</description>
            </field>


            <field name="comment_str">
                    <type>C*72</type>
                    <description>comment character string</description>
            </field>


            <field name="cnv_flag">
                    <type>C*1</type>
                    <description>flag stating whether to automatically convert keyword</description>
            </field>


            <field name="optional">
                    <type>C*1</type>
                    <description>indicates whether this keyword is an optional one.
			If an optional keyword has a blank value (restricted
			to strings), then that keyword will be omitted from
			the header.
                    N - indicates that keyword is NOT optional;
                    Y - indicates keyword is optional;
                    C - indicates constant -- always use default value</description>
            </field>
    </record>



    <relation name="cgg1_keyword">

        <type>ZCGG1GK_TYPE</type>

        <description>Keywords to be written to generic conversion files</description>

        <subsystem_using>OPUS</subsystem_using>

        <index name="cgg1_keyword_1">
            <type>unique clustered </type>
            <field name="instrument"/>
            <field name="file_type"/>
            <field name="keyword_str"/>
            <field name="order_index"/>
        </index>

 
    </relation>


    <instance  name="zcgg1gk" scope="global" type="ZCGG1GK_TYPE" />

</sddl>
