1 | <?xml version="1.0"?> |
---|
2 | <?xml-stylesheet type="text/xsl" href="example.xsl" ?> |
---|
3 | <SASroot version="1.0" |
---|
4 | xmlns="cansas1d/1.0" |
---|
5 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
6 | xsi:schemaLocation="cansas1d/1.0 http://svn.smallangles.net/svn/canSAS/1dwg/trunk/cansas1d.xsd" |
---|
7 | > |
---|
8 | <!-- |
---|
9 | file: cansas1d-template.xml |
---|
10 | purpose: Template file for canSAS 1-D reduced SAS XML data format |
---|
11 | notes: Each element in the standard is shown, some with comments. |
---|
12 | All elements, when present, must appear in the order shown below. |
---|
13 | When shown in the template below, the "unit" attribute is required. |
---|
14 | If in doubt, try validating against the XML Schema as described in |
---|
15 | http://www.smallangles.net/wgwiki/index.php/cansas1d_documentation#Validation_of_XML_against_the_Schema |
---|
16 | --> |
---|
17 | <SASentry name="this name is optional"> |
---|
18 | <!--* SASentry: [1..inf] a single SAS scan --> |
---|
19 | <!-- repeat SASentry for as many scans as needed --> |
---|
20 | <Title>Title of the scan goes here.</Title> |
---|
21 | <Run>Could be a number or text</Run> |
---|
22 | <Run_extension xmlns="ILL"> |
---|
23 | <!-- example foreign element --> |
---|
24 | 001 |
---|
25 | </Run_extension> |
---|
26 | <aps:SB_USAXS xmlns:aps="USAXS/APS/32ID"> |
---|
27 | <!-- example foreign element with namespace prefix --> |
---|
28 | no |
---|
29 | </aps:SB_USAXS> |
---|
30 | <SASdata name="this name is optional"> |
---|
31 | <Idata> |
---|
32 | <!--* Idata: contains one SAS data point --> |
---|
33 | <Q unit="1/A">0.02</Q> |
---|
34 | <I unit="1/cm">1000</I> |
---|
35 | <Idev unit="1/cm">3</Idev> |
---|
36 | <Qdev unit="1/A">0.01</Qdev> |
---|
37 | <Qmean unit="1/A" /><!-- optional --> |
---|
38 | <Shadowfactor /><!-- optional --> |
---|
39 | </Idata> |
---|
40 | <Idata> |
---|
41 | <!-- repeat Idata for as many data points as needed --> |
---|
42 | <Q unit="1/A">0.03</Q> |
---|
43 | <I unit="1/cm">989</I> |
---|
44 | <Idev unit="1/cm">3</Idev> |
---|
45 | <Qdev unit="1/A">0.01</Qdev> |
---|
46 | </Idata> |
---|
47 | <Idata> |
---|
48 | <!-- this shows/tests the alternate form with dQw and dQl |
---|
49 | Do not use both forms within a single SASdata element. |
---|
50 | XMLreaders are not expected to handle the situation |
---|
51 | with both Qdev and (dQw or dQl) since the rules say |
---|
52 | it is not allowed. |
---|
53 | --> |
---|
54 | <Q unit="1/A">0.03</Q> |
---|
55 | <I unit="1/cm">989</I> |
---|
56 | <Idev unit="1/cm">3</Idev> |
---|
57 | <dQw unit="1/A">0.01</dQw> |
---|
58 | <dQl unit="1/A">0.01</dQl> |
---|
59 | </Idata> |
---|
60 | </SASdata> |
---|
61 | <SASsample name="this name is optional"> |
---|
62 | <ID>SI600-new-long</ID> |
---|
63 | <thickness unit="mm">1.03</thickness> |
---|
64 | <transmission>0.327 <!-- unit is always fraction: do not specify a "unit" --></transmission> |
---|
65 | <temperature unit="C">22.0000</temperature> |
---|
66 | <position name="this name is optional"> |
---|
67 | <x unit="mm">10.00</x> |
---|
68 | <y unit="mm">0.00</y> |
---|
69 | </position> |
---|
70 | <orientation name="this name is optional"> |
---|
71 | <roll unit="degree">22.5</roll> |
---|
72 | <pitch unit="degree">0.020</pitch> |
---|
73 | <yaw unit="degree">0.020</yaw> |
---|
74 | </orientation> |
---|
75 | <details> |
---|
76 | http://chemtools.chem.soton.ac.uk/projects/blog/blogs.php/bit_id/2720 |
---|
77 | </details> |
---|
78 | </SASsample> |
---|
79 | <SASinstrument> |
---|
80 | <name>canSAS instrument</name> |
---|
81 | <SASsource> |
---|
82 | <radiation>neutron</radiation> |
---|
83 | <beam_size name="this name is optional"> |
---|
84 | <x unit="mm">12.00</x> |
---|
85 | <y unit="mm">12.00</y> |
---|
86 | </beam_size> |
---|
87 | <beam_shape>disc</beam_shape> |
---|
88 | <wavelength unit="A">6.00</wavelength> |
---|
89 | <!-- these values are examples and are not meant to be self-consistent here --> |
---|
90 | <wavelength_min unit="nm">0.22</wavelength_min> |
---|
91 | <wavelength_max unit="nm">1.00</wavelength_max> |
---|
92 | <wavelength_spread unit="percent">14.3</wavelength_spread> |
---|
93 | </SASsource> |
---|
94 | <SAScollimation name="this name is optional"> |
---|
95 | <distance unit="mm">255.0</distance> |
---|
96 | <aperture name="source" type="radius"> |
---|
97 | <size> |
---|
98 | <x unit="mm">50</x> |
---|
99 | <y unit="mm">2.1</y> |
---|
100 | </size> |
---|
101 | <distance unit="m">11.000</distance> |
---|
102 | </aperture> |
---|
103 | </SAScollimation> |
---|
104 | <SASdetector> |
---|
105 | <name>fictional hybrid detector</name> |
---|
106 | <SDD unit="m"> 4.150 </SDD> |
---|
107 | <offset name="this name is optional"> |
---|
108 | <x unit="mm">322.64</x> |
---|
109 | <y unit="mm">327.68</y> |
---|
110 | <z unit="mm">0.00</z> |
---|
111 | </offset> |
---|
112 | <orientation name="this name is optional"> |
---|
113 | <roll unit="degree">0.00</roll> |
---|
114 | <pitch unit="degree">0.00</pitch> |
---|
115 | <yaw unit="degree">0.00</yaw> |
---|
116 | </orientation> |
---|
117 | <beam_center name="this name is optional"> |
---|
118 | <x unit="mm">322.64</x> |
---|
119 | <y unit="mm">327.68</y> |
---|
120 | </beam_center> |
---|
121 | <pixel_size name="this name is optional"> |
---|
122 | <x unit="mm">5.0</x> |
---|
123 | <y unit="mm">5.0</y> |
---|
124 | </pixel_size> |
---|
125 | <slit_length unit="1/A"> 0.05 </slit_length> |
---|
126 | </SASdetector> |
---|
127 | </SASinstrument> |
---|
128 | <SASprocess name="this name is optional"> |
---|
129 | <!-- Use as many SASprocess elements as needed. --> |
---|
130 | <name>spol</name> |
---|
131 | <date>04-Sep-2007 18:35:02</date> |
---|
132 | <description> free form description of processing routine </description> |
---|
133 | <term name="calibration" unit="a.u./cm"> 10.000 </term> |
---|
134 | <term name="MASK_file">USER:MASK.COM</term> |
---|
135 | <SASprocessnote name="this name is optional"> |
---|
136 | free form description of processing |
---|
137 | </SASprocessnote> |
---|
138 | <SASprocessnote name="this name is optional"> |
---|
139 | Use as many as needed. |
---|
140 | </SASprocessnote> |
---|
141 | <SASprocessnote name="this name is optional"> |
---|
142 | AvA1 0.0000E+00 AsA2 1.0000E+00 XvA3 1.0526E+03 XsA4 5.2200E-02 XfA5 0.0000E+00 |
---|
143 | </SASprocessnote> |
---|
144 | </SASprocess> |
---|
145 | <SASnote name="this name is optional"> |
---|
146 | free form description of processing |
---|
147 | </SASnote> |
---|
148 | <SASnote name="this name is optional"> |
---|
149 | Use as many as needed |
---|
150 | </SASnote> |
---|
151 | </SASentry> |
---|
152 | </SASroot> |
---|