Skip to content

Commit c678086

Browse files
author
lukaspie
committed
bring in application definition and base classes for new NXxas
1 parent 0cbc766 commit c678086

File tree

8 files changed

+1066
-0
lines changed

8 files changed

+1066
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?xml-stylesheet type="text/xsl" href="nxdlformat.xsl" ?>
3+
<!--
4+
# NeXus - Neutron and X-ray Common Data Format
5+
#
6+
# Copyright (C) 2008-2022 NeXus International Advisory Committee (NIAC)
7+
#
8+
# This library is free software; you can redistribute it and/or
9+
# modify it under the terms of the GNU Lesser General Public
10+
# License as published by the Free Software Foundation; either
11+
# version 3 of the License, or (at your option) any later version.
12+
#
13+
# This library is distributed in the hope that it will be useful,
14+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
# Lesser General Public License for more details.
17+
#
18+
# You should have received a copy of the GNU Lesser General Public
19+
# License along with this library; if not, write to the Free Software
20+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21+
#
22+
# For further information, see http://www.nexusformat.org
23+
-->
24+
<definition name="NXedge" type="group" extends="NXobject" category="base"
25+
xmlns="http://definition.nexusformat.org/nxdl/3.1"
26+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd">
27+
<doc>Absorption edge</doc>
28+
<field name="name" type="NX_CHAR" minOccurs="1" maxOccurs="1">
29+
<doc>
30+
Name of the edge
31+
</doc>
32+
<enumeration>
33+
<item value="K"></item>
34+
<item value="L1"></item>
35+
<item value="L2"></item>
36+
<item value="L3"></item>
37+
<item value="M1"></item>
38+
<item value="M2"></item>
39+
<item value="M3"></item>
40+
<item value="M4"></item>
41+
<item value="M5"></item>
42+
<item value="N1"></item>
43+
<item value="N2"></item>
44+
<item value="N3"></item>
45+
<item value="N4"></item>
46+
<item value="N5"></item>
47+
<item value="N6"></item>
48+
<item value="N7"></item>
49+
<item value="O1"></item>
50+
<item value="O2"></item>
51+
<item value="O3"></item>
52+
<item value="P1"></item>
53+
<item value="P2"></item>
54+
<item value="P3"></item>
55+
</enumeration>
56+
57+
</field>
58+
</definition>
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?xml-stylesheet type="text/xsl" href="nxdlformat.xsl" ?>
3+
<!--
4+
# NeXus - Neutron and X-ray Common Data Format
5+
#
6+
# Copyright (C) 2008-2022 NeXus International Advisory Committee (NIAC)
7+
#
8+
# This library is free software; you can redistribute it and/or
9+
# modify it under the terms of the GNU Lesser General Public
10+
# License as published by the Free Software Foundation; either
11+
# version 3 of the License, or (at your option) any later version.
12+
#
13+
# This library is distributed in the hope that it will be useful,
14+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
# Lesser General Public License for more details.
17+
#
18+
# You should have received a copy of the GNU Lesser General Public
19+
# License along with this library; if not, write to the Free Software
20+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21+
#
22+
# For further information, see http://www.nexusformat.org
23+
-->
24+
<definition name="NXemission_lines" type="group" extends="NXobject" category="base"
25+
xmlns="http://definition.nexusformat.org/nxdl/3.1"
26+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd">
27+
<doc>Emission lines</doc>
28+
<field name="name" type="NX_CHAR">
29+
<doc>
30+
The emission lines are writen using the IUPAC notation, i.e. an
31+
initial and final edge seprated by a hyphen.
32+
33+
TODO: Extend the enumeration to include all possible emission lines.
34+
</doc>
35+
<enumeration>
36+
<item value="K-L1"></item>
37+
<item value="K-L2"></item>
38+
<item value="K-L3"></item>
39+
<item value="K-M1"></item>
40+
<item value="K-M2"></item>
41+
<item value="K-M3"></item>
42+
<item value="K-M4"></item>
43+
<item value="K-M5"></item>
44+
</enumeration>
45+
</field>
46+
</definition>
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?xml-stylesheet type="text/xsl" href="nxdlformat.xsl" ?>
3+
<!--
4+
# NeXus - Neutron and X-ray Common Data Format
5+
#
6+
# Copyright (C) 2008-2022 NeXus International Advisory Committee (NIAC)
7+
#
8+
# This library is free software; you can redistribute it and/or
9+
# modify it under the terms of the GNU Lesser General Public
10+
# License as published by the Free Software Foundation; either
11+
# version 3 of the License, or (at your option) any later version.
12+
#
13+
# This library is distributed in the hope that it will be useful,
14+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
# Lesser General Public License for more details.
17+
#
18+
# You should have received a copy of the GNU Lesser General Public
19+
# License along with this library; if not, write to the Free Software
20+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21+
#
22+
# For further information, see http://www.nexusformat.org
23+
-->
24+
<definition name="NXxas_mode" type="group" extends="NXobject" category="base"
25+
xmlns="http://definition.nexusformat.org/nxdl/3.1"
26+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd">
27+
<doc>XAS measurement mode</doc>
28+
<field name="name" type="NX_CHAR" minOccurs="1" maxOccurs="1">
29+
<doc>
30+
X-ray absorption spectroscopy (XAS) is a technique that measures the absorption coefficient :math:`\mu(E)` of a material as a function of energy.
31+
32+
The name of the XAS mode indicates the type of process being monitored to obtain the spectrum. Below is a description of the available modes, with emphasis on the expected values for the `intensity` and `monitor` fields.
33+
34+
1. Transmission
35+
36+
The absorption coefficient is obtained by measuring the intensity of the incident :math:`I_0` and transmitted beam :math:`I`.
37+
38+
.. math::
39+
\mu(E) = -\ln(I/I_0)
40+
41+
2. Total fluorescence yield (TFY)
42+
43+
The absorption coefficient is obtained by measuring the intensity of the emitted fluorescence :math:`I_f` and the incident beam :math:`I_0`.
44+
45+
.. math::
46+
\mu(E) \propto I_f/I_0
47+
48+
3. Partial fluorescence yield (PFY)
49+
50+
4. Inverse partial fluorescence yield (IPFY)
51+
52+
5. High-energy resolution fluorescence detection (HERFD)
53+
54+
6. Total electron yield (TEY)
55+
56+
7. Partial electron yield (PEY)
57+
58+
8. Electron energy loss (EELS)
59+
60+
9. X-ray Raman Scattering (XRS)
61+
62+
10. Diffraction Anomalous Fine Structure (DAFS)
63+
64+
11. X-ray Excited Optical Luminescence (XEOL)
65+
66+
12. Grazing Angle Reflection Extended X-ray Absorption Fine Structure (ReflEXAFS)
67+
68+
13. Other
69+
</doc>
70+
<enumeration>
71+
<item value="transmission">
72+
<doc>
73+
Transmission
74+
</doc>
75+
</item>
76+
<item value="tfy">
77+
<doc>
78+
Total Fluorescence Yield
79+
</doc>
80+
</item>
81+
<item value="pfy">
82+
<doc>
83+
Partial Fluorescence Yield
84+
</doc>
85+
</item>
86+
<item value="ipfy">
87+
<doc>
88+
Inverse Partial Fluorescence Yield
89+
</doc>
90+
</item>
91+
<item value="herfd">
92+
<doc>
93+
High Energy Resolution Fluorescence Detected
94+
</doc>
95+
</item>
96+
<item value="tey">
97+
<doc>
98+
Total Electron Yield
99+
</doc>
100+
</item>
101+
<item value="pey">
102+
<doc>
103+
Partial Electron Yield
104+
</doc>
105+
</item>
106+
<item value="eels">
107+
<doc>
108+
Electron Energy Loss
109+
</doc>
110+
</item>
111+
<item value="raman">
112+
<doc>
113+
X-ray Raman Scattering
114+
</doc>
115+
</item>
116+
<item value="dafs">
117+
<doc>
118+
Diffraction Anomalous Fine Structure
119+
</doc>
120+
</item>
121+
<item value="xeol">
122+
<doc>
123+
X-ray Excited Optical Luminescence
124+
</doc>
125+
</item>
126+
<item value="reflexafs">
127+
<doc>
128+
Grazing Angle Reflection Extended X-ray Absorption Fine Structure
129+
</doc>
130+
</item>
131+
<item value="other">
132+
<doc>
133+
Other
134+
</doc>
135+
</item>
136+
</enumeration>
137+
</field>
138+
<group name="emission_lines" type="NXemission_lines" optional="true">
139+
</group>
140+
141+
</definition>

0 commit comments

Comments
 (0)