<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="nxdlformat.xsl" ?>
<!--
    # NeXus - Neutron and X-ray Common Data Format
    # 
    # Copyright (C) 2008-2020 NeXus International Advisory Committee (NIAC)
    # 
    # This library is free software; you can redistribute it and/or
    # modify it under the terms of the GNU Lesser General Public
    # License as published by the Free Software Foundation; either
    # version 3 of the License, or (at your option) any later version.
    #
    # This library is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    # Lesser General Public License for more details.
    #
    # You should have received a copy of the GNU Lesser General Public
    # License along with this library; if not, write to the Free Software
    # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    #
    # For further information, see http://www.nexusformat.org
-->
<definition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd"
    xmlns="http://definition.nexusformat.org/nxdl/3.1"
 name="NXspe"
 extends="NXobject"
 type="group"
 category="application"
>
    <doc>NXSPE Inelastic Format.  Application definition for NXSPE file format. </doc>
    <group type="NXentry">
        <field name="program_name"/>
        <field name="definition">
            <doc>Official NeXus NXDL schema to which this file conforms.</doc>
            <attribute name="version"/>
            <enumeration>
                <item value="NXSPE"/>
                <item value="NXspe"/>                
            </enumeration>
        </field>
        <group type="NXcollection" name="NXSPE_info">
            <field name="fixed_energy" type="NX_FLOAT" units="NX_ENERGY">
                <doc>The fixed energy used for this file.</doc>
            </field>
            <field name="ki_over_kf_scaling" type="NX_BOOLEAN">
                <doc>Indicates whether ki/kf scaling has been applied or not.</doc>
            </field>
            <field name="psi" type="NX_FLOAT" units="NX_ANGLE">
                <doc>Orientation angle as expected in DCS-MSlice</doc>
            </field>
        </group>
        <group type="NXdata" name="data">
            <field name="azimuthal" type="NX_FLOAT" units="NX_ANGLE"/>
            <field name="azimuthal_width" type="NX_FLOAT" units="NX_ANGLE"/>
            <field name="polar" type="NX_FLOAT" units="NX_ANGLE"/>
            <field name="polar_width" type="NX_FLOAT" units="NX_ANGLE"/>
            <field name="distance" type="NX_FLOAT" units="NX_LENGTH"/>
            <field name="data" type="NX_NUMBER"/>
            <field name="error" type="NX_NUMBER"/>
            <field name="energy" type="NX_FLOAT" units="NX_ENERGY"/>
        </group>
        <group type="NXinstrument">
            <field name="name" type="NX_CHAR"/>
            <group type="NXfermi_chopper">
                <field name="energy" type="NX_NUMBER" units="NX_ENERGY"/>
            </group>
        </group>
        <group type="NXsample">
            <field name="rotation_angle" type="NX_NUMBER" units="NX_ANGLE"/>
            <field name="seblock" type="NX_CHAR"/>
            <field name="temperature" type="NX_NUMBER" units="NX_TEMPERATURE"/>
        </group>
    </group>
</definition>
