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

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

<sddl>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- -->
<!--  SDDL Name:  ENG_DATASET_PADS.SDDL -->
<!-- -->
<!--  Purpose:      This SDDL file defines the ENG_DATASET_PADS relation.-->
<!-- -->
<!--  Modification History:-->
<!-- -->
<!--    Date       OPR      Who                       Reason-->
<!--  - - - -    - - - -    - -    - - - - - - - - - - - - - - - - - - - - - -->
<!--  06/21/01    44862     Baum   Original implementation-->
<lm>  07/03/03   48821     CTB   Converted to XML format </lm> <!-- last mod -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 

    <record name="ENG_DATASET_PADS_TYPE"> 
 
        <description>This relation is used to store constant parameters for each
                   SI and exposure type, used to pad time boundaries based
                   on planned exposure times in qolink_sms. For any SI or 
                   exposure type not in this table, the values will all be 
                   defaulted to zero, which will cause the telemetry to be
                   selected only on the planned time. The general formula
                   for padded start or end time is:
                     padded_time = planned_time + pad*60
                   The pad value is in integer minutes and it is negative
                   for start times and positive for end times. No pads are 
                   defined for CAL exposures since these are internal. </description>


            <field name="inst">
                    <type>C1</type>
                    <description>Instrument code: same as first character of rootname.</description>

            </field>

            <field name="exp_type">
                    <type>C3</type>
                    <description>Values used in qexposure.type: SCI, TAQ.</description>
            </field>


            <field name="start_pad">
                    <type>I4</type>
                    <description>Minutes to be added to determine the padded start
                         time. Usually a negative value added to planned
                         time.</description>

            </field>


            <field name="end_pad">
                    <type>I4</type>
                    <description>Minutes to be added to determine the padded end
                         time. Usually a positive value added to planned
                         time.</description>

            </field>

    </record>
 
 
 
    <relation name="eng_dataset_pads">
 
        <type>ENG_DATASET_PADS_TYPE</type>

        <description>Time pads to support mapping ENG telemetry to datasets.</description>

        <subsystem_using>OPUS</subsystem_using>

        <index name="eng_dataset_pads_1">
            <type>unique clustered</type>
            <field name="inst"/>
            <field name="exp_type"/>
        </index>

    </relation>
</sddl>
