source: sasview/dev/api/sas.dataloader.readers.html @ a462c6a

gh-pages
Last change on this file since a462c6a was a462c6a, checked in by ajj, 9 years ago

Rebuild to fix index and modules docs

  • Property mode set to 100644
File size: 115.8 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
4
5<html xmlns="http://www.w3.org/1999/xhtml">
6  <head>
7    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8   
9    <title>sas.dataloader.readers package &mdash; SasView 3.0.0 documentation</title>
10   
11    <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
12    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
13   
14    <script type="text/javascript">
15      var DOCUMENTATION_OPTIONS = {
16        URL_ROOT:    '../../',
17        VERSION:     '3.0.0',
18        COLLAPSE_INDEX: false,
19        FILE_SUFFIX: '.html',
20        HAS_SOURCE:  true
21      };
22    </script>
23    <script type="text/javascript" src="../../_static/jquery.js"></script>
24    <script type="text/javascript" src="../../_static/underscore.js"></script>
25    <script type="text/javascript" src="../../_static/doctools.js"></script>
26    <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
27    <link rel="top" title="SasView 3.0.0 documentation" href="../../index.html" />
28    <link rel="up" title="sas.dataloader package" href="sas.dataloader.html" />
29    <link rel="next" title="sas.fit package" href="sas.fit.html" />
30    <link rel="prev" title="sas.dataloader package" href="sas.dataloader.html" /> 
31  </head>
32  <body>
33    <div class="related">
34      <h3>Navigation</h3>
35      <ul>
36        <li class="right" style="margin-right: 10px">
37          <a href="../../genindex.html" title="General Index"
38             accesskey="I">index</a></li>
39        <li class="right" >
40          <a href="../../py-modindex.html" title="Python Module Index"
41             >modules</a> |</li>
42        <li class="right" >
43          <a href="sas.fit.html" title="sas.fit package"
44             accesskey="N">next</a> |</li>
45        <li class="right" >
46          <a href="sas.dataloader.html" title="sas.dataloader package"
47             accesskey="P">previous</a> |</li>
48        <li><a href="../../index.html">SasView 3.0.0 documentation</a> &raquo;</li>
49          <li><a href="../dev.html" >Developer Documentation</a> &raquo;</li>
50          <li><a href="modules.html" >lib.macosx-10.5-x86_64-2.7</a> &raquo;</li>
51          <li><a href="sas.html" >sas package</a> &raquo;</li>
52          <li><a href="sas.dataloader.html" accesskey="U">sas.dataloader package</a> &raquo;</li> 
53      </ul>
54    </div> 
55
56    <div class="document">
57      <div class="documentwrapper">
58        <div class="bodywrapper">
59          <div class="body">
60           
61  <div class="section" id="sas-dataloader-readers-package">
62<h1>sas.dataloader.readers package</h1>
63<div class="section" id="submodules">
64<h2>Submodules</h2>
65</div>
66<div class="section" id="module-sas.dataloader.readers.IgorReader">
67<span id="sas-dataloader-readers-igorreader-module"></span><h2>sas.dataloader.readers.IgorReader module</h2>
68<p>IGOR 2D reduced file reader</p>
69<dl class="class">
70<dt id="sas.dataloader.readers.IgorReader.Reader">
71<em class="property">class </em><tt class="descclassname">sas.dataloader.readers.IgorReader.</tt><tt class="descname">Reader</tt><a class="reference internal" href="../../_modules/sas/dataloader/readers/IgorReader.html#Reader"><span class="viewcode-link">[source]</span></a></dt>
72<dd><p>Simple data reader for Igor data files</p>
73<dl class="attribute">
74<dt id="sas.dataloader.readers.IgorReader.Reader.ext">
75<tt class="descname">ext</tt><em class="property"> = ['.ASC', '.asc']</em></dt>
76<dd></dd></dl>
77
78<dl class="method">
79<dt id="sas.dataloader.readers.IgorReader.Reader.read">
80<tt class="descname">read</tt><big>(</big><em>filename=None</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/IgorReader.html#Reader.read"><span class="viewcode-link">[source]</span></a></dt>
81<dd><p>Read file</p>
82</dd></dl>
83
84<dl class="attribute">
85<dt id="sas.dataloader.readers.IgorReader.Reader.type">
86<tt class="descname">type</tt><em class="property"> = ['IGOR 2D files (*.ASC)|*.ASC']</em></dt>
87<dd></dd></dl>
88
89<dl class="attribute">
90<dt id="sas.dataloader.readers.IgorReader.Reader.type_name">
91<tt class="descname">type_name</tt><em class="property"> = 'IGOR 2D'</em></dt>
92<dd></dd></dl>
93
94</dd></dl>
95
96</div>
97<div class="section" id="module-sas.dataloader.readers.abs_reader">
98<span id="sas-dataloader-readers-abs-reader-module"></span><h2>sas.dataloader.readers.abs_reader module</h2>
99<dl class="class">
100<dt id="sas.dataloader.readers.abs_reader.Reader">
101<em class="property">class </em><tt class="descclassname">sas.dataloader.readers.abs_reader.</tt><tt class="descname">Reader</tt><a class="reference internal" href="../../_modules/sas/dataloader/readers/abs_reader.html#Reader"><span class="viewcode-link">[source]</span></a></dt>
102<dd><p>Class to load IGOR reduced .ABS files</p>
103<dl class="attribute">
104<dt id="sas.dataloader.readers.abs_reader.Reader.ext">
105<tt class="descname">ext</tt><em class="property"> = ['.abs', '.ABS']</em></dt>
106<dd></dd></dl>
107
108<dl class="method">
109<dt id="sas.dataloader.readers.abs_reader.Reader.read">
110<tt class="descname">read</tt><big>(</big><em>path</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/abs_reader.html#Reader.read"><span class="viewcode-link">[source]</span></a></dt>
111<dd><p>Load data file.</p>
112<table class="docutils field-list" frame="void" rules="none">
113<col class="field-name" />
114<col class="field-body" />
115<tbody valign="top">
116<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>path</strong> &#8211; file path</p>
117</td>
118</tr>
119<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">Data1D object, or None</p>
120</td>
121</tr>
122<tr class="field-odd field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
123<li><strong>RuntimeError</strong> &#8211; when the file can&#8217;t be opened</li>
124<li><strong>ValueError</strong> &#8211; when the length of the data vectors are inconsistent</li>
125</ul>
126</td>
127</tr>
128</tbody>
129</table>
130</dd></dl>
131
132<dl class="attribute">
133<dt id="sas.dataloader.readers.abs_reader.Reader.type">
134<tt class="descname">type</tt><em class="property"> = ['IGOR 1D files (*.abs)|*.abs']</em></dt>
135<dd></dd></dl>
136
137<dl class="attribute">
138<dt id="sas.dataloader.readers.abs_reader.Reader.type_name">
139<tt class="descname">type_name</tt><em class="property"> = 'IGOR 1D'</em></dt>
140<dd></dd></dl>
141
142</dd></dl>
143
144</div>
145<div class="section" id="module-sas.dataloader.readers.ascii_reader">
146<span id="sas-dataloader-readers-ascii-reader-module"></span><h2>sas.dataloader.readers.ascii_reader module</h2>
147<p>ASCII reader</p>
148<dl class="class">
149<dt id="sas.dataloader.readers.ascii_reader.Reader">
150<em class="property">class </em><tt class="descclassname">sas.dataloader.readers.ascii_reader.</tt><tt class="descname">Reader</tt><a class="reference internal" href="../../_modules/sas/dataloader/readers/ascii_reader.html#Reader"><span class="viewcode-link">[source]</span></a></dt>
151<dd><p>Class to load ascii files (2, 3 or 4 columns).</p>
152<dl class="attribute">
153<dt id="sas.dataloader.readers.ascii_reader.Reader.allow_all">
154<tt class="descname">allow_all</tt><em class="property"> = True</em></dt>
155<dd></dd></dl>
156
157<dl class="attribute">
158<dt id="sas.dataloader.readers.ascii_reader.Reader.ext">
159<tt class="descname">ext</tt><em class="property"> = ['.txt', '.TXT', '.dat', '.DAT', '.abs', '.ABS', 'csv', 'CSV']</em></dt>
160<dd></dd></dl>
161
162<dl class="method">
163<dt id="sas.dataloader.readers.ascii_reader.Reader.read">
164<tt class="descname">read</tt><big>(</big><em>path</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/ascii_reader.html#Reader.read"><span class="viewcode-link">[source]</span></a></dt>
165<dd><p>Load data file</p>
166<table class="docutils field-list" frame="void" rules="none">
167<col class="field-name" />
168<col class="field-body" />
169<tbody valign="top">
170<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>path</strong> &#8211; file path</p>
171</td>
172</tr>
173<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">Data1D object, or None</p>
174</td>
175</tr>
176<tr class="field-odd field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
177<li><strong>RuntimeError</strong> &#8211; when the file can&#8217;t be opened</li>
178<li><strong>ValueError</strong> &#8211; when the length of the data vectors are inconsistent</li>
179</ul>
180</td>
181</tr>
182</tbody>
183</table>
184</dd></dl>
185
186<dl class="attribute">
187<dt id="sas.dataloader.readers.ascii_reader.Reader.type">
188<tt class="descname">type</tt><em class="property"> = ['ASCII files (*.txt)|*.txt', 'ASCII files (*.dat)|*.dat', 'ASCII files (*.abs)|*.abs', 'CSV files (*.csv)|*.csv']</em></dt>
189<dd></dd></dl>
190
191<dl class="attribute">
192<dt id="sas.dataloader.readers.ascii_reader.Reader.type_name">
193<tt class="descname">type_name</tt><em class="property"> = 'ASCII'</em></dt>
194<dd></dd></dl>
195
196</dd></dl>
197
198</div>
199<div class="section" id="module-sas.dataloader.readers.associations">
200<span id="sas-dataloader-readers-associations-module"></span><h2>sas.dataloader.readers.associations module</h2>
201<p>Module to associate default readers to file extensions.
202The module reads an xml file to get the readers for each file extension.
203The readers are tried in order they appear when reading a file.</p>
204<dl class="function">
205<dt id="sas.dataloader.readers.associations.read_associations">
206<tt class="descclassname">sas.dataloader.readers.associations.</tt><tt class="descname">read_associations</tt><big>(</big><em>loader</em>, <em>settings='defaults.xml'</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/associations.html#read_associations"><span class="viewcode-link">[source]</span></a></dt>
207<dd><p>Read the specified settings file to associate
208default readers to file extension.</p>
209<table class="docutils field-list" frame="void" rules="none">
210<col class="field-name" />
211<col class="field-body" />
212<tbody valign="top">
213<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
214<li><strong>loader</strong> &#8211; Loader object</li>
215<li><strong>settings</strong> &#8211; path to the XML settings file [string]</li>
216</ul>
217</td>
218</tr>
219</tbody>
220</table>
221</dd></dl>
222
223<dl class="function">
224<dt id="sas.dataloader.readers.associations.register_readers">
225<tt class="descclassname">sas.dataloader.readers.associations.</tt><tt class="descname">register_readers</tt><big>(</big><em>registry_function</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/associations.html#register_readers"><span class="viewcode-link">[source]</span></a></dt>
226<dd><p>Function called by the registry/loader object to register
227all default readers using a call back function.</p>
228<table class="docutils field-list" frame="void" rules="none">
229<col class="field-name" />
230<col class="field-body" />
231<tbody valign="top">
232<tr class="field-odd field"><th class="field-name">WARNING:</th><td class="field-body">this method is now obsolete</td>
233</tr>
234<tr class="field-even field"><th class="field-name">Parameters:</th><td class="field-body"><strong>registry_function</strong> &#8211; function to be called to register each reader</td>
235</tr>
236</tbody>
237</table>
238</dd></dl>
239
240</div>
241<div class="section" id="module-sas.dataloader.readers.cansas_constants">
242<span id="sas-dataloader-readers-cansas-constants-module"></span><h2>sas.dataloader.readers.cansas_constants module</h2>
243<p>Information relating to the CanSAS data format. These constants are used in
244the cansas_reader.py file to read in any version of the cansas format.</p>
245<dl class="class">
246<dt id="sas.dataloader.readers.cansas_constants.CansasConstants">
247<em class="property">class </em><tt class="descclassname">sas.dataloader.readers.cansas_constants.</tt><tt class="descname">CansasConstants</tt><a class="reference internal" href="../../_modules/sas/dataloader/readers/cansas_constants.html#CansasConstants"><span class="viewcode-link">[source]</span></a></dt>
248<dd><p>The base class to define where all of the data is to be saved by
249cansas_reader.py.</p>
250<dl class="attribute">
251<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.ANY">
252<tt class="descname">ANY</tt><em class="property"> = {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}</em></dt>
253<dd></dd></dl>
254
255<dl class="attribute">
256<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.CANSAS_FORMAT">
257<tt class="descname">CANSAS_FORMAT</tt><em class="property"> = {'SASentry': {'variable': None, 'attributes': {'name': {'variable': '{0}.run_name[node_value] = &quot;{1}&quot;'}}, 'units_optional': True, 'storeas': 'content', 'children': {'SASsample': {'variable': None, 'attributes': {'name': {'variable': '{0}.sample.name = &quot;{1}&quot;'}}, 'children': {'&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}, 'orientation': {'variable': None, 'children': {'yaw': {'variable': '{0}.sample.orientation.z = {1}', 'attributes': {'unit': {'variable': '{0}.sample.orientation_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.orientation_unit'}, 'roll': {'variable': '{0}.sample.orientation.x = {1}', 'attributes': {'unit': {'variable': '{0}.sample.orientation_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.orientation_unit'}, 'pitch': {'variable': '{0}.sample.orientation.y = {1}', 'attributes': {'unit': {'variable': '{0}.sample.orientation_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.orientation_unit'}}}, 'temperature': {'variable': '{0}.sample.temperature = {1}', 'attributes': {'unit': {'variable': '{0}.sample.temperature_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.temperature_unit'}, 'transmission': {'variable': '{0}.sample.transmission = {1}', 'storeas': 'float'}, 'position': {'children': {'variable': None, 'x': {'variable': '{0}.sample.position.x = {1}', 'attributes': {'unit': {'variable': '{0}.sample.position_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.position_unit'}, 'z': {'variable': '{0}.sample.position.z = {1}', 'attributes': {'unit': {'variable': '{0}.sample.position_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.position_unit'}, 'y': {'variable': '{0}.sample.position.y = {1}', 'attributes': {'unit': {'variable': '{0}.sample.position_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.position_unit'}}}, 'details': {'variable': '{0}.sample.details.append(&quot;{1}&quot;)'}, 'ID': {'variable': '{0}.sample.ID = &quot;{1}&quot;'}, 'thickness': {'variable': '{0}.sample.thickness = {1}', 'attributes': {'unit': {'variable': '{0}.sample.thickness_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.thickness_unit'}}}, 'SASinstrument': {'variable': None, 'children': {'variable': None, 'SAScollimation': {'variable': None, 'attributes': {'name': {'variable': '{0}.name = &quot;{1}&quot;'}}, 'children': {'aperture': {'variable': None, 'attributes': {'type': {'variable': '{0}.type = &quot;{1}&quot;'}, 'name': {'variable': '{0}.name = &quot;{1}&quot;'}}, 'children': {'distance': {'variable': '{0}.distance = {1}', 'attributes': {'storeas': 'content', 'unit': {'variable': '{0}.distance_unit = &quot;{1}&quot;'}}, 'storeas': 'float', 'unit': 'distance_unit'}, 'size': {'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;'}}, 'children': {'y': {'variable': '{0}.size.y = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}, 'x': {'variable': '{0}.size.x = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}, 'z': {'variable': '{0}.size.z = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}, 'storeas': 'float'}}}}, 'length': {'variable': '{0}.length = {1}', 'attributes': {'storeas': 'content', 'unit': {'variable': '{0}.length_unit = &quot;{1}&quot;'}}, 'storeas': 'float', 'unit': 'length_unit'}}}, 'SASdetector': {'variable': None, 'attributes': {'name': {'variable': '{0}.name = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'children': {'orientation': {'variable': None, 'children': {'yaw': {'variable': '{0}.orientation.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.orientation_unit = &quot;{1}&quot;'}, 'unit': 'orientation_unit'}, 'roll': {'variable': '{0}.orientation.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.orientation_unit = &quot;{1}&quot;'}, 'unit': 'orientation_unit'}, 'pitch': {'variable': '{0}.orientation.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.orientation_unit = &quot;{1}&quot;'}, 'unit': 'orientation_unit'}}}, 'beam_center': {'variable': None, 'children': {'y': {'variable': '{0}.beam_center.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.beam_center_unit = &quot;{1}&quot;'}, 'unit': 'beam_center_unit'}, 'x': {'variable': '{0}.beam_center.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.beam_center_unit = &quot;{1}&quot;'}, 'unit': 'beam_center_unit'}, 'z': {'variable': '{0}.beam_center.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.beam_center_unit = &quot;{1}&quot;'}, 'unit': 'beam_center_unit'}}}, 'SDD': {'variable': '{0}.distance = {1}', 'attributes': {'unit': {'variable': '{0}.distance_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'distance_unit'}, 'slit_length': {'variable': '{0}.slit_length = {1}', 'attributes': {'unit': {'variable': '{0}.slit_length_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'slit_length_unit'}, 'offset': {'variable': None, 'children': {'y': {'variable': '{0}.offset.y = {1}', 'attributes': {'unit': {'variable': '{0}.offset_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'offset_unit'}, 'x': {'variable': '{0}.offset.x = {1}', 'attributes': {'unit': {'variable': '{0}.offset_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'offset_unit'}, 'z': {'variable': '{0}.offset.z = {1}', 'attributes': {'unit': {'variable': '{0}.offset_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'offset_unit'}}}, 'pixel_size': {'variable': None, 'children': {'y': {'variable': '{0}.pixel_size.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.pixel_size_unit = &quot;{1}&quot;'}, 'unit': 'pixel_size_unit'}, 'x': {'variable': '{0}.pixel_size.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.pixel_size_unit = &quot;{1}&quot;'}, 'unit': 'pixel_size_unit'}, 'z': {'variable': '{0}.pixel_size.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.pixel_size_unit = &quot;{1}&quot;'}, 'unit': 'pixel_size_unit'}}}, 'name': {'variable': '{0}.name = &quot;{1}&quot;', 'storeas': 'content'}}}, 'name': {'variable': '{0}.instrument = &quot;{1}&quot;'}, 'SASsource': {'variable': None, 'attributes': {'name': {'variable': '{0}.source.name = &quot;{1}&quot;'}}, 'children': {'wavelength_max': {'variable': '{0}.source.wavelength_max = {1}', 'attributes': {'unit': {'variable': '{0}.source.wavelength_max_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'source.wavelength_max_unit'}, 'radiation': {'variable': '{0}.source.radiation = &quot;{1}&quot;'}, 'wavelength_spread': {'variable': '{0}.source.wavelength_spread = {1}', 'attributes': {'unit': {'variable': '{0}.source.wavelength_spread_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'source.wavelength_spread_unit'}, 'beam_size': {'variable': None, 'attributes': {'name': {'variable': '{0}.source.beam_size_name = &quot;{1}&quot;'}}, 'children': {'y': {'variable': '{0}.source.beam_size.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.source.beam_size_unit = &quot;{1}&quot;'}, 'storeas': 'float', 'unit': 'source.beam_size_unit'}, 'x': {'variable': '{0}.source.beam_size.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.source.beam_size_unit = &quot;{1}&quot;'}, 'storeas': 'float', 'unit': 'source.beam_size_unit'}, 'z': {'variable': '{0}.source.beam_size.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.source.beam_size_unit = &quot;{1}&quot;'}, 'storeas': 'float', 'unit': 'source.beam_size_unit'}}}, 'wavelength': {'variable': '{0}.source.wavelength = {1}', 'attributes': {'unit': {'variable': '{0}.source.wavelength_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'source.wavelength_unit'}, 'wavelength_min': {'variable': '{0}.source.wavelength_min = {1}', 'attributes': {'unit': {'variable': '{0}.source.wavelength_min_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'source.wavelength_min_unit'}, 'beam_shape': {'variable': '{0}.source.beam_shape = &quot;{1}&quot;'}}}}}, 'Run': {'variable': '{0}.run.append(&quot;{1}&quot;)', 'attributes': {'name': {'variable': '{0}.run_name[node_value] = &quot;{1}&quot;'}}}, '&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}, 'Title': {'variable': '{0}.title = &quot;{1}&quot;'}, 'SASnote': {'variable': &quot;{0}.notes.append('{1}')&quot;}, 'SAStransmission_spectrum': {'variable': None, 'attributes': {'timestamp': {'variable': '{0}.timestamp = &quot;{1}&quot;'}, 'name': {'variable': '{0}.name = &quot;{1}&quot;'}}, 'children': {'Tdata': {'variable': None, 'storeas': 'float', 'children': {'Tdev': {'variable': '{0}.transmission_deviation.append({1})', 'attributes': {'unit': {'variable': '{0}.transmission_deviation_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'transmission_deviation_unit'}, '&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}, 'T': {'variable': '{0}.transmission.append({1})', 'attributes': {'unit': {'variable': '{0}.transmission_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'transmission_unit'}, 'Lambda': {'variable': '{0}.wavelength.append({1})', 'attributes': {'unit': {'variable': '{0}.wavelength_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'wavelength_unit'}}}, '&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}}}, 'SASdata': {'variable': None, 'attributes': {'name': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;'}}, 'children': {'Idata': {'variable': None, 'attributes': {'timestamp': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'timestamp'}, 'name': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'units_optional': False, 'storeas': 'float', 'children': {'Q': {'variable': '{0}.x = numpy.append({0}.x, {1})', 'attributes': {'unit': {'variable': '{0}._xunit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'x_unit'}, 'dQl': {'variable': '{0}.dxl = numpy.append({0}.dxl, {1})', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'x_unit'}, 'Qdev': {'variable': '{0}.dx = numpy.append({0}.dx, {1})', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'x_unit'}, 'dQw': {'variable': '{0}.dxw = numpy.append({0}.dxw, {1})', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'x_unit'}, '&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}, 'I': {'variable': '{0}.y = numpy.append({0}.y, {1})', 'attributes': {'unit': {'variable': '{0}._yunit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'y_unit'}, 'Shadowfactor': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}, 'Idev': {'variable': '{0}.dy = numpy.append({0}.dy, {1})', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'y_unit'}, 'Qmean': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;'}}, 'storeas': 'content', 'unit': 'x_unit'}}}, '&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}}}, 'SASprocess': {'variable': None, 'children': {'term': {'variable': None, 'attributes': {'name': {'variable': None}, 'unit': {'variable': None}}}, '&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}, 'description': {'variable': &quot;{0}.description = '{1}'&quot;}, 'SASprocessnote': {'variable': None, 'children': {'&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}}}, 'date': {'variable': &quot;{0}.date = '{1}'&quot;}, 'name': {'variable': &quot;{0}.name = '{1}'&quot;}}}}}}</em></dt>
258<dd></dd></dl>
259
260<dl class="attribute">
261<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.CANSAS_NS">
262<tt class="descname">CANSAS_NS</tt><em class="property"> = {'1.0': {'ns': 'cansas1d/1.0', 'schema': 'cansas1d_v1_0.xsd'}, '1.1': {'ns': 'urn:cansas1d:1.1', 'schema': 'cansas1d_v1_1.xsd'}}</em></dt>
263<dd></dd></dl>
264
265<dl class="attribute">
266<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.META_DATA">
267<tt class="descname">META_DATA</tt><em class="property"> = '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;'</em></dt>
268<dd></dd></dl>
269
270<dl class="attribute">
271<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.RUN">
272<tt class="descname">RUN</tt><em class="property"> = {'variable': '{0}.run.append(&quot;{1}&quot;)', 'attributes': {'name': {'variable': '{0}.run_name[node_value] = &quot;{1}&quot;'}}}</em></dt>
273<dd></dd></dl>
274
275<dl class="attribute">
276<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASDATA">
277<tt class="descname">SASDATA</tt><em class="property"> = {'variable': None, 'attributes': {'name': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;'}}, 'children': {'Idata': {'variable': None, 'attributes': {'timestamp': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'timestamp'}, 'name': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'units_optional': False, 'storeas': 'float', 'children': {'Q': {'variable': '{0}.x = numpy.append({0}.x, {1})', 'attributes': {'unit': {'variable': '{0}._xunit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'x_unit'}, 'dQl': {'variable': '{0}.dxl = numpy.append({0}.dxl, {1})', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'x_unit'}, 'Qdev': {'variable': '{0}.dx = numpy.append({0}.dx, {1})', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'x_unit'}, 'dQw': {'variable': '{0}.dxw = numpy.append({0}.dxw, {1})', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'x_unit'}, '&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}, 'I': {'variable': '{0}.y = numpy.append({0}.y, {1})', 'attributes': {'unit': {'variable': '{0}._yunit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'y_unit'}, 'Shadowfactor': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}, 'Idev': {'variable': '{0}.dy = numpy.append({0}.dy, {1})', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'y_unit'}, 'Qmean': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;'}}, 'storeas': 'content', 'unit': 'x_unit'}}}, '&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}}}</em></dt>
278<dd></dd></dl>
279
280<dl class="attribute">
281<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASDATA_IDATA">
282<tt class="descname">SASDATA_IDATA</tt><em class="property"> = {'variable': None, 'attributes': {'timestamp': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'timestamp'}, 'name': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'units_optional': False, 'storeas': 'float', 'children': {'Q': {'variable': '{0}.x = numpy.append({0}.x, {1})', 'attributes': {'unit': {'variable': '{0}._xunit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'x_unit'}, 'dQl': {'variable': '{0}.dxl = numpy.append({0}.dxl, {1})', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'x_unit'}, 'Qdev': {'variable': '{0}.dx = numpy.append({0}.dx, {1})', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'x_unit'}, 'dQw': {'variable': '{0}.dxw = numpy.append({0}.dxw, {1})', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'x_unit'}, '&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}, 'I': {'variable': '{0}.y = numpy.append({0}.y, {1})', 'attributes': {'unit': {'variable': '{0}._yunit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'y_unit'}, 'Shadowfactor': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}, 'Idev': {'variable': '{0}.dy = numpy.append({0}.dy, {1})', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'y_unit'}, 'Qmean': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;'}}, 'storeas': 'content', 'unit': 'x_unit'}}}</em></dt>
283<dd></dd></dl>
284
285<dl class="attribute">
286<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASDATA_IDATA_DQL">
287<tt class="descname">SASDATA_IDATA_DQL</tt><em class="property"> = {'variable': '{0}.dxl = numpy.append({0}.dxl, {1})', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'x_unit'}</em></dt>
288<dd></dd></dl>
289
290<dl class="attribute">
291<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASDATA_IDATA_DQW">
292<tt class="descname">SASDATA_IDATA_DQW</tt><em class="property"> = {'variable': '{0}.dxw = numpy.append({0}.dxw, {1})', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'x_unit'}</em></dt>
293<dd></dd></dl>
294
295<dl class="attribute">
296<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASDATA_IDATA_I">
297<tt class="descname">SASDATA_IDATA_I</tt><em class="property"> = {'variable': '{0}.y = numpy.append({0}.y, {1})', 'attributes': {'unit': {'variable': '{0}._yunit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'y_unit'}</em></dt>
298<dd></dd></dl>
299
300<dl class="attribute">
301<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASDATA_IDATA_IDEV">
302<tt class="descname">SASDATA_IDATA_IDEV</tt><em class="property"> = {'variable': '{0}.dy = numpy.append({0}.dy, {1})', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'y_unit'}</em></dt>
303<dd></dd></dl>
304
305<dl class="attribute">
306<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASDATA_IDATA_Q">
307<tt class="descname">SASDATA_IDATA_Q</tt><em class="property"> = {'variable': '{0}.x = numpy.append({0}.x, {1})', 'attributes': {'unit': {'variable': '{0}._xunit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'x_unit'}</em></dt>
308<dd></dd></dl>
309
310<dl class="attribute">
311<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASDATA_IDATA_QDEV">
312<tt class="descname">SASDATA_IDATA_QDEV</tt><em class="property"> = {'variable': '{0}.dx = numpy.append({0}.dx, {1})', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'x_unit'}</em></dt>
313<dd></dd></dl>
314
315<dl class="attribute">
316<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASDATA_IDATA_QMEAN">
317<tt class="descname">SASDATA_IDATA_QMEAN</tt><em class="property"> = {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'attributes': {'unit': {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;'}}, 'storeas': 'content', 'unit': 'x_unit'}</em></dt>
318<dd></dd></dl>
319
320<dl class="attribute">
321<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASDATA_IDATA_SHADOWFACTOR">
322<tt class="descname">SASDATA_IDATA_SHADOWFACTOR</tt><em class="property"> = {'variable': '{0}.meta_data[&quot;{2}&quot;] = &quot;{1}&quot;', 'storeas': 'content'}</em></dt>
323<dd></dd></dl>
324
325<dl class="attribute">
326<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR">
327<tt class="descname">SASINSTR</tt><em class="property"> = {'variable': None, 'children': {'variable': None, 'SAScollimation': {'variable': None, 'attributes': {'name': {'variable': '{0}.name = &quot;{1}&quot;'}}, 'children': {'aperture': {'variable': None, 'attributes': {'type': {'variable': '{0}.type = &quot;{1}&quot;'}, 'name': {'variable': '{0}.name = &quot;{1}&quot;'}}, 'children': {'distance': {'variable': '{0}.distance = {1}', 'attributes': {'storeas': 'content', 'unit': {'variable': '{0}.distance_unit = &quot;{1}&quot;'}}, 'storeas': 'float', 'unit': 'distance_unit'}, 'size': {'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;'}}, 'children': {'y': {'variable': '{0}.size.y = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}, 'x': {'variable': '{0}.size.x = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}, 'z': {'variable': '{0}.size.z = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}, 'storeas': 'float'}}}}, 'length': {'variable': '{0}.length = {1}', 'attributes': {'storeas': 'content', 'unit': {'variable': '{0}.length_unit = &quot;{1}&quot;'}}, 'storeas': 'float', 'unit': 'length_unit'}}}, 'SASdetector': {'variable': None, 'attributes': {'name': {'variable': '{0}.name = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'children': {'orientation': {'variable': None, 'children': {'yaw': {'variable': '{0}.orientation.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.orientation_unit = &quot;{1}&quot;'}, 'unit': 'orientation_unit'}, 'roll': {'variable': '{0}.orientation.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.orientation_unit = &quot;{1}&quot;'}, 'unit': 'orientation_unit'}, 'pitch': {'variable': '{0}.orientation.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.orientation_unit = &quot;{1}&quot;'}, 'unit': 'orientation_unit'}}}, 'beam_center': {'variable': None, 'children': {'y': {'variable': '{0}.beam_center.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.beam_center_unit = &quot;{1}&quot;'}, 'unit': 'beam_center_unit'}, 'x': {'variable': '{0}.beam_center.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.beam_center_unit = &quot;{1}&quot;'}, 'unit': 'beam_center_unit'}, 'z': {'variable': '{0}.beam_center.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.beam_center_unit = &quot;{1}&quot;'}, 'unit': 'beam_center_unit'}}}, 'SDD': {'variable': '{0}.distance = {1}', 'attributes': {'unit': {'variable': '{0}.distance_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'distance_unit'}, 'slit_length': {'variable': '{0}.slit_length = {1}', 'attributes': {'unit': {'variable': '{0}.slit_length_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'slit_length_unit'}, 'offset': {'variable': None, 'children': {'y': {'variable': '{0}.offset.y = {1}', 'attributes': {'unit': {'variable': '{0}.offset_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'offset_unit'}, 'x': {'variable': '{0}.offset.x = {1}', 'attributes': {'unit': {'variable': '{0}.offset_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'offset_unit'}, 'z': {'variable': '{0}.offset.z = {1}', 'attributes': {'unit': {'variable': '{0}.offset_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'offset_unit'}}}, 'pixel_size': {'variable': None, 'children': {'y': {'variable': '{0}.pixel_size.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.pixel_size_unit = &quot;{1}&quot;'}, 'unit': 'pixel_size_unit'}, 'x': {'variable': '{0}.pixel_size.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.pixel_size_unit = &quot;{1}&quot;'}, 'unit': 'pixel_size_unit'}, 'z': {'variable': '{0}.pixel_size.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.pixel_size_unit = &quot;{1}&quot;'}, 'unit': 'pixel_size_unit'}}}, 'name': {'variable': '{0}.name = &quot;{1}&quot;', 'storeas': 'content'}}}, 'name': {'variable': '{0}.instrument = &quot;{1}&quot;'}, 'SASsource': {'variable': None, 'attributes': {'name': {'variable': '{0}.source.name = &quot;{1}&quot;'}}, 'children': {'wavelength_max': {'variable': '{0}.source.wavelength_max = {1}', 'attributes': {'unit': {'variable': '{0}.source.wavelength_max_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'source.wavelength_max_unit'}, 'radiation': {'variable': '{0}.source.radiation = &quot;{1}&quot;'}, 'wavelength_spread': {'variable': '{0}.source.wavelength_spread = {1}', 'attributes': {'unit': {'variable': '{0}.source.wavelength_spread_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'source.wavelength_spread_unit'}, 'beam_size': {'variable': None, 'attributes': {'name': {'variable': '{0}.source.beam_size_name = &quot;{1}&quot;'}}, 'children': {'y': {'variable': '{0}.source.beam_size.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.source.beam_size_unit = &quot;{1}&quot;'}, 'storeas': 'float', 'unit': 'source.beam_size_unit'}, 'x': {'variable': '{0}.source.beam_size.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.source.beam_size_unit = &quot;{1}&quot;'}, 'storeas': 'float', 'unit': 'source.beam_size_unit'}, 'z': {'variable': '{0}.source.beam_size.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.source.beam_size_unit = &quot;{1}&quot;'}, 'storeas': 'float', 'unit': 'source.beam_size_unit'}}}, 'wavelength': {'variable': '{0}.source.wavelength = {1}', 'attributes': {'unit': {'variable': '{0}.source.wavelength_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'source.wavelength_unit'}, 'wavelength_min': {'variable': '{0}.source.wavelength_min = {1}', 'attributes': {'unit': {'variable': '{0}.source.wavelength_min_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'source.wavelength_min_unit'}, 'beam_shape': {'variable': '{0}.source.beam_shape = &quot;{1}&quot;'}}}}}</em></dt>
328<dd></dd></dl>
329
330<dl class="attribute">
331<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_COLL">
332<tt class="descname">SASINSTR_COLL</tt><em class="property"> = {'variable': None, 'attributes': {'name': {'variable': '{0}.name = &quot;{1}&quot;'}}, 'children': {'aperture': {'variable': None, 'attributes': {'type': {'variable': '{0}.type = &quot;{1}&quot;'}, 'name': {'variable': '{0}.name = &quot;{1}&quot;'}}, 'children': {'distance': {'variable': '{0}.distance = {1}', 'attributes': {'storeas': 'content', 'unit': {'variable': '{0}.distance_unit = &quot;{1}&quot;'}}, 'storeas': 'float', 'unit': 'distance_unit'}, 'size': {'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;'}}, 'children': {'y': {'variable': '{0}.size.y = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}, 'x': {'variable': '{0}.size.x = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}, 'z': {'variable': '{0}.size.z = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}, 'storeas': 'float'}}}}, 'length': {'variable': '{0}.length = {1}', 'attributes': {'storeas': 'content', 'unit': {'variable': '{0}.length_unit = &quot;{1}&quot;'}}, 'storeas': 'float', 'unit': 'length_unit'}}}</em></dt>
333<dd></dd></dl>
334
335<dl class="attribute">
336<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_COLL_APER">
337<tt class="descname">SASINSTR_COLL_APER</tt><em class="property"> = {'variable': None, 'attributes': {'type': {'variable': '{0}.type = &quot;{1}&quot;'}, 'name': {'variable': '{0}.name = &quot;{1}&quot;'}}, 'children': {'distance': {'variable': '{0}.distance = {1}', 'attributes': {'storeas': 'content', 'unit': {'variable': '{0}.distance_unit = &quot;{1}&quot;'}}, 'storeas': 'float', 'unit': 'distance_unit'}, 'size': {'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;'}}, 'children': {'y': {'variable': '{0}.size.y = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}, 'x': {'variable': '{0}.size.x = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}, 'z': {'variable': '{0}.size.z = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}, 'storeas': 'float'}}}}</em></dt>
338<dd></dd></dl>
339
340<dl class="attribute">
341<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_COLL_APER_ATTR">
342<tt class="descname">SASINSTR_COLL_APER_ATTR</tt><em class="property"> = {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}</em></dt>
343<dd></dd></dl>
344
345<dl class="attribute">
346<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_COLL_APER_DIST">
347<tt class="descname">SASINSTR_COLL_APER_DIST</tt><em class="property"> = {'variable': '{0}.distance = {1}', 'attributes': {'storeas': 'content', 'unit': {'variable': '{0}.distance_unit = &quot;{1}&quot;'}}, 'storeas': 'float', 'unit': 'distance_unit'}</em></dt>
348<dd></dd></dl>
349
350<dl class="attribute">
351<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_COLL_APER_SIZE">
352<tt class="descname">SASINSTR_COLL_APER_SIZE</tt><em class="property"> = {'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;'}}, 'children': {'y': {'variable': '{0}.size.y = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}, 'x': {'variable': '{0}.size.x = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}, 'z': {'variable': '{0}.size.z = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}, 'storeas': 'float'}}</em></dt>
353<dd></dd></dl>
354
355<dl class="attribute">
356<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_COLL_APER_X">
357<tt class="descname">SASINSTR_COLL_APER_X</tt><em class="property"> = {'variable': '{0}.size.x = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}</em></dt>
358<dd></dd></dl>
359
360<dl class="attribute">
361<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_COLL_APER_Y">
362<tt class="descname">SASINSTR_COLL_APER_Y</tt><em class="property"> = {'variable': '{0}.size.y = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}</em></dt>
363<dd></dd></dl>
364
365<dl class="attribute">
366<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_COLL_APER_Z">
367<tt class="descname">SASINSTR_COLL_APER_Z</tt><em class="property"> = {'variable': '{0}.size.z = {1}', 'attributes': {'unit': {'variable': '{0}.size_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'size_unit'}</em></dt>
368<dd></dd></dl>
369
370<dl class="attribute">
371<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET">
372<tt class="descname">SASINSTR_DET</tt><em class="property"> = {'variable': None, 'attributes': {'name': {'variable': '{0}.name = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'children': {'orientation': {'variable': None, 'children': {'yaw': {'variable': '{0}.orientation.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.orientation_unit = &quot;{1}&quot;'}, 'unit': 'orientation_unit'}, 'roll': {'variable': '{0}.orientation.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.orientation_unit = &quot;{1}&quot;'}, 'unit': 'orientation_unit'}, 'pitch': {'variable': '{0}.orientation.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.orientation_unit = &quot;{1}&quot;'}, 'unit': 'orientation_unit'}}}, 'beam_center': {'variable': None, 'children': {'y': {'variable': '{0}.beam_center.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.beam_center_unit = &quot;{1}&quot;'}, 'unit': 'beam_center_unit'}, 'x': {'variable': '{0}.beam_center.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.beam_center_unit = &quot;{1}&quot;'}, 'unit': 'beam_center_unit'}, 'z': {'variable': '{0}.beam_center.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.beam_center_unit = &quot;{1}&quot;'}, 'unit': 'beam_center_unit'}}}, 'SDD': {'variable': '{0}.distance = {1}', 'attributes': {'unit': {'variable': '{0}.distance_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'distance_unit'}, 'slit_length': {'variable': '{0}.slit_length = {1}', 'attributes': {'unit': {'variable': '{0}.slit_length_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'slit_length_unit'}, 'offset': {'variable': None, 'children': {'y': {'variable': '{0}.offset.y = {1}', 'attributes': {'unit': {'variable': '{0}.offset_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'offset_unit'}, 'x': {'variable': '{0}.offset.x = {1}', 'attributes': {'unit': {'variable': '{0}.offset_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'offset_unit'}, 'z': {'variable': '{0}.offset.z = {1}', 'attributes': {'unit': {'variable': '{0}.offset_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'offset_unit'}}}, 'pixel_size': {'variable': None, 'children': {'y': {'variable': '{0}.pixel_size.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.pixel_size_unit = &quot;{1}&quot;'}, 'unit': 'pixel_size_unit'}, 'x': {'variable': '{0}.pixel_size.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.pixel_size_unit = &quot;{1}&quot;'}, 'unit': 'pixel_size_unit'}, 'z': {'variable': '{0}.pixel_size.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.pixel_size_unit = &quot;{1}&quot;'}, 'unit': 'pixel_size_unit'}}}, 'name': {'variable': '{0}.name = &quot;{1}&quot;', 'storeas': 'content'}}}</em></dt>
373<dd></dd></dl>
374
375<dl class="attribute">
376<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_BC">
377<tt class="descname">SASINSTR_DET_BC</tt><em class="property"> = {'variable': None, 'children': {'y': {'variable': '{0}.beam_center.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.beam_center_unit = &quot;{1}&quot;'}, 'unit': 'beam_center_unit'}, 'x': {'variable': '{0}.beam_center.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.beam_center_unit = &quot;{1}&quot;'}, 'unit': 'beam_center_unit'}, 'z': {'variable': '{0}.beam_center.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.beam_center_unit = &quot;{1}&quot;'}, 'unit': 'beam_center_unit'}}}</em></dt>
378<dd></dd></dl>
379
380<dl class="attribute">
381<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_BC_X">
382<tt class="descname">SASINSTR_DET_BC_X</tt><em class="property"> = {'variable': '{0}.beam_center.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.beam_center_unit = &quot;{1}&quot;'}, 'unit': 'beam_center_unit'}</em></dt>
383<dd></dd></dl>
384
385<dl class="attribute">
386<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_BC_Y">
387<tt class="descname">SASINSTR_DET_BC_Y</tt><em class="property"> = {'variable': '{0}.beam_center.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.beam_center_unit = &quot;{1}&quot;'}, 'unit': 'beam_center_unit'}</em></dt>
388<dd></dd></dl>
389
390<dl class="attribute">
391<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_BC_Z">
392<tt class="descname">SASINSTR_DET_BC_Z</tt><em class="property"> = {'variable': '{0}.beam_center.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.beam_center_unit = &quot;{1}&quot;'}, 'unit': 'beam_center_unit'}</em></dt>
393<dd></dd></dl>
394
395<dl class="attribute">
396<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_OFF">
397<tt class="descname">SASINSTR_DET_OFF</tt><em class="property"> = {'variable': None, 'children': {'y': {'variable': '{0}.offset.y = {1}', 'attributes': {'unit': {'variable': '{0}.offset_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'offset_unit'}, 'x': {'variable': '{0}.offset.x = {1}', 'attributes': {'unit': {'variable': '{0}.offset_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'offset_unit'}, 'z': {'variable': '{0}.offset.z = {1}', 'attributes': {'unit': {'variable': '{0}.offset_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'offset_unit'}}}</em></dt>
398<dd></dd></dl>
399
400<dl class="attribute">
401<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_OFF_ATTR">
402<tt class="descname">SASINSTR_DET_OFF_ATTR</tt><em class="property"> = {'unit': {'variable': '{0}.offset_unit = &quot;{1}&quot;', 'storeas': 'content'}}</em></dt>
403<dd></dd></dl>
404
405<dl class="attribute">
406<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_OFF_X">
407<tt class="descname">SASINSTR_DET_OFF_X</tt><em class="property"> = {'variable': '{0}.offset.x = {1}', 'attributes': {'unit': {'variable': '{0}.offset_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'offset_unit'}</em></dt>
408<dd></dd></dl>
409
410<dl class="attribute">
411<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_OFF_Y">
412<tt class="descname">SASINSTR_DET_OFF_Y</tt><em class="property"> = {'variable': '{0}.offset.y = {1}', 'attributes': {'unit': {'variable': '{0}.offset_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'offset_unit'}</em></dt>
413<dd></dd></dl>
414
415<dl class="attribute">
416<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_OFF_Z">
417<tt class="descname">SASINSTR_DET_OFF_Z</tt><em class="property"> = {'variable': '{0}.offset.z = {1}', 'attributes': {'unit': {'variable': '{0}.offset_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'offset_unit'}</em></dt>
418<dd></dd></dl>
419
420<dl class="attribute">
421<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_OR">
422<tt class="descname">SASINSTR_DET_OR</tt><em class="property"> = {'variable': None, 'children': {'yaw': {'variable': '{0}.orientation.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.orientation_unit = &quot;{1}&quot;'}, 'unit': 'orientation_unit'}, 'roll': {'variable': '{0}.orientation.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.orientation_unit = &quot;{1}&quot;'}, 'unit': 'orientation_unit'}, 'pitch': {'variable': '{0}.orientation.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.orientation_unit = &quot;{1}&quot;'}, 'unit': 'orientation_unit'}}}</em></dt>
423<dd></dd></dl>
424
425<dl class="attribute">
426<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_OR_ATTR">
427<tt class="descname">SASINSTR_DET_OR_ATTR</tt><em class="property"> = {'storeas': 'content', 'unit': '{0}.orientation_unit = &quot;{1}&quot;'}</em></dt>
428<dd></dd></dl>
429
430<dl class="attribute">
431<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_OR_PITCH">
432<tt class="descname">SASINSTR_DET_OR_PITCH</tt><em class="property"> = {'variable': '{0}.orientation.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.orientation_unit = &quot;{1}&quot;'}, 'unit': 'orientation_unit'}</em></dt>
433<dd></dd></dl>
434
435<dl class="attribute">
436<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_OR_ROLL">
437<tt class="descname">SASINSTR_DET_OR_ROLL</tt><em class="property"> = {'variable': '{0}.orientation.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.orientation_unit = &quot;{1}&quot;'}, 'unit': 'orientation_unit'}</em></dt>
438<dd></dd></dl>
439
440<dl class="attribute">
441<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_OR_YAW">
442<tt class="descname">SASINSTR_DET_OR_YAW</tt><em class="property"> = {'variable': '{0}.orientation.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.orientation_unit = &quot;{1}&quot;'}, 'unit': 'orientation_unit'}</em></dt>
443<dd></dd></dl>
444
445<dl class="attribute">
446<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_PIXEL">
447<tt class="descname">SASINSTR_DET_PIXEL</tt><em class="property"> = {'variable': None, 'children': {'y': {'variable': '{0}.pixel_size.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.pixel_size_unit = &quot;{1}&quot;'}, 'unit': 'pixel_size_unit'}, 'x': {'variable': '{0}.pixel_size.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.pixel_size_unit = &quot;{1}&quot;'}, 'unit': 'pixel_size_unit'}, 'z': {'variable': '{0}.pixel_size.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.pixel_size_unit = &quot;{1}&quot;'}, 'unit': 'pixel_size_unit'}}}</em></dt>
448<dd></dd></dl>
449
450<dl class="attribute">
451<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_PIXEL_X">
452<tt class="descname">SASINSTR_DET_PIXEL_X</tt><em class="property"> = {'variable': '{0}.pixel_size.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.pixel_size_unit = &quot;{1}&quot;'}, 'unit': 'pixel_size_unit'}</em></dt>
453<dd></dd></dl>
454
455<dl class="attribute">
456<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_PIXEL_Y">
457<tt class="descname">SASINSTR_DET_PIXEL_Y</tt><em class="property"> = {'variable': '{0}.pixel_size.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.pixel_size_unit = &quot;{1}&quot;'}, 'unit': 'pixel_size_unit'}</em></dt>
458<dd></dd></dl>
459
460<dl class="attribute">
461<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_PIXEL_Z">
462<tt class="descname">SASINSTR_DET_PIXEL_Z</tt><em class="property"> = {'variable': '{0}.pixel_size.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.pixel_size_unit = &quot;{1}&quot;'}, 'unit': 'pixel_size_unit'}</em></dt>
463<dd></dd></dl>
464
465<dl class="attribute">
466<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_SDD">
467<tt class="descname">SASINSTR_DET_SDD</tt><em class="property"> = {'variable': '{0}.distance = {1}', 'attributes': {'unit': {'variable': '{0}.distance_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'distance_unit'}</em></dt>
468<dd></dd></dl>
469
470<dl class="attribute">
471<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_DET_SLIT">
472<tt class="descname">SASINSTR_DET_SLIT</tt><em class="property"> = {'variable': '{0}.slit_length = {1}', 'attributes': {'unit': {'variable': '{0}.slit_length_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'slit_length_unit'}</em></dt>
473<dd></dd></dl>
474
475<dl class="attribute">
476<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_SRC">
477<tt class="descname">SASINSTR_SRC</tt><em class="property"> = {'variable': None, 'attributes': {'name': {'variable': '{0}.source.name = &quot;{1}&quot;'}}, 'children': {'wavelength_max': {'variable': '{0}.source.wavelength_max = {1}', 'attributes': {'unit': {'variable': '{0}.source.wavelength_max_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'source.wavelength_max_unit'}, 'radiation': {'variable': '{0}.source.radiation = &quot;{1}&quot;'}, 'wavelength_spread': {'variable': '{0}.source.wavelength_spread = {1}', 'attributes': {'unit': {'variable': '{0}.source.wavelength_spread_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'source.wavelength_spread_unit'}, 'beam_size': {'variable': None, 'attributes': {'name': {'variable': '{0}.source.beam_size_name = &quot;{1}&quot;'}}, 'children': {'y': {'variable': '{0}.source.beam_size.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.source.beam_size_unit = &quot;{1}&quot;'}, 'storeas': 'float', 'unit': 'source.beam_size_unit'}, 'x': {'variable': '{0}.source.beam_size.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.source.beam_size_unit = &quot;{1}&quot;'}, 'storeas': 'float', 'unit': 'source.beam_size_unit'}, 'z': {'variable': '{0}.source.beam_size.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.source.beam_size_unit = &quot;{1}&quot;'}, 'storeas': 'float', 'unit': 'source.beam_size_unit'}}}, 'wavelength': {'variable': '{0}.source.wavelength = {1}', 'attributes': {'unit': {'variable': '{0}.source.wavelength_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'source.wavelength_unit'}, 'wavelength_min': {'variable': '{0}.source.wavelength_min = {1}', 'attributes': {'unit': {'variable': '{0}.source.wavelength_min_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'source.wavelength_min_unit'}, 'beam_shape': {'variable': '{0}.source.beam_shape = &quot;{1}&quot;'}}}</em></dt>
478<dd></dd></dl>
479
480<dl class="attribute">
481<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_SRC_BEAMSIZE">
482<tt class="descname">SASINSTR_SRC_BEAMSIZE</tt><em class="property"> = {'variable': None, 'attributes': {'name': {'variable': '{0}.source.beam_size_name = &quot;{1}&quot;'}}, 'children': {'y': {'variable': '{0}.source.beam_size.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.source.beam_size_unit = &quot;{1}&quot;'}, 'storeas': 'float', 'unit': 'source.beam_size_unit'}, 'x': {'variable': '{0}.source.beam_size.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.source.beam_size_unit = &quot;{1}&quot;'}, 'storeas': 'float', 'unit': 'source.beam_size_unit'}, 'z': {'variable': '{0}.source.beam_size.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.source.beam_size_unit = &quot;{1}&quot;'}, 'storeas': 'float', 'unit': 'source.beam_size_unit'}}}</em></dt>
483<dd></dd></dl>
484
485<dl class="attribute">
486<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_SRC_BEAMSIZE_ATTR">
487<tt class="descname">SASINSTR_SRC_BEAMSIZE_ATTR</tt><em class="property"> = {'storeas': 'content', 'unit': '{0}.source.beam_size_unit = &quot;{1}&quot;'}</em></dt>
488<dd></dd></dl>
489
490<dl class="attribute">
491<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_SRC_BEAMSIZE_X">
492<tt class="descname">SASINSTR_SRC_BEAMSIZE_X</tt><em class="property"> = {'variable': '{0}.source.beam_size.x = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.source.beam_size_unit = &quot;{1}&quot;'}, 'storeas': 'float', 'unit': 'source.beam_size_unit'}</em></dt>
493<dd></dd></dl>
494
495<dl class="attribute">
496<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_SRC_BEAMSIZE_Y">
497<tt class="descname">SASINSTR_SRC_BEAMSIZE_Y</tt><em class="property"> = {'variable': '{0}.source.beam_size.y = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.source.beam_size_unit = &quot;{1}&quot;'}, 'storeas': 'float', 'unit': 'source.beam_size_unit'}</em></dt>
498<dd></dd></dl>
499
500<dl class="attribute">
501<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_SRC_BEAMSIZE_Z">
502<tt class="descname">SASINSTR_SRC_BEAMSIZE_Z</tt><em class="property"> = {'variable': '{0}.source.beam_size.z = {1}', 'attributes': {'storeas': 'content', 'unit': '{0}.source.beam_size_unit = &quot;{1}&quot;'}, 'storeas': 'float', 'unit': 'source.beam_size_unit'}</em></dt>
503<dd></dd></dl>
504
505<dl class="attribute">
506<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_SRC_WL">
507<tt class="descname">SASINSTR_SRC_WL</tt><em class="property"> = {'variable': '{0}.source.wavelength = {1}', 'attributes': {'unit': {'variable': '{0}.source.wavelength_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'source.wavelength_unit'}</em></dt>
508<dd></dd></dl>
509
510<dl class="attribute">
511<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_SRC_WL_MAX">
512<tt class="descname">SASINSTR_SRC_WL_MAX</tt><em class="property"> = {'variable': '{0}.source.wavelength_max = {1}', 'attributes': {'unit': {'variable': '{0}.source.wavelength_max_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'source.wavelength_max_unit'}</em></dt>
513<dd></dd></dl>
514
515<dl class="attribute">
516<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_SRC_WL_MIN">
517<tt class="descname">SASINSTR_SRC_WL_MIN</tt><em class="property"> = {'variable': '{0}.source.wavelength_min = {1}', 'attributes': {'unit': {'variable': '{0}.source.wavelength_min_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'source.wavelength_min_unit'}</em></dt>
518<dd></dd></dl>
519
520<dl class="attribute">
521<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASINSTR_SRC_WL_SPR">
522<tt class="descname">SASINSTR_SRC_WL_SPR</tt><em class="property"> = {'variable': '{0}.source.wavelength_spread = {1}', 'attributes': {'unit': {'variable': '{0}.source.wavelength_spread_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'source.wavelength_spread_unit'}</em></dt>
523<dd></dd></dl>
524
525<dl class="attribute">
526<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASNOTE">
527<tt class="descname">SASNOTE</tt><em class="property"> = {'variable': &quot;{0}.notes.append('{1}')&quot;}</em></dt>
528<dd></dd></dl>
529
530<dl class="attribute">
531<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASPROCESS">
532<tt class="descname">SASPROCESS</tt><em class="property"> = {'variable': None, 'children': {'term': {'variable': None, 'attributes': {'name': {'variable': None}, 'unit': {'variable': None}}}, '&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}, 'description': {'variable': &quot;{0}.description = '{1}'&quot;}, 'SASprocessnote': {'variable': None, 'children': {'&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}}}, 'date': {'variable': &quot;{0}.date = '{1}'&quot;}, 'name': {'variable': &quot;{0}.name = '{1}'&quot;}}}</em></dt>
533<dd></dd></dl>
534
535<dl class="attribute">
536<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASPROCESS_SASPROCESSNOTE">
537<tt class="descname">SASPROCESS_SASPROCESSNOTE</tt><em class="property"> = {'variable': None, 'children': {'&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}}}</em></dt>
538<dd></dd></dl>
539
540<dl class="attribute">
541<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASPROCESS_TERM">
542<tt class="descname">SASPROCESS_TERM</tt><em class="property"> = {'variable': None, 'attributes': {'name': {'variable': None}, 'unit': {'variable': None}}}</em></dt>
543<dd></dd></dl>
544
545<dl class="attribute">
546<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASSAMPLE">
547<tt class="descname">SASSAMPLE</tt><em class="property"> = {'variable': None, 'attributes': {'name': {'variable': '{0}.sample.name = &quot;{1}&quot;'}}, 'children': {'&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}, 'orientation': {'variable': None, 'children': {'yaw': {'variable': '{0}.sample.orientation.z = {1}', 'attributes': {'unit': {'variable': '{0}.sample.orientation_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.orientation_unit'}, 'roll': {'variable': '{0}.sample.orientation.x = {1}', 'attributes': {'unit': {'variable': '{0}.sample.orientation_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.orientation_unit'}, 'pitch': {'variable': '{0}.sample.orientation.y = {1}', 'attributes': {'unit': {'variable': '{0}.sample.orientation_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.orientation_unit'}}}, 'temperature': {'variable': '{0}.sample.temperature = {1}', 'attributes': {'unit': {'variable': '{0}.sample.temperature_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.temperature_unit'}, 'transmission': {'variable': '{0}.sample.transmission = {1}', 'storeas': 'float'}, 'position': {'children': {'variable': None, 'x': {'variable': '{0}.sample.position.x = {1}', 'attributes': {'unit': {'variable': '{0}.sample.position_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.position_unit'}, 'z': {'variable': '{0}.sample.position.z = {1}', 'attributes': {'unit': {'variable': '{0}.sample.position_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.position_unit'}, 'y': {'variable': '{0}.sample.position.y = {1}', 'attributes': {'unit': {'variable': '{0}.sample.position_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.position_unit'}}}, 'details': {'variable': '{0}.sample.details.append(&quot;{1}&quot;)'}, 'ID': {'variable': '{0}.sample.ID = &quot;{1}&quot;'}, 'thickness': {'variable': '{0}.sample.thickness = {1}', 'attributes': {'unit': {'variable': '{0}.sample.thickness_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.thickness_unit'}}}</em></dt>
548<dd></dd></dl>
549
550<dl class="attribute">
551<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASSAMPLE_ORIENT">
552<tt class="descname">SASSAMPLE_ORIENT</tt><em class="property"> = {'variable': None, 'children': {'yaw': {'variable': '{0}.sample.orientation.z = {1}', 'attributes': {'unit': {'variable': '{0}.sample.orientation_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.orientation_unit'}, 'roll': {'variable': '{0}.sample.orientation.x = {1}', 'attributes': {'unit': {'variable': '{0}.sample.orientation_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.orientation_unit'}, 'pitch': {'variable': '{0}.sample.orientation.y = {1}', 'attributes': {'unit': {'variable': '{0}.sample.orientation_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.orientation_unit'}}}</em></dt>
553<dd></dd></dl>
554
555<dl class="attribute">
556<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASSAMPLE_ORIENT_ATTR">
557<tt class="descname">SASSAMPLE_ORIENT_ATTR</tt><em class="property"> = {'unit': {'variable': '{0}.sample.orientation_unit = &quot;{1}&quot;', 'storeas': 'content'}}</em></dt>
558<dd></dd></dl>
559
560<dl class="attribute">
561<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASSAMPLE_ORIENT_PITCH">
562<tt class="descname">SASSAMPLE_ORIENT_PITCH</tt><em class="property"> = {'variable': '{0}.sample.orientation.y = {1}', 'attributes': {'unit': {'variable': '{0}.sample.orientation_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.orientation_unit'}</em></dt>
563<dd></dd></dl>
564
565<dl class="attribute">
566<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASSAMPLE_ORIENT_ROLL">
567<tt class="descname">SASSAMPLE_ORIENT_ROLL</tt><em class="property"> = {'variable': '{0}.sample.orientation.x = {1}', 'attributes': {'unit': {'variable': '{0}.sample.orientation_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.orientation_unit'}</em></dt>
568<dd></dd></dl>
569
570<dl class="attribute">
571<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASSAMPLE_ORIENT_YAW">
572<tt class="descname">SASSAMPLE_ORIENT_YAW</tt><em class="property"> = {'variable': '{0}.sample.orientation.z = {1}', 'attributes': {'unit': {'variable': '{0}.sample.orientation_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.orientation_unit'}</em></dt>
573<dd></dd></dl>
574
575<dl class="attribute">
576<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASSAMPLE_POS">
577<tt class="descname">SASSAMPLE_POS</tt><em class="property"> = {'children': {'variable': None, 'x': {'variable': '{0}.sample.position.x = {1}', 'attributes': {'unit': {'variable': '{0}.sample.position_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.position_unit'}, 'z': {'variable': '{0}.sample.position.z = {1}', 'attributes': {'unit': {'variable': '{0}.sample.position_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.position_unit'}, 'y': {'variable': '{0}.sample.position.y = {1}', 'attributes': {'unit': {'variable': '{0}.sample.position_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.position_unit'}}}</em></dt>
578<dd></dd></dl>
579
580<dl class="attribute">
581<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASSAMPLE_POS_ATTR">
582<tt class="descname">SASSAMPLE_POS_ATTR</tt><em class="property"> = {'unit': {'variable': '{0}.sample.position_unit = &quot;{1}&quot;', 'storeas': 'content'}}</em></dt>
583<dd></dd></dl>
584
585<dl class="attribute">
586<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASSAMPLE_POS_X">
587<tt class="descname">SASSAMPLE_POS_X</tt><em class="property"> = {'variable': '{0}.sample.position.x = {1}', 'attributes': {'unit': {'variable': '{0}.sample.position_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.position_unit'}</em></dt>
588<dd></dd></dl>
589
590<dl class="attribute">
591<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASSAMPLE_POS_Y">
592<tt class="descname">SASSAMPLE_POS_Y</tt><em class="property"> = {'variable': '{0}.sample.position.y = {1}', 'attributes': {'unit': {'variable': '{0}.sample.position_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.position_unit'}</em></dt>
593<dd></dd></dl>
594
595<dl class="attribute">
596<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASSAMPLE_POS_Z">
597<tt class="descname">SASSAMPLE_POS_Z</tt><em class="property"> = {'variable': '{0}.sample.position.z = {1}', 'attributes': {'unit': {'variable': '{0}.sample.position_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.position_unit'}</em></dt>
598<dd></dd></dl>
599
600<dl class="attribute">
601<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASSAMPLE_TEMP">
602<tt class="descname">SASSAMPLE_TEMP</tt><em class="property"> = {'variable': '{0}.sample.temperature = {1}', 'attributes': {'unit': {'variable': '{0}.sample.temperature_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.temperature_unit'}</em></dt>
603<dd></dd></dl>
604
605<dl class="attribute">
606<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASSAMPLE_THICK">
607<tt class="descname">SASSAMPLE_THICK</tt><em class="property"> = {'variable': '{0}.sample.thickness = {1}', 'attributes': {'unit': {'variable': '{0}.sample.thickness_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'storeas': 'float', 'unit': 'sample.thickness_unit'}</em></dt>
608<dd></dd></dl>
609
610<dl class="attribute">
611<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASSAMPLE_TRANS">
612<tt class="descname">SASSAMPLE_TRANS</tt><em class="property"> = {'variable': '{0}.sample.transmission = {1}', 'storeas': 'float'}</em></dt>
613<dd></dd></dl>
614
615<dl class="attribute">
616<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASTRANSSPEC">
617<tt class="descname">SASTRANSSPEC</tt><em class="property"> = {'variable': None, 'attributes': {'timestamp': {'variable': '{0}.timestamp = &quot;{1}&quot;'}, 'name': {'variable': '{0}.name = &quot;{1}&quot;'}}, 'children': {'Tdata': {'variable': None, 'storeas': 'float', 'children': {'Tdev': {'variable': '{0}.transmission_deviation.append({1})', 'attributes': {'unit': {'variable': '{0}.transmission_deviation_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'transmission_deviation_unit'}, '&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}, 'T': {'variable': '{0}.transmission.append({1})', 'attributes': {'unit': {'variable': '{0}.transmission_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'transmission_unit'}, 'Lambda': {'variable': '{0}.wavelength.append({1})', 'attributes': {'unit': {'variable': '{0}.wavelength_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'wavelength_unit'}}}, '&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}}}</em></dt>
618<dd></dd></dl>
619
620<dl class="attribute">
621<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASTRANSSPEC_TDATA">
622<tt class="descname">SASTRANSSPEC_TDATA</tt><em class="property"> = {'variable': None, 'storeas': 'float', 'children': {'Tdev': {'variable': '{0}.transmission_deviation.append({1})', 'attributes': {'unit': {'variable': '{0}.transmission_deviation_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'transmission_deviation_unit'}, '&lt;any&gt;': {'variable': '{0}.meta_data[&quot;{2}&quot;] = \'{1}\'', 'storeas': 'content'}, 'T': {'variable': '{0}.transmission.append({1})', 'attributes': {'unit': {'variable': '{0}.transmission_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'transmission_unit'}, 'Lambda': {'variable': '{0}.wavelength.append({1})', 'attributes': {'unit': {'variable': '{0}.wavelength_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'wavelength_unit'}}}</em></dt>
623<dd></dd></dl>
624
625<dl class="attribute">
626<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASTRANSSPEC_TDATA_LAMDBA">
627<tt class="descname">SASTRANSSPEC_TDATA_LAMDBA</tt><em class="property"> = {'variable': '{0}.wavelength.append({1})', 'attributes': {'unit': {'variable': '{0}.wavelength_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'wavelength_unit'}</em></dt>
628<dd></dd></dl>
629
630<dl class="attribute">
631<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASTRANSSPEC_TDATA_T">
632<tt class="descname">SASTRANSSPEC_TDATA_T</tt><em class="property"> = {'variable': '{0}.transmission.append({1})', 'attributes': {'unit': {'variable': '{0}.transmission_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'transmission_unit'}</em></dt>
633<dd></dd></dl>
634
635<dl class="attribute">
636<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.SASTRANSSPEC_TDATA_TDEV">
637<tt class="descname">SASTRANSSPEC_TDATA_TDEV</tt><em class="property"> = {'variable': '{0}.transmission_deviation.append({1})', 'attributes': {'unit': {'variable': '{0}.transmission_deviation_unit = &quot;{1}&quot;', 'storeas': 'content'}}, 'unit': 'transmission_deviation_unit'}</em></dt>
638<dd></dd></dl>
639
640<dl class="attribute">
641<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.TITLE">
642<tt class="descname">TITLE</tt><em class="property"> = {'variable': '{0}.title = &quot;{1}&quot;'}</em></dt>
643<dd></dd></dl>
644
645<dl class="attribute">
646<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.format">
647<tt class="descname">format</tt><em class="property"> = ''</em></dt>
648<dd></dd></dl>
649
650<dl class="method">
651<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.get_namespace_map">
652<tt class="descname">get_namespace_map</tt><big>(</big><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/cansas_constants.html#CansasConstants.get_namespace_map"><span class="viewcode-link">[source]</span></a></dt>
653<dd><p>Helper method to get the names namespace list</p>
654</dd></dl>
655
656<dl class="method">
657<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.iterate_namespace">
658<tt class="descname">iterate_namespace</tt><big>(</big><em>namespace</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/cansas_constants.html#CansasConstants.iterate_namespace"><span class="viewcode-link">[source]</span></a></dt>
659<dd><p>Method to iterate through a cansas constants tree based on a list of
660names</p>
661<table class="docutils field-list" frame="void" rules="none">
662<col class="field-name" />
663<col class="field-body" />
664<tbody valign="top">
665<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>namespace</strong> &#8211; A list of names that match the tree structure of
666cansas_constants</td>
667</tr>
668</tbody>
669</table>
670</dd></dl>
671
672<dl class="attribute">
673<dt id="sas.dataloader.readers.cansas_constants.CansasConstants.names">
674<tt class="descname">names</tt><em class="property"> = ''</em></dt>
675<dd></dd></dl>
676
677</dd></dl>
678
679<dl class="class">
680<dt id="sas.dataloader.readers.cansas_constants.CurrentLevel">
681<em class="property">class </em><tt class="descclassname">sas.dataloader.readers.cansas_constants.</tt><tt class="descname">CurrentLevel</tt><a class="reference internal" href="../../_modules/sas/dataloader/readers/cansas_constants.html#CurrentLevel"><span class="viewcode-link">[source]</span></a></dt>
682<dd><p>A helper class to hold information on where you are in the constants tree</p>
683<dl class="attribute">
684<dt id="sas.dataloader.readers.cansas_constants.CurrentLevel.current_level">
685<tt class="descname">current_level</tt><em class="property"> = ''</em></dt>
686<dd></dd></dl>
687
688<dl class="method">
689<dt id="sas.dataloader.readers.cansas_constants.CurrentLevel.get_current_level">
690<tt class="descname">get_current_level</tt><big>(</big><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/cansas_constants.html#CurrentLevel.get_current_level"><span class="viewcode-link">[source]</span></a></dt>
691<dd><p>Helper method to get the current_level map</p>
692</dd></dl>
693
694<dl class="method">
695<dt id="sas.dataloader.readers.cansas_constants.CurrentLevel.get_data_type">
696<tt class="descname">get_data_type</tt><big>(</big><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/cansas_constants.html#CurrentLevel.get_data_type"><span class="viewcode-link">[source]</span></a></dt>
697<dd><p>Helper method to get the ns_datatype label</p>
698</dd></dl>
699
700<dl class="method">
701<dt id="sas.dataloader.readers.cansas_constants.CurrentLevel.get_variable">
702<tt class="descname">get_variable</tt><big>(</big><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/cansas_constants.html#CurrentLevel.get_variable"><span class="viewcode-link">[source]</span></a></dt>
703<dd><p>Helper method to get the ns_variable label</p>
704</dd></dl>
705
706<dl class="attribute">
707<dt id="sas.dataloader.readers.cansas_constants.CurrentLevel.ns_datatype">
708<tt class="descname">ns_datatype</tt><em class="property"> = ''</em></dt>
709<dd></dd></dl>
710
711<dl class="attribute">
712<dt id="sas.dataloader.readers.cansas_constants.CurrentLevel.ns_optional">
713<tt class="descname">ns_optional</tt><em class="property"> = True</em></dt>
714<dd></dd></dl>
715
716<dl class="attribute">
717<dt id="sas.dataloader.readers.cansas_constants.CurrentLevel.ns_variable">
718<tt class="descname">ns_variable</tt><em class="property"> = ''</em></dt>
719<dd></dd></dl>
720
721</dd></dl>
722
723</div>
724<div class="section" id="module-sas.dataloader.readers.cansas_reader">
725<span id="sas-dataloader-readers-cansas-reader-module"></span><h2>sas.dataloader.readers.cansas_reader module</h2>
726<p>CanSAS data reader - new recursive cansas_version.</p>
727<dl class="class">
728<dt id="sas.dataloader.readers.cansas_reader.Reader">
729<em class="property">class </em><tt class="descclassname">sas.dataloader.readers.cansas_reader.</tt><tt class="descname">Reader</tt><a class="reference internal" href="../../_modules/sas/dataloader/readers/cansas_reader.html#Reader"><span class="viewcode-link">[source]</span></a></dt>
730<dd><p>Bases: <a class="reference internal" href="#sas.dataloader.readers.xml_reader.XMLreader" title="sas.dataloader.readers.xml_reader.XMLreader"><tt class="xref py py-class docutils literal"><span class="pre">sas.dataloader.readers.xml_reader.XMLreader</span></tt></a></p>
731<p>Class to load cansas 1D XML files</p>
732<table class="docutils field-list" frame="void" rules="none">
733<col class="field-name" />
734<col class="field-body" />
735<tbody valign="top">
736<tr class="field-odd field"><th class="field-name">Dependencies:</th><td class="field-body">The CanSAS reader requires PyXML 0.8.4 or later.</td>
737</tr>
738</tbody>
739</table>
740<dl class="attribute">
741<dt id="sas.dataloader.readers.cansas_reader.Reader.allow_all">
742<tt class="descname">allow_all</tt><em class="property"> = True</em></dt>
743<dd></dd></dl>
744
745<dl class="attribute">
746<dt id="sas.dataloader.readers.cansas_reader.Reader.base_ns">
747<tt class="descname">base_ns</tt><em class="property"> = '{cansas1d/1.0}'</em></dt>
748<dd></dd></dl>
749
750<dl class="attribute">
751<dt id="sas.dataloader.readers.cansas_reader.Reader.cansas_version">
752<tt class="descname">cansas_version</tt><em class="property"> = '1.0'</em></dt>
753<dd></dd></dl>
754
755<dl class="attribute">
756<dt id="sas.dataloader.readers.cansas_reader.Reader.errors">
757<tt class="descname">errors</tt><em class="property"> = []</em></dt>
758<dd></dd></dl>
759
760<dl class="attribute">
761<dt id="sas.dataloader.readers.cansas_reader.Reader.ext">
762<tt class="descname">ext</tt><em class="property"> = ['.xml', '.XML', '.svs', '.SVS']</em></dt>
763<dd></dd></dl>
764
765<dl class="method">
766<dt id="sas.dataloader.readers.cansas_reader.Reader.is_cansas">
767<tt class="descname">is_cansas</tt><big>(</big><em>ext='xml'</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/cansas_reader.html#Reader.is_cansas"><span class="viewcode-link">[source]</span></a></dt>
768<dd><p>Checks to see if the xml file is a CanSAS file</p>
769<table class="docutils field-list" frame="void" rules="none">
770<col class="field-name" />
771<col class="field-body" />
772<tbody valign="top">
773<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>ext</strong> &#8211; The file extension of the data file</td>
774</tr>
775</tbody>
776</table>
777</dd></dl>
778
779<dl class="method">
780<dt id="sas.dataloader.readers.cansas_reader.Reader.load_file_and_schema">
781<tt class="descname">load_file_and_schema</tt><big>(</big><em>xml_file</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/cansas_reader.html#Reader.load_file_and_schema"><span class="viewcode-link">[source]</span></a></dt>
782<dd><p>Loads the file and associates a schema, if a known schema exists</p>
783<table class="docutils field-list" frame="void" rules="none">
784<col class="field-name" />
785<col class="field-body" />
786<tbody valign="top">
787<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>xml_file</strong> &#8211; The xml file path sent to Reader.read</td>
788</tr>
789</tbody>
790</table>
791</dd></dl>
792
793<dl class="attribute">
794<dt id="sas.dataloader.readers.cansas_reader.Reader.logging">
795<tt class="descname">logging</tt><em class="property"> = []</em></dt>
796<dd></dd></dl>
797
798<dl class="method">
799<dt id="sas.dataloader.readers.cansas_reader.Reader.read">
800<tt class="descname">read</tt><big>(</big><em>xml_file</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/cansas_reader.html#Reader.read"><span class="viewcode-link">[source]</span></a></dt>
801<dd><p>Validate and read in an xml_file file in the canSAS format.</p>
802<table class="docutils field-list" frame="void" rules="none">
803<col class="field-name" />
804<col class="field-body" />
805<tbody valign="top">
806<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>xml_file</strong> &#8211; A canSAS file path in proper XML format</td>
807</tr>
808</tbody>
809</table>
810</dd></dl>
811
812<dl class="attribute">
813<dt id="sas.dataloader.readers.cansas_reader.Reader.type">
814<tt class="descname">type</tt><em class="property"> = ['XML files (*.xml)|*.xml', 'SasView Save Files (*.svs)|*.svs']</em></dt>
815<dd></dd></dl>
816
817<dl class="attribute">
818<dt id="sas.dataloader.readers.cansas_reader.Reader.type_name">
819<tt class="descname">type_name</tt><em class="property"> = 'canSAS'</em></dt>
820<dd></dd></dl>
821
822<dl class="method">
823<dt id="sas.dataloader.readers.cansas_reader.Reader.write">
824<tt class="descname">write</tt><big>(</big><em>filename</em>, <em>datainfo</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/cansas_reader.html#Reader.write"><span class="viewcode-link">[source]</span></a></dt>
825<dd><p>Write the content of a Data1D as a CanSAS XML file</p>
826<table class="docutils field-list" frame="void" rules="none">
827<col class="field-name" />
828<col class="field-body" />
829<tbody valign="top">
830<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
831<li><strong>filename</strong> &#8211; name of the file to write</li>
832<li><strong>datainfo</strong> &#8211; Data1D object</li>
833</ul>
834</td>
835</tr>
836</tbody>
837</table>
838</dd></dl>
839
840<dl class="method">
841<dt id="sas.dataloader.readers.cansas_reader.Reader.write_node">
842<tt class="descname">write_node</tt><big>(</big><em>parent</em>, <em>name</em>, <em>value</em>, <em>attr=None</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/cansas_reader.html#Reader.write_node"><span class="viewcode-link">[source]</span></a></dt>
843<dd><table class="docutils field-list" frame="void" rules="none">
844<col class="field-name" />
845<col class="field-body" />
846<tbody valign="top">
847<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
848<li><strong>doc</strong> &#8211; document DOM</li>
849<li><strong>parent</strong> &#8211; parent node</li>
850<li><strong>name</strong> &#8211; tag of the element</li>
851<li><strong>value</strong> &#8211; value of the child text node</li>
852<li><strong>attr</strong> &#8211; attribute dictionary</li>
853</ul>
854</td>
855</tr>
856<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">True if something was appended, otherwise False</p>
857</td>
858</tr>
859</tbody>
860</table>
861</dd></dl>
862
863</dd></dl>
864
865<dl class="function">
866<dt id="sas.dataloader.readers.cansas_reader.get_content">
867<tt class="descclassname">sas.dataloader.readers.cansas_reader.</tt><tt class="descname">get_content</tt><big>(</big><em>location</em>, <em>node</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/cansas_reader.html#get_content"><span class="viewcode-link">[source]</span></a></dt>
868<dd><p>Get the first instance of the content of a xpath location.</p>
869<table class="docutils field-list" frame="void" rules="none">
870<col class="field-name" />
871<col class="field-body" />
872<tbody valign="top">
873<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
874<li><strong>location</strong> &#8211; xpath location</li>
875<li><strong>node</strong> &#8211; node to start at</li>
876</ul>
877</td>
878</tr>
879<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">Element, or None</p>
880</td>
881</tr>
882</tbody>
883</table>
884</dd></dl>
885
886<dl class="function">
887<dt id="sas.dataloader.readers.cansas_reader.write_node">
888<tt class="descclassname">sas.dataloader.readers.cansas_reader.</tt><tt class="descname">write_node</tt><big>(</big><em>doc</em>, <em>parent</em>, <em>name</em>, <em>value</em>, <em>attr=None</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/cansas_reader.html#write_node"><span class="viewcode-link">[source]</span></a></dt>
889<dd><table class="docutils field-list" frame="void" rules="none">
890<col class="field-name" />
891<col class="field-body" />
892<tbody valign="top">
893<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
894<li><strong>doc</strong> &#8211; document DOM</li>
895<li><strong>parent</strong> &#8211; parent node</li>
896<li><strong>name</strong> &#8211; tag of the element</li>
897<li><strong>value</strong> &#8211; value of the child text node</li>
898<li><strong>attr</strong> &#8211; attribute dictionary</li>
899</ul>
900</td>
901</tr>
902<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">True if something was appended, otherwise False</p>
903</td>
904</tr>
905</tbody>
906</table>
907</dd></dl>
908
909</div>
910<div class="section" id="module-sas.dataloader.readers.danse_reader">
911<span id="sas-dataloader-readers-danse-reader-module"></span><h2>sas.dataloader.readers.danse_reader module</h2>
912<p>DANSE/SANS file reader</p>
913<dl class="class">
914<dt id="sas.dataloader.readers.danse_reader.Reader">
915<em class="property">class </em><tt class="descclassname">sas.dataloader.readers.danse_reader.</tt><tt class="descname">Reader</tt><a class="reference internal" href="../../_modules/sas/dataloader/readers/danse_reader.html#Reader"><span class="viewcode-link">[source]</span></a></dt>
916<dd><p>Example data manipulation</p>
917<dl class="attribute">
918<dt id="sas.dataloader.readers.danse_reader.Reader.ext">
919<tt class="descname">ext</tt><em class="property"> = ['.sans', '.SANS']</em></dt>
920<dd></dd></dl>
921
922<dl class="method">
923<dt id="sas.dataloader.readers.danse_reader.Reader.read">
924<tt class="descname">read</tt><big>(</big><em>filename=None</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/danse_reader.html#Reader.read"><span class="viewcode-link">[source]</span></a></dt>
925<dd><p>Open and read the data in a file
926&#64;param file: path of the file</p>
927</dd></dl>
928
929<dl class="attribute">
930<dt id="sas.dataloader.readers.danse_reader.Reader.type">
931<tt class="descname">type</tt><em class="property"> = ['DANSE files (*.sans)|*.sans']</em></dt>
932<dd></dd></dl>
933
934<dl class="attribute">
935<dt id="sas.dataloader.readers.danse_reader.Reader.type_name">
936<tt class="descname">type_name</tt><em class="property"> = 'DANSE'</em></dt>
937<dd></dd></dl>
938
939</dd></dl>
940
941</div>
942<div class="section" id="module-sas.dataloader.readers.hfir1d_reader">
943<span id="sas-dataloader-readers-hfir1d-reader-module"></span><h2>sas.dataloader.readers.hfir1d_reader module</h2>
944<p>HFIR 1D 4-column data reader</p>
945<dl class="class">
946<dt id="sas.dataloader.readers.hfir1d_reader.Reader">
947<em class="property">class </em><tt class="descclassname">sas.dataloader.readers.hfir1d_reader.</tt><tt class="descname">Reader</tt><a class="reference internal" href="../../_modules/sas/dataloader/readers/hfir1d_reader.html#Reader"><span class="viewcode-link">[source]</span></a></dt>
948<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
949<p>Class to load HFIR 1D 4-column files</p>
950<dl class="attribute">
951<dt id="sas.dataloader.readers.hfir1d_reader.Reader.ext">
952<tt class="descname">ext</tt><em class="property"> = ['.d1d']</em></dt>
953<dd></dd></dl>
954
955<dl class="method">
956<dt id="sas.dataloader.readers.hfir1d_reader.Reader.read">
957<tt class="descname">read</tt><big>(</big><em>path</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/hfir1d_reader.html#Reader.read"><span class="viewcode-link">[source]</span></a></dt>
958<dd><p>Load data file</p>
959<table class="docutils field-list" frame="void" rules="none">
960<col class="field-name" />
961<col class="field-body" />
962<tbody valign="top">
963<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>path</strong> &#8211; file path</p>
964</td>
965</tr>
966<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">Data1D object, or None</p>
967</td>
968</tr>
969<tr class="field-odd field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
970<li><strong>RuntimeError</strong> &#8211; when the file can&#8217;t be opened</li>
971<li><strong>ValueError</strong> &#8211; when the length of the data vectors are inconsistent</li>
972</ul>
973</td>
974</tr>
975</tbody>
976</table>
977</dd></dl>
978
979<dl class="attribute">
980<dt id="sas.dataloader.readers.hfir1d_reader.Reader.type">
981<tt class="descname">type</tt><em class="property"> = ['HFIR 1D files (*.d1d)|*.d1d']</em></dt>
982<dd></dd></dl>
983
984<dl class="attribute">
985<dt id="sas.dataloader.readers.hfir1d_reader.Reader.type_name">
986<tt class="descname">type_name</tt><em class="property"> = 'HFIR 1D'</em></dt>
987<dd></dd></dl>
988
989</dd></dl>
990
991</div>
992<div class="section" id="module-sas.dataloader.readers.nexus_reader">
993<span id="sas-dataloader-readers-nexus-reader-module"></span><h2>sas.dataloader.readers.nexus_reader module</h2>
994<p>Nexus reader for 2D data reduced by Mantid</p>
995<dl class="class">
996<dt id="sas.dataloader.readers.nexus_reader.Reader">
997<em class="property">class </em><tt class="descclassname">sas.dataloader.readers.nexus_reader.</tt><tt class="descname">Reader</tt><a class="reference internal" href="../../_modules/sas/dataloader/readers/nexus_reader.html#Reader"><span class="viewcode-link">[source]</span></a></dt>
998<dd><p>Nexus reader for 2D data reduced by Mantid</p>
999<dl class="attribute">
1000<dt id="sas.dataloader.readers.nexus_reader.Reader.ext">
1001<tt class="descname">ext</tt><em class="property"> = ['.nxs']</em></dt>
1002<dd></dd></dl>
1003
1004<dl class="method">
1005<dt id="sas.dataloader.readers.nexus_reader.Reader.read">
1006<tt class="descname">read</tt><big>(</big><em>filename=None</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/nexus_reader.html#Reader.read"><span class="viewcode-link">[source]</span></a></dt>
1007<dd><p>Open and read the data in a file</p>
1008<table class="docutils field-list" frame="void" rules="none">
1009<col class="field-name" />
1010<col class="field-body" />
1011<tbody valign="top">
1012<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>filename</strong> &#8211; path of the file</td>
1013</tr>
1014</tbody>
1015</table>
1016</dd></dl>
1017
1018<dl class="attribute">
1019<dt id="sas.dataloader.readers.nexus_reader.Reader.type">
1020<tt class="descname">type</tt><em class="property"> = ['Nexus files (*.nxs)|*.nxs']</em></dt>
1021<dd></dd></dl>
1022
1023<dl class="attribute">
1024<dt id="sas.dataloader.readers.nexus_reader.Reader.type_name">
1025<tt class="descname">type_name</tt><em class="property"> = 'NXS'</em></dt>
1026<dd></dd></dl>
1027
1028</dd></dl>
1029
1030</div>
1031<div class="section" id="module-sas.dataloader.readers.red2d_reader">
1032<span id="sas-dataloader-readers-red2d-reader-module"></span><h2>sas.dataloader.readers.red2d_reader module</h2>
1033<p>TXT/IGOR 2D Q Map file reader</p>
1034<dl class="class">
1035<dt id="sas.dataloader.readers.red2d_reader.Reader">
1036<em class="property">class </em><tt class="descclassname">sas.dataloader.readers.red2d_reader.</tt><tt class="descname">Reader</tt><a class="reference internal" href="../../_modules/sas/dataloader/readers/red2d_reader.html#Reader"><span class="viewcode-link">[source]</span></a></dt>
1037<dd><p>Simple data reader for Igor data files</p>
1038<dl class="attribute">
1039<dt id="sas.dataloader.readers.red2d_reader.Reader.ext">
1040<tt class="descname">ext</tt><em class="property"> = ['.DAT', '.dat']</em></dt>
1041<dd></dd></dl>
1042
1043<dl class="method">
1044<dt id="sas.dataloader.readers.red2d_reader.Reader.read">
1045<tt class="descname">read</tt><big>(</big><em>filename=None</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/red2d_reader.html#Reader.read"><span class="viewcode-link">[source]</span></a></dt>
1046<dd><p>Read file</p>
1047</dd></dl>
1048
1049<dl class="attribute">
1050<dt id="sas.dataloader.readers.red2d_reader.Reader.type">
1051<tt class="descname">type</tt><em class="property"> = ['IGOR/DAT 2D file in Q_map (*.dat)|*.DAT']</em></dt>
1052<dd></dd></dl>
1053
1054<dl class="attribute">
1055<dt id="sas.dataloader.readers.red2d_reader.Reader.type_name">
1056<tt class="descname">type_name</tt><em class="property"> = 'IGOR/DAT 2D Q_map'</em></dt>
1057<dd></dd></dl>
1058
1059<dl class="method">
1060<dt id="sas.dataloader.readers.red2d_reader.Reader.write">
1061<tt class="descname">write</tt><big>(</big><em>filename</em>, <em>data</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/red2d_reader.html#Reader.write"><span class="viewcode-link">[source]</span></a></dt>
1062<dd><p>Write to .dat</p>
1063<table class="docutils field-list" frame="void" rules="none">
1064<col class="field-name" />
1065<col class="field-body" />
1066<tbody valign="top">
1067<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1068<li><strong>filename</strong> &#8211; file name to write</li>
1069<li><strong>data</strong> &#8211; data2D</li>
1070</ul>
1071</td>
1072</tr>
1073</tbody>
1074</table>
1075</dd></dl>
1076
1077</dd></dl>
1078
1079<dl class="function">
1080<dt id="sas.dataloader.readers.red2d_reader.check_point">
1081<tt class="descclassname">sas.dataloader.readers.red2d_reader.</tt><tt class="descname">check_point</tt><big>(</big><em>x_point</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/red2d_reader.html#check_point"><span class="viewcode-link">[source]</span></a></dt>
1082<dd><p>check point validity</p>
1083</dd></dl>
1084
1085</div>
1086<div class="section" id="module-sas.dataloader.readers.tiff_reader">
1087<span id="sas-dataloader-readers-tiff-reader-module"></span><h2>sas.dataloader.readers.tiff_reader module</h2>
1088<p>Image reader. Untested.</p>
1089<dl class="class">
1090<dt id="sas.dataloader.readers.tiff_reader.Reader">
1091<em class="property">class </em><tt class="descclassname">sas.dataloader.readers.tiff_reader.</tt><tt class="descname">Reader</tt><a class="reference internal" href="../../_modules/sas/dataloader/readers/tiff_reader.html#Reader"><span class="viewcode-link">[source]</span></a></dt>
1092<dd><p>Example data manipulation</p>
1093<dl class="attribute">
1094<dt id="sas.dataloader.readers.tiff_reader.Reader.ext">
1095<tt class="descname">ext</tt><em class="property"> = ['.tif', '.tiff']</em></dt>
1096<dd></dd></dl>
1097
1098<dl class="method">
1099<dt id="sas.dataloader.readers.tiff_reader.Reader.read">
1100<tt class="descname">read</tt><big>(</big><em>filename=None</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/tiff_reader.html#Reader.read"><span class="viewcode-link">[source]</span></a></dt>
1101<dd><p>Open and read the data in a file</p>
1102<table class="docutils field-list" frame="void" rules="none">
1103<col class="field-name" />
1104<col class="field-body" />
1105<tbody valign="top">
1106<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>file</strong> &#8211; path of the file</td>
1107</tr>
1108</tbody>
1109</table>
1110</dd></dl>
1111
1112<dl class="attribute">
1113<dt id="sas.dataloader.readers.tiff_reader.Reader.type">
1114<tt class="descname">type</tt><em class="property"> = ['TIF files (*.tif)|*.tif', 'TIFF files (*.tiff)|*.tiff']</em></dt>
1115<dd></dd></dl>
1116
1117<dl class="attribute">
1118<dt id="sas.dataloader.readers.tiff_reader.Reader.type_name">
1119<tt class="descname">type_name</tt><em class="property"> = 'TIF'</em></dt>
1120<dd></dd></dl>
1121
1122</dd></dl>
1123
1124</div>
1125<div class="section" id="module-sas.dataloader.readers.xml_reader">
1126<span id="sas-dataloader-readers-xml-reader-module"></span><h2>sas.dataloader.readers.xml_reader module</h2>
1127<p>Generic XML read and write utility</p>
1128<p>Usage: Either extend xml_reader or add as a class variable.</p>
1129<dl class="class">
1130<dt id="sas.dataloader.readers.xml_reader.XMLreader">
1131<em class="property">class </em><tt class="descclassname">sas.dataloader.readers.xml_reader.</tt><tt class="descname">XMLreader</tt><big>(</big><em>xml=None</em>, <em>schema=None</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader"><span class="viewcode-link">[source]</span></a></dt>
1132<dd><p>Generic XML read and write class. Mostly helper functions.
1133Makes reading/writing XML a bit easier than calling lxml libraries directly.</p>
1134<table class="docutils field-list" frame="void" rules="none">
1135<col class="field-name" />
1136<col class="field-body" />
1137<tbody valign="top">
1138<tr class="field-odd field"><th class="field-name">Dependencies:</th><td class="field-body">This class requires lxml 2.3 or higher.</td>
1139</tr>
1140</tbody>
1141</table>
1142<dl class="method">
1143<dt id="sas.dataloader.readers.xml_reader.XMLreader.append">
1144<tt class="descname">append</tt><big>(</big><em>element</em>, <em>tree</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.append"><span class="viewcode-link">[source]</span></a></dt>
1145<dd><p>Append an etree Element to an ElementTree.</p>
1146<table class="docutils field-list" frame="void" rules="none">
1147<col class="field-name" />
1148<col class="field-body" />
1149<tbody valign="top">
1150<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1151<li><strong>element</strong> &#8211; etree Element to append</li>
1152<li><strong>tree</strong> &#8211; ElementTree object to append to</li>
1153</ul>
1154</td>
1155</tr>
1156</tbody>
1157</table>
1158</dd></dl>
1159
1160<dl class="method">
1161<dt id="sas.dataloader.readers.xml_reader.XMLreader.break_processing_instructions">
1162<tt class="descname">break_processing_instructions</tt><big>(</big><em>string</em>, <em>dic</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.break_processing_instructions"><span class="viewcode-link">[source]</span></a></dt>
1163<dd><p>Method to break a processing instruction string apart and add to a dict</p>
1164<table class="docutils field-list" frame="void" rules="none">
1165<col class="field-name" />
1166<col class="field-body" />
1167<tbody valign="top">
1168<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1169<li><strong>string</strong> &#8211; A processing instruction as a string</li>
1170<li><strong>dic</strong> &#8211; The dictionary to save the PIs to</li>
1171</ul>
1172</td>
1173</tr>
1174</tbody>
1175</table>
1176</dd></dl>
1177
1178<dl class="method">
1179<dt id="sas.dataloader.readers.xml_reader.XMLreader.create_element">
1180<tt class="descname">create_element</tt><big>(</big><em>name</em>, <em>attrib=None</em>, <em>nsmap=None</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.create_element"><span class="viewcode-link">[source]</span></a></dt>
1181<dd><p>Create an XML element for writing to file</p>
1182<table class="docutils field-list" frame="void" rules="none">
1183<col class="field-name" />
1184<col class="field-body" />
1185<tbody valign="top">
1186<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> &#8211; The name of the element to be created</td>
1187</tr>
1188</tbody>
1189</table>
1190</dd></dl>
1191
1192<dl class="method">
1193<dt id="sas.dataloader.readers.xml_reader.XMLreader.create_element_from_string">
1194<tt class="descname">create_element_from_string</tt><big>(</big><em>xml_string</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.create_element_from_string"><span class="viewcode-link">[source]</span></a></dt>
1195<dd><p>Create an element from an XML string</p>
1196<table class="docutils field-list" frame="void" rules="none">
1197<col class="field-name" />
1198<col class="field-body" />
1199<tbody valign="top">
1200<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>xml_string</strong> &#8211; A string of xml</td>
1201</tr>
1202</tbody>
1203</table>
1204</dd></dl>
1205
1206<dl class="method">
1207<dt id="sas.dataloader.readers.xml_reader.XMLreader.create_tree">
1208<tt class="descname">create_tree</tt><big>(</big><em>root</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.create_tree"><span class="viewcode-link">[source]</span></a></dt>
1209<dd><p>Create an element tree for processing from an etree element</p>
1210<table class="docutils field-list" frame="void" rules="none">
1211<col class="field-name" />
1212<col class="field-body" />
1213<tbody valign="top">
1214<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>root</strong> &#8211; etree Element(s)</td>
1215</tr>
1216</tbody>
1217</table>
1218</dd></dl>
1219
1220<dl class="method">
1221<dt id="sas.dataloader.readers.xml_reader.XMLreader.ebuilder">
1222<tt class="descname">ebuilder</tt><big>(</big><em>parent</em>, <em>elementname</em>, <em>text=None</em>, <em>attrib=None</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.ebuilder"><span class="viewcode-link">[source]</span></a></dt>
1223<dd><p>Use lxml E builder class with arbitrary inputs.</p>
1224<table class="docutils field-list" frame="void" rules="none">
1225<col class="field-name" />
1226<col class="field-body" />
1227<tbody valign="top">
1228<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1229<li><strong>parnet</strong> &#8211; The parent element to append a child to</li>
1230<li><strong>elementname</strong> &#8211; The name of the child in string form</li>
1231<li><strong>text</strong> &#8211; The element text</li>
1232<li><strong>attrib</strong> &#8211; A dictionary of attribute names to attribute values</li>
1233</ul>
1234</td>
1235</tr>
1236</tbody>
1237</table>
1238</dd></dl>
1239
1240<dl class="attribute">
1241<dt id="sas.dataloader.readers.xml_reader.XMLreader.encoding">
1242<tt class="descname">encoding</tt><em class="property"> = None</em></dt>
1243<dd></dd></dl>
1244
1245<dl class="method">
1246<dt id="sas.dataloader.readers.xml_reader.XMLreader.find_invalid_xml">
1247<tt class="descname">find_invalid_xml</tt><big>(</big><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.find_invalid_xml"><span class="viewcode-link">[source]</span></a></dt>
1248<dd><p>Finds the first offending element that should not be present in XML file</p>
1249</dd></dl>
1250
1251<dl class="method">
1252<dt id="sas.dataloader.readers.xml_reader.XMLreader.parse_schema_and_doc">
1253<tt class="descname">parse_schema_and_doc</tt><big>(</big><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.parse_schema_and_doc"><span class="viewcode-link">[source]</span></a></dt>
1254<dd><p>Creates a dictionary of the parsed schema and xml files.</p>
1255</dd></dl>
1256
1257<dl class="attribute">
1258<dt id="sas.dataloader.readers.xml_reader.XMLreader.processing_instructions">
1259<tt class="descname">processing_instructions</tt><em class="property"> = None</em></dt>
1260<dd></dd></dl>
1261
1262<dl class="method">
1263<dt id="sas.dataloader.readers.xml_reader.XMLreader.reader">
1264<tt class="descname">reader</tt><big>(</big><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.reader"><span class="viewcode-link">[source]</span></a></dt>
1265<dd><p>Read in an XML file into memory and return an lxml dictionary</p>
1266</dd></dl>
1267
1268<dl class="method">
1269<dt id="sas.dataloader.readers.xml_reader.XMLreader.return_processing_instructions">
1270<tt class="descname">return_processing_instructions</tt><big>(</big><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.return_processing_instructions"><span class="viewcode-link">[source]</span></a></dt>
1271<dd><p>Get all processing instructions saved when loading the document</p>
1272<table class="docutils field-list" frame="void" rules="none">
1273<col class="field-name" />
1274<col class="field-body" />
1275<tbody valign="top">
1276<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>tree</strong> &#8211; etree.ElementTree object to write PIs to</td>
1277</tr>
1278</tbody>
1279</table>
1280</dd></dl>
1281
1282<dl class="attribute">
1283<dt id="sas.dataloader.readers.xml_reader.XMLreader.schema">
1284<tt class="descname">schema</tt><em class="property"> = None</em></dt>
1285<dd></dd></dl>
1286
1287<dl class="attribute">
1288<dt id="sas.dataloader.readers.xml_reader.XMLreader.schemadoc">
1289<tt class="descname">schemadoc</tt><em class="property"> = None</em></dt>
1290<dd></dd></dl>
1291
1292<dl class="method">
1293<dt id="sas.dataloader.readers.xml_reader.XMLreader.set_encoding">
1294<tt class="descname">set_encoding</tt><big>(</big><em>attr_str</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.set_encoding"><span class="viewcode-link">[source]</span></a></dt>
1295<dd><p>Find the encoding in the xml declaration and save it as a string</p>
1296<table class="docutils field-list" frame="void" rules="none">
1297<col class="field-name" />
1298<col class="field-body" />
1299<tbody valign="top">
1300<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>attr_str</strong> &#8211; All attributes as a string
1301e.g. &#8220;foo1=&#8221;bar1&#8221; foo2=&#8221;bar2&#8221; foo3=&#8221;bar3&#8221; ... foo_n=&#8221;bar_n&#8221;&#8220;</td>
1302</tr>
1303</tbody>
1304</table>
1305</dd></dl>
1306
1307<dl class="method">
1308<dt id="sas.dataloader.readers.xml_reader.XMLreader.set_processing_instructions">
1309<tt class="descname">set_processing_instructions</tt><big>(</big><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.set_processing_instructions"><span class="viewcode-link">[source]</span></a></dt>
1310<dd><p>Take out all processing instructions and create a dictionary from them
1311If there is a default encoding, the value is also saved</p>
1312</dd></dl>
1313
1314<dl class="method">
1315<dt id="sas.dataloader.readers.xml_reader.XMLreader.set_schema">
1316<tt class="descname">set_schema</tt><big>(</big><em>schema</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.set_schema"><span class="viewcode-link">[source]</span></a></dt>
1317<dd><p>Set the schema file and parse</p>
1318</dd></dl>
1319
1320<dl class="method">
1321<dt id="sas.dataloader.readers.xml_reader.XMLreader.set_xml_file">
1322<tt class="descname">set_xml_file</tt><big>(</big><em>xml</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.set_xml_file"><span class="viewcode-link">[source]</span></a></dt>
1323<dd><p>Set the XML file and parse</p>
1324</dd></dl>
1325
1326<dl class="method">
1327<dt id="sas.dataloader.readers.xml_reader.XMLreader.to_string">
1328<tt class="descname">to_string</tt><big>(</big><em>elem</em>, <em>pretty_print=False</em>, <em>encoding=None</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.to_string"><span class="viewcode-link">[source]</span></a></dt>
1329<dd><p>Converts an etree element into a string</p>
1330</dd></dl>
1331
1332<dl class="method">
1333<dt id="sas.dataloader.readers.xml_reader.XMLreader.validate_xml">
1334<tt class="descname">validate_xml</tt><big>(</big><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.validate_xml"><span class="viewcode-link">[source]</span></a></dt>
1335<dd><p>Checks to see if the XML file meets the schema</p>
1336</dd></dl>
1337
1338<dl class="method">
1339<dt id="sas.dataloader.readers.xml_reader.XMLreader.write_attribute">
1340<tt class="descname">write_attribute</tt><big>(</big><em>elem</em>, <em>attr_name</em>, <em>attr_value</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.write_attribute"><span class="viewcode-link">[source]</span></a></dt>
1341<dd><p>Write attributes to an Element</p>
1342<table class="docutils field-list" frame="void" rules="none">
1343<col class="field-name" />
1344<col class="field-body" />
1345<tbody valign="top">
1346<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1347<li><strong>elem</strong> &#8211; etree.Element object</li>
1348<li><strong>attr_name</strong> &#8211; attribute name to write</li>
1349<li><strong>attr_value</strong> &#8211; attribute value to set</li>
1350</ul>
1351</td>
1352</tr>
1353</tbody>
1354</table>
1355</dd></dl>
1356
1357<dl class="method">
1358<dt id="sas.dataloader.readers.xml_reader.XMLreader.write_text">
1359<tt class="descname">write_text</tt><big>(</big><em>elem</em>, <em>text</em><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers/xml_reader.html#XMLreader.write_text"><span class="viewcode-link">[source]</span></a></dt>
1360<dd><p>Write text to an etree Element</p>
1361<table class="docutils field-list" frame="void" rules="none">
1362<col class="field-name" />
1363<col class="field-body" />
1364<tbody valign="top">
1365<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
1366<li><strong>elem</strong> &#8211; etree.Element object</li>
1367<li><strong>text</strong> &#8211; text to write to the element</li>
1368</ul>
1369</td>
1370</tr>
1371</tbody>
1372</table>
1373</dd></dl>
1374
1375<dl class="attribute">
1376<dt id="sas.dataloader.readers.xml_reader.XMLreader.xml">
1377<tt class="descname">xml</tt><em class="property"> = None</em></dt>
1378<dd></dd></dl>
1379
1380<dl class="attribute">
1381<dt id="sas.dataloader.readers.xml_reader.XMLreader.xmldoc">
1382<tt class="descname">xmldoc</tt><em class="property"> = None</em></dt>
1383<dd></dd></dl>
1384
1385<dl class="attribute">
1386<dt id="sas.dataloader.readers.xml_reader.XMLreader.xmlroot">
1387<tt class="descname">xmlroot</tt><em class="property"> = None</em></dt>
1388<dd></dd></dl>
1389
1390</dd></dl>
1391
1392</div>
1393<div class="section" id="module-sas.dataloader.readers">
1394<span id="module-contents"></span><h2>Module contents</h2>
1395<dl class="function">
1396<dt id="sas.dataloader.readers.get_data_path">
1397<tt class="descclassname">sas.dataloader.readers.</tt><tt class="descname">get_data_path</tt><big>(</big><big>)</big><a class="reference internal" href="../../_modules/sas/dataloader/readers.html#get_data_path"><span class="viewcode-link">[source]</span></a></dt>
1398<dd><p>Return the location of the settings file for the data readers.</p>
1399</dd></dl>
1400
1401</div>
1402</div>
1403
1404
1405          </div>
1406        </div>
1407      </div>
1408      <div class="sphinxsidebar">
1409        <div class="sphinxsidebarwrapper">
1410  <h3><a href="../../index.html">Table Of Contents</a></h3>
1411  <ul>
1412<li><a class="reference internal" href="#">sas.dataloader.readers package</a><ul>
1413<li><a class="reference internal" href="#submodules">Submodules</a></li>
1414<li><a class="reference internal" href="#module-sas.dataloader.readers.IgorReader">sas.dataloader.readers.IgorReader module</a></li>
1415<li><a class="reference internal" href="#module-sas.dataloader.readers.abs_reader">sas.dataloader.readers.abs_reader module</a></li>
1416<li><a class="reference internal" href="#module-sas.dataloader.readers.ascii_reader">sas.dataloader.readers.ascii_reader module</a></li>
1417<li><a class="reference internal" href="#module-sas.dataloader.readers.associations">sas.dataloader.readers.associations module</a></li>
1418<li><a class="reference internal" href="#module-sas.dataloader.readers.cansas_constants">sas.dataloader.readers.cansas_constants module</a></li>
1419<li><a class="reference internal" href="#module-sas.dataloader.readers.cansas_reader">sas.dataloader.readers.cansas_reader module</a></li>
1420<li><a class="reference internal" href="#module-sas.dataloader.readers.danse_reader">sas.dataloader.readers.danse_reader module</a></li>
1421<li><a class="reference internal" href="#module-sas.dataloader.readers.hfir1d_reader">sas.dataloader.readers.hfir1d_reader module</a></li>
1422<li><a class="reference internal" href="#module-sas.dataloader.readers.nexus_reader">sas.dataloader.readers.nexus_reader module</a></li>
1423<li><a class="reference internal" href="#module-sas.dataloader.readers.red2d_reader">sas.dataloader.readers.red2d_reader module</a></li>
1424<li><a class="reference internal" href="#module-sas.dataloader.readers.tiff_reader">sas.dataloader.readers.tiff_reader module</a></li>
1425<li><a class="reference internal" href="#module-sas.dataloader.readers.xml_reader">sas.dataloader.readers.xml_reader module</a></li>
1426<li><a class="reference internal" href="#module-sas.dataloader.readers">Module contents</a></li>
1427</ul>
1428</li>
1429</ul>
1430
1431  <h4>Previous topic</h4>
1432  <p class="topless"><a href="sas.dataloader.html"
1433                        title="previous chapter">sas.dataloader package</a></p>
1434  <h4>Next topic</h4>
1435  <p class="topless"><a href="sas.fit.html"
1436                        title="next chapter">sas.fit package</a></p>
1437  <h3>This Page</h3>
1438  <ul class="this-page-menu">
1439    <li><a href="../../_sources/dev/api/sas.dataloader.readers.txt"
1440           rel="nofollow">Show Source</a></li>
1441  </ul>
1442<div id="searchbox" style="display: none">
1443  <h3>Quick search</h3>
1444    <form class="search" action="../../search.html" method="get">
1445      <input type="text" name="q" />
1446      <input type="submit" value="Go" />
1447      <input type="hidden" name="check_keywords" value="yes" />
1448      <input type="hidden" name="area" value="default" />
1449    </form>
1450    <p class="searchtip" style="font-size: 90%">
1451    Enter search terms or a module, class or function name.
1452    </p>
1453</div>
1454<script type="text/javascript">$('#searchbox').show(0);</script>
1455        </div>
1456      </div>
1457      <div class="clearer"></div>
1458    </div>
1459    <div class="related">
1460      <h3>Navigation</h3>
1461      <ul>
1462        <li class="right" style="margin-right: 10px">
1463          <a href="../../genindex.html" title="General Index"
1464             >index</a></li>
1465        <li class="right" >
1466          <a href="../../py-modindex.html" title="Python Module Index"
1467             >modules</a> |</li>
1468        <li class="right" >
1469          <a href="sas.fit.html" title="sas.fit package"
1470             >next</a> |</li>
1471        <li class="right" >
1472          <a href="sas.dataloader.html" title="sas.dataloader package"
1473             >previous</a> |</li>
1474        <li><a href="../../index.html">SasView 3.0.0 documentation</a> &raquo;</li>
1475          <li><a href="../dev.html" >Developer Documentation</a> &raquo;</li>
1476          <li><a href="modules.html" >lib.macosx-10.5-x86_64-2.7</a> &raquo;</li>
1477          <li><a href="sas.html" >sas package</a> &raquo;</li>
1478          <li><a href="sas.dataloader.html" >sas.dataloader package</a> &raquo;</li> 
1479      </ul>
1480    </div>
1481    <div class="footer">
1482        &copy; Copyright 2013, The SasView Project.
1483      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
1484    </div>
1485  </body>
1486</html>
Note: See TracBrowser for help on using the repository browser.