Monochromatic Neutron and X-ray Powder Diffraction
From NeXus
Monochromatic Neutron and X-Ray Powder Diffraction
Find below my version of a DTD for monochromatic powder diffraction. I kept it fairly minimal; just the necessary stuff to do a normal Rietveld with it.
Contents |
XML Meta-DTD Definition for NXmonopd.xml
This follows the XML Meta-DTD Definition format and can be downloaded from http://svn.nexusformat.org/definitions/tags/PRE_NXDL/instruments/NXmonopd.xml
<?xml version="1.0"?>
<!--
URL:
Editor: Mark Koennecke <Mark.Koennecke@psi.ch>
version: October 2006
$Id$
Instrument definition for a powder diffractometer at a monochromatic
neutron or X-ray beam. This is both suited for a powder diffractometer
with a single detector or a powder diffractometer with a position
sensitive detector.
-->
<NXroot>
<NXentry name="{Entry Name}">+
<title type="NX_CHAR">{Title of the experiment}</title>
<start_time type="ISO8601">?{start time of measurement}
</start_time>
<end_time type="ISO8601">?{end time of measurement}
</end_time>
<NXinstrument name="instrument">
<NXsource name="{Name of Source}">
<name type="NX_CHAR">{Name of Source}</name>
<type type="NX_CHAR">{Type of Source}</type>
<probe type="NX_CHAR">"{Neutron|X-ray}"</probe>
</NXsource>
<NXcrystal name="{Name of Monochromator Crystal}">
<wavelength type="NX_FLOAT" units="Angstrom">
{nominal wavelength selected}
</wavelength>
</NXcrystal>
<NXdetector name="{Name of Detector}">+
<polar_angle type="NX_FLOAT[]">
{Polar Angle, commonly known as two theta}
{Polar Angle, or two theta as an array with values for each
detector element}
</polar_angle>
<data type="NX_INT[]" signal="1" axes="polar_angle">
{The counts detected in each detector element}
</data>
<efficiency type="NX_FLOAT[]">
{Efficiency correction coefficients for each detector element}
</efficiency>
</NXdetector>
</NXinstrument>
<NXmonitor name="control">
<mode type="NX_CHAR">monitor | timer</mode>
<preset type="NX_FLOAT">
{preset value for monitor or timer}
</preset>
<data type="NX_INT">
{Monitor counts}
</data>
</NXmonitor>
<NXsample name="{Name of Sample">
<name type="NX_CHAR">
{Descriptive name of sample}
</name>
<rotation_angle type="NX_FLOAT[]" units="degree">?
{ Optional rotation angle for the case when the powder diagram
has been obtained through an omega - two theta scan like from
a traditional single detector powder diffractometer}
</rotation_angle>
</NXsample>
<NXdata name="{Name of Data Block}">+
<data type="NX_INT[i]" signal="1">
{Link to detector counts in NXdetector}
</data>
<polar_angle type="NX_FLOAT[i]" axis="1">
{Link to polar angle data in NXdetector}
</polar_angle>
</NXdata>
</NXentry>
</NXroot>
Tabular Representation of XML Meta-DTD
(automatically generated from http://svn.nexusformat.org/definitions/tags/PRE_NXDL/instruments/NXmonopd.xml)
-
NXroot
Name Type Description Attributes {Entry Name} NXentry -
NXentry
Name Type Description Attributes title NX_CHAR Title of the experiment start_time ISO 8601 start time of measurement end_time ISO 8601 end time of measurement instrument NXinstrument -
NXinstrument
Name Type Description Attributes {Name of Source} NXsource -
NXsource
Name Type Description Attributes name NX_CHAR Name of Source type NX_CHAR Type of Source probe NX_CHAR -
NXinstrument continued (1)
Name Type Description Attributes {Name of Monochromator Crystal} NXcrystal -
NXcrystal
Name Type Description Attributes wavelength NX_FLOAT nominal wavelength selected units="Angstrom"
-
NXinstrument continued (2)
Name Type Description Attributes {Name of Detector} NXdetector -
NXdetector
Name Type Description Attributes polar_angle NX_FLOAT[] Polar Angle, commonly known as two theta
{Polar Angle, or two theta as an array with values for each detector element}data NX_INT[] The counts detected in each detector element signal="1"
axes="polar_angle"
efficiency NX_FLOAT[] Efficiency correction coefficients for each detector element -
NXentry continued (1)
Name Type Description Attributes control NXmonitor -
NXmonitor
Name Type Description Attributes mode NX_CHAR preset NX_FLOAT preset value for monitor or timer data NX_INT Monitor counts -
NXentry continued (2)
Name Type Description Attributes {Name of Sample NXsample -
NXsample
Name Type Description Attributes name NX_CHAR Descriptive name of sample rotation_angle NX_FLOAT[] Optional rotation angle for the case when the powder diagram has been obtained through an omega - two theta scan like from a traditional single detector powder diffractometer units="degree"
-
NXentry continued (3)
Name Type Description Attributes {Name of Data Block} NXdata

