Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xrd modification #274

Merged
merged 11 commits into from
Jul 26, 2024
51 changes: 41 additions & 10 deletions contributed_definitions/NXxrd_pan.nxdl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
-->
<definition xmlns="http://definition.nexusformat.org/nxdl/3.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" category="application" type="group" name="NXxrd_pan" extends="NXxrd" xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd">
<doc>
NXxrd_pan is a specialisation of NXxrd with extra properties
NXxrd_pan is a specialisation of NXxrd with extra properties
for the PANalytical XRD data format.
</doc>
<group type="NXentry">
Expand Down Expand Up @@ -209,7 +209,7 @@ defracted_beam(NXbeam):-->
</doc>
</field>
</group>
<group name="two_theta_plot" type="NXdata">
<group name="experiment_result" type="NXdata">
<doc>
Desired plot would be two_theta vs intensity.
</doc>
Expand All @@ -221,51 +221,82 @@ defracted_beam(NXbeam):-->
<dim index="1" value="nDet"/>
</dimensions>
</field>
<field name="two_theta" type="NX_FLOAT">
<field name="two_theta" type="NX_FLOAT" units="NX_ANGLE">
<doc>
Axis scale represeting the 2-theta range of the difractogram.
</doc>
<dimensions rank="1">
<dim index="1" value="nDet"/>
</dimensions>
</field>
<field name="omega" type="NX_FLOAT" optional="true">
<field name="omega" type="NX_FLOAT" optional="true" units="NX_ANGLE">
<doc>
The omega range of the difractogram.
</doc>
<dimensions rank="1">
<dim index="1" value="nDet"/>
</dimensions>
</field>
<field name="phi" type="NX_FLOAT" optional="true">
<field name="phi" type="NX_FLOAT" optional="true" units="NX_ANGLE">
<doc>
The phi range of the difractogram
The phi range of the diffractogram.
</doc>
<dimensions rank="1">
<dim index="1" value="nDet"/>
</dimensions>
</field>
<field name="chi" type="NX_FLOAT" optional="true">
<field name="chi" type="NX_FLOAT" optional="true" units="NX_ANGLE">
<doc>
The chi range of the difractogram
</doc>
<dimensions rank="1">
<dim index="1" value="nDet"/>
</dimensions>
</field>
<field name="q_parallel" type="NX_FLOAT" optional="true" units="NX_ANY">
<doc>
The scattering vector component parallel to the sample surface.
</doc>
</field>
<field name="q_perpendicular" type="NX_FLOAT" optional="true" units="NX_ANY">
<doc>
The scattering vector component perpendicular to the sample surface.
</doc>
</field>
<field name="q_norm" type="NX_FLOAT" optional="true" units="NX_ANY">
<doc>
The norm of scattering vector q.
</doc>
</field>
</group>
<group name="q_plot" type="NXdata" optional="true">
<group name="q_data" type="NXdata" optional="true">
<doc>
Desired plot would be q_vector vs intensity.
</doc>
<field name="q" type="NX_FLOAT">
<doc>
Axis scale representing wavevector for scatter energy.
Scattering vector link to the 'q_norm' of experiment_result.
</doc>
</field>
<field name="intensity" type="NX_FLOAT">
<doc>
Number of scattered electrons per unit time.
Number of scattered electrons per unit time at each q value.

Link to the 'intensity' of experiment_result.
</doc>
</field>
<field name="q_parallel" type="NX_FLOAT" optional="true">
<doc>
The scattering vector component parallel to the sample surface.

Link to the 'q_parallel' of experiment_result.
</doc>
</field>
<field name="q_perpendicular" type="NX_FLOAT" optional="true">
<doc>
The scattering vector component perpendicular to the sample surface.

Link to the 'q_perpendicular' of experiment_result.
</doc>
</field>
</group>
Expand Down
96 changes: 80 additions & 16 deletions contributed_definitions/nyaml/NXxrd_pan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ NXxrd_pan(NXxrd):
unit: NX_TIME
doc: |
Total time of count.
two_theta_plot(NXdata):
experiment_result(NXdata):
doc: |
Desired plot would be two_theta vs intensity.
intensity(NX_FLOAT):
Expand All @@ -146,42 +146,75 @@ NXxrd_pan(NXxrd):
rank: 1
dim: (nDet,)
two_theta(NX_FLOAT):
unit: NX_ANGLE
doc: |
Axis scale represeting the 2-theta range of the difractogram.
dimensions:
rank: 1
dim: (nDet,)
omega(NX_FLOAT):
exists: optional
unit: NX_ANGLE
doc: |
The omega range of the difractogram.
dimensions:
rank: 1
dim: (nDet,)
phi(NX_FLOAT):
exists: optional
unit: NX_ANGLE
doc: |
The phi range of the difractogram
The phi range of the diffractogram.
dimensions:
rank: 1
dim: (nDet,)
chi(NX_FLOAT):
exists: optional
unit: NX_ANGLE
doc: |
The chi range of the difractogram
dimensions:
rank: 1
dim: (nDet,)
q_plot(NXdata):
q_parallel(NX_FLOAT):
exists: optional
unit: NX_ANY
doc: |
The scattering vector component parallel to the sample surface.
q_perpendicular(NX_FLOAT):
exists: optional
unit: NX_ANY
doc: |
The scattering vector component perpendicular to the sample surface.
q_norm(NX_FLOAT):
exists: optional
unit: NX_ANY
doc: |
The norm of scattering vector q.
q_data(NXdata):
exists: optional
doc: |
Desired plot would be q_vector vs intensity.
q(NX_FLOAT):
doc: |
Axis scale representing wavevector for scatter energy.
Scattering vector link to the 'q_norm' of experiment_result.
intensity(NX_FLOAT):
doc: |
Number of scattered electrons per unit time.
Number of scattered electrons per unit time at each q value.

Link to the 'intensity' of experiment_result.
q_parallel(NX_FLOAT):
exists: optional
doc: |
The scattering vector component parallel to the sample surface.

Link to the 'q_parallel' of experiment_result.
q_perpendicular(NX_FLOAT):
exists: optional
doc: |
The scattering vector component perpendicular to the sample surface.

Link to the 'q_perpendicular' of experiment_result.
(NXsample):
exists: optional
doc: |
Expand All @@ -198,7 +231,7 @@ NXxrd_pan(NXxrd):
assumed name or given name.

# ++++++++++++++++++++++++++++++++++ SHA HASH ++++++++++++++++++++++++++++++++++
# 26a7372651ba3ec8be938e09c1b54c9af5c6d031dc2cca78a9f4a39d3231f7ea
# 46e9b0702fad863af7c50e045bde449e069f04f693a1541fa9155c4baf74a460
# <?xml version='1.0' encoding='UTF-8'?>
# <?xml-stylesheet type="text/xsl" href="nxdlformat.xsl"?>
# <!--
Expand All @@ -224,7 +257,7 @@ NXxrd_pan(NXxrd):
# -->
# <definition xmlns="http://definition.nexusformat.org/nxdl/3.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" category="application" type="group" name="NXxrd_pan" extends="NXxrd" xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd">
# <doc>
# NXxrd_pan is a specialisation of NXxrd with extra properties
# NXxrd_pan is a specialisation of NXxrd with extra properties
# for the PANalytical XRD data format.
# </doc>
# <group type="NXentry">
Expand Down Expand Up @@ -410,7 +443,7 @@ NXxrd_pan(NXxrd):
# </doc>
# </field>
# </group>
# <group name="two_theta_plot" type="NXdata">
# <group name="experiment_result" type="NXdata">
# <doc>
# Desired plot would be two_theta vs intensity.
# </doc>
Expand All @@ -422,51 +455,82 @@ NXxrd_pan(NXxrd):
# <dim index="1" value="nDet"/>
# </dimensions>
# </field>
# <field name="two_theta" type="NX_FLOAT">
# <field name="two_theta" type="NX_FLOAT" units="NX_ANGLE">
# <doc>
# Axis scale represeting the 2-theta range of the difractogram.
# </doc>
# <dimensions rank="1">
# <dim index="1" value="nDet"/>
# </dimensions>
# </field>
# <field name="omega" type="NX_FLOAT" optional="true">
# <field name="omega" type="NX_FLOAT" optional="true" units="NX_ANGLE">
# <doc>
# The omega range of the difractogram.
# </doc>
# <dimensions rank="1">
# <dim index="1" value="nDet"/>
# </dimensions>
# </field>
# <field name="phi" type="NX_FLOAT" optional="true">
# <field name="phi" type="NX_FLOAT" optional="true" units="NX_ANGLE">
# <doc>
# The phi range of the difractogram
# The phi range of the diffractogram.
# </doc>
# <dimensions rank="1">
# <dim index="1" value="nDet"/>
# </dimensions>
# </field>
# <field name="chi" type="NX_FLOAT" optional="true">
# <field name="chi" type="NX_FLOAT" optional="true" units="NX_ANGLE">
# <doc>
# The chi range of the difractogram
# </doc>
# <dimensions rank="1">
# <dim index="1" value="nDet"/>
# </dimensions>
# </field>
# <field name="q_parallel" type="NX_FLOAT" optional="true" units="NX_ANY">
# <doc>
# The scattering vector component parallel to the sample surface.
# </doc>
# </field>
# <field name="q_perpendicular" type="NX_FLOAT" optional="true" units="NX_ANY">
# <doc>
# The scattering vector component perpendicular to the sample surface.
# </doc>
# </field>
# <field name="q_norm" type="NX_FLOAT" optional="true" units="NX_ANY">
# <doc>
# The norm of scattering vector q.
# </doc>
# </field>
# </group>
# <group name="q_plot" type="NXdata" optional="true">
# <group name="q_data" type="NXdata" optional="true">
# <doc>
# Desired plot would be q_vector vs intensity.
# </doc>
# <field name="q" type="NX_FLOAT">
# <doc>
# Axis scale representing wavevector for scatter energy.
# Scattering vector link to the 'q_norm' of experiment_result.
# </doc>
# </field>
# <field name="intensity" type="NX_FLOAT">
# <doc>
# Number of scattered electrons per unit time.
# Number of scattered electrons per unit time at each q value.
#
# Link to the 'intensity' of experiment_result.
# </doc>
# </field>
# <field name="q_parallel" type="NX_FLOAT" optional="true">
# <doc>
# The scattering vector component parallel to the sample surface.
#
# Link to the 'q_parallel' of experiment_result.
# </doc>
# </field>
# <field name="q_perpendicular" type="NX_FLOAT" optional="true">
# <doc>
# The scattering vector component perpendicular to the sample surface.
#
# Link to the 'q_perpendicular' of experiment_result.
# </doc>
# </field>
# </group>
Expand Down
Loading