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

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

<sddl>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- -->
<!--  SDDL Name:    STIS_FRINGEFLAT.SDDL     -->
<!-- -->
<!--  Purpose:      This SDDL file defines relation STIS_FRINGEFLAT-->
<!-- -->
<!--  Modification History:-->
<!-- -->
<!--    Date       OPR      Who              Reason -->
<!-- - - - - - -   - - -   - - - -   - - - - - - - - - - - - - - - - - - - -->
<!--  04/19/06   55219      MSwam          first version -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

    <record name="STIS_FRINGEFLAT_TYPE">
           <description>This SDDL file defines relation STIS_FRINGEFLAT,
                  which holds STIS science association or exposure names
                  and the corresponding fringeflat association or exposure
                  name that can be used for special offline processing.
                  The fringeflat association or exposure name will also
                  appear in a FITS keyword FRNGFLAT.  </description>
  
           <field name="sci_exposure">
                   <type>C*9</type>
                   <description>The name of the science observation (possibly an association) </description>
           </field>

           <field name="fringeflat">
                   <type>C*9</type>
                   <description>The name of the corresponding fringeflat
                        observation (possibly an association)
                        </description>
           </field>

    </record>


    <relation name="stis_fringeflat">

        <type>STIS_FRINGEFLAT_TYPE</type>

        <description>Relates STIS science exposures and fringeflats</description>

        <subsystem_using>OPUS</subsystem_using>

        <index name="stis_fringeflat_1">
            <type>unique clustered</type>
            <field name="sci_exposure"/>
            <field name="fringeflat"/>
            <attr>ignore_dup_key</attr>
        </index>

    </relation>

    <instance  name="STIS_FRINGEFLAT" scope="global" type="STIS_FRINGEFLAT_TYPE" />
</sddl>
