<?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 name="NXsqom" extends="NXobject" type="group" category="application"
  xmlns="http://definition.nexusformat.org/nxdl/3.1"
	    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	    xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd"
	    >
  <doc>
    This is the application definition for S(Q,OM) processed data. 
    
    As this kind of data is in
    general not on a rectangular grid after data reduction, it is stored as Q,E positions plus their
    intensity, table like. It is the task of a possible visualisation program to regrid this data in
    a sensible way.
  </doc>
  <group type="NXentry">
    <attribute name="entry"> </attribute>
    <field name="title"/>
    <field name="definition">
      <doc> Official NeXus NXDL schema to which this file conforms </doc>
      <enumeration>
        <item value="NXsqom"/>
      </enumeration>
    </field>
    <group type="NXinstrument" name="instrument">
      <group type="NXsource">
        <field name="type"/>
        <field name="name"/>
        <field name="probe">
          <enumeration>
            <item value="neutron"/>
            <item value="x-ray"/>
            <item value="electron"/>
          </enumeration>
        </field>
      </group>
      <field name="name" type="NX_CHAR">
        <doc>Name of the instrument from which this data was reduced. </doc>
      </field>
    </group>
    <group type="NXsample">
      <field name="name">
        <doc>Descriptive name of sample</doc>
      </field>
    </group>
    <group type="NXprocess" name="reduction">
      <field name="program" type="NX_CHAR"/>
      <field name="version" type="NX_CHAR"/>
      <group type="NXparameters" name="input">
        <field name="filenames" type="NX_CHAR">
          <doc>Raw data files used to generate this I(Q)</doc>
        </field>
        <doc>Input parameters for the reduction program used</doc>
      </group>
      <group type="NXparameters" name="output">
        <doc>Eventual output parameters from the data reduction program used</doc>
      </group>
    </group>
    <group type="NXdata">
      <field name="data" type="NX_INT" signal="1">
        <doc> This is the intensity for each point in QE </doc>
        <dimensions rank="1">
          <dim index="1" value="NP"/>
        </dimensions>
      </field>
      <field name="qx" axis="1" units="NX_WAVENUMBER">
        <doc>Positions for the first dimension of Q</doc>
        <dimensions rank="1">
          <dim index="1" value="NP"/>
        </dimensions>
      </field>
      <field name="qy" axis="1" units="NX_WAVENUMBER">
        <doc>Positions for the the second dimension of Q</doc>
        <dimensions rank="1">
          <dim index="1" value="NP"/>
        </dimensions>
      </field>
      <field name="qz" axis="1" units="NX_WAVENUMBER">
        <doc>Positions for the the third dimension of Q</doc>
        <dimensions rank="1">
          <dim index="1" value="NP"/>
        </dimensions>
      </field>
      <field name="en" axis="1" type="NX_FLOAT" units="NX_ENERGY">
        <doc>Values for the energy transfer for each point</doc>
        <dimensions rank="1">
          <dim index="1" value="NP"/>
        </dimensions>
      </field>
    </group>
  </group>
</definition>
