Skip to content
Snippets Groups Projects
NXxeuler.nxdl.xml 3.74 KiB
Newer Older
<?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-2016 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="NXxeuler" extends="NXxbase" 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"
    version="1.0b"
  >
    <doc>
      raw data from a :index:`four-circle diffractometer` with an :index:`eulerian cradle`, extends :ref:`NXxbase`
      
      It extends :ref:`NXxbase`, so the full definition is the content 
      of :ref:`NXxbase` plus the data defined here. All four angles are 
      logged in order to support arbitrary scans in reciprocal space.
    </doc>
    <group type="NXentry" name="entry">
      <field name="definition">
        <doc> Official NeXus NXDL schema to which this file conforms </doc>
        <enumeration>
          <item value="NXxeuler"/>
        </enumeration>
      </field>
      <group type="NXinstrument" name="instrument">
        <group type="NXdetector" name="detector">
          <field name="polar_angle" type="NX_FLOAT" units="NX_ANGLE"
            axis="1">
            <doc>
              The polar_angle (two theta) where the detector is placed
              at each scan point.
            </doc>
            <dimensions rank="1">
              <dim index="1" value="np" />
            </dimensions>
          </field>
        </group>
      </group>
      <group type="NXsample" name="sample">
        <field name="rotation_angle" type="NX_FLOAT" units="NX_ANGLE"
          axis="1">
          <doc>
            This is an array holding the sample rotation angle at each
            scan point
          </doc>
          <dimensions rank="1">
            <dim index="1" value="np" />
          </dimensions>
        </field>
        <field name="chi" type="NX_FLOAT" units="NX_ANGLE" axis="1">
          <doc>
            This is an array holding the chi angle of the eulerian
            cradle at each scan point
          </doc>
          <dimensions rank="1">
            <dim index="1" value="np" />
          </dimensions>
        </field>
        <field name="phi" type="NX_FLOAT" units="NX_ANGLE" signal="1">
          <doc>
            This is an array holding the phi rotation of the eulerian
            cradle at each scan point
          </doc>
          <dimensions rank="1">
            <dim index="1" value="np" />
          </dimensions>
        </field>
      </group>
      <group type="NXdata" name="name">
        <link name="polar_angle" target="/NXentry/NXinstrument/NXdetector/polar_angle"></link>
        <link name="rotation_angle" target="/NXentry/NXsample/rotation_angle"></link>
        <link name="chi" target="/NXentry/NXsample/chi"></link>
        <link name="phi" target="/NXentry/NXsample/phi"></link>
      </group>
    </group>
</definition>