Debian Codegraph @

docs/source/tutorial/s3_abscarbon.rst

raw
1 Setting absolute scale with glassy carbon
2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 .. _s3p6:
4
5 This section teaches you how to set up absolute scale using glassy carbon (NIST SRM 3600)
6 as a reference. It assumes you have completed :ref:`Parts 1 <s3p3>`,
7 :ref:`2 <s3p1>` and :ref:`3 <s3p4>`\ . Note that you can use water (:ref:`Part 4 <s3p5>`) or
8 glassy carbon for absolute scale calibration in RAW. Glassy carbon is the more accurate approach,
9 if available.
10
11 There are two ways to use glassy carbon as a standard in RAW. One way follows the NIST
12 protocol, and will deliver the most accurate results. However, this method depends on
13 all measurements having reliable flux measurements upstream and downstream of the sample.
14 It also requires accurate measurements of the background of the glassy carbon measurement
15 and the sample measurements. The second way is more similar to that used by water, in that
16 it essentially ignores the background (assumes it to be small). This approach only requires
17 regular normalization and a single measurement of the background for the glassy carbon sample.
18
19 A video version of this tutorial is available:
20
21 .. raw:: html
22
23 <style>.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }</style><div class='embed-container'><iframe src='https://www.youtube.com/embed/dhmd4IzlMfM' frameborder='0' allowfullscreen></iframe></div>
24
25 The written version of the tutorial follows.
26
27
28 Simple (ignoring background)
29 *********************************************
30
31 #. Load/use the settings from part 3 (without absolute scale set from water, part 4). If you
32 haven't done those parts, the settings are saved available as **settings.cfg**
33 in the **calibration_data** folder.
34
35 #. Plot both of the **glassy_carbon2_011_000x.tif.tif** files, where x is 1-2, on the main plot.
36
37 * *Tip:* :ref:`Section 1 Part 1 <s1p1>` of this tutorial document teaches you how to do this.
38
39 #. Average the **glassy_carbon** files you just loaded. Save the average in
40 the **calibration_data** folder.
41
42 #. Open the Options window by selecting “Advanced Options” in the Options menu.
43
44 #. Click on the Absolute Scale section in the options list on the left.
45
46 |config_absgc1_png|
47
48 #. Click on the Glassy carbon “Set” button and select the **A_glassy_carbon2_011__0001.dat**
49 file you just saved.
50
51 #. Set the Sample thickness to 1.0 mm.
52
53 |config_absgc2_png|
54
55 #. Click “Calculate” button. You should get about 324.
56
57 * *Note:* It is important that you not change your normalization settings once
58 you have set the absolute scaling constant. If you do, you will have to recalculate
59 the absolute scaling constant. Also, make sure absolute scale is turned off before
60 you calculate the scale constant, otherwise you will get a bad scaling constant.
61
62 #. Check the “Normalize processed data to absolute scale using glassy carbon” checkbox.
63
64 #. Click “OK” to exit the advanced options panel, saving the changes.
65
66 |config_absgc3_png|
67
68 #. Save the settings for future use.
69
70
71 Full (NIST recommended)
72 ******************************************
73
74 **Important note:** All of the normalization (including flux, transmission, etc) happens
75 through the absolute scale panel. You shouldn’t have anything set in the Normalization
76 panel (unless you are doing something like subtracting off a constant pedestal from the
77 image).
78
79 *Note:* The calibration dataset used for the previous ('Simple') approach
80 doesn't have the requisite data to use for the full approach. So we will use
81 the data in the **calibration_data/extra** folder.
82
83 #. Load the **SAXS.cfg** file in the **calibration_data/extra** folder.
84
85 #. Open the Options window by selecting “Advanced Options” in the Options menu.
86
87 #. Click on the Normalization section in the options list on the left.
88
89 #. Remove any/all items in the Normalization List by highlighting them in the list
90 and clicking the “Delete” button.
91
92 |config_absgc_full1_png|
93
94 #. Go to the Absolute Scale options section and turn off any absolute scaling
95 already in place.
96
97 #. Click “OK” to exit the advanced options window and save the changes.
98
99 #. Plot the **glassy_carbon_41_001_0000.tiff** file.
100
101 * *Tip:* :ref:`Section 1 Part 1 <s1p1>` of this tutorial document teaches you how
102 to do this.
103
104 #. Save the **glassy_carbon** profile in the **calibration_dat/extra** folder.
105
106 #. Plot and save the **vac_37_001_0000.tiff** and ** MT2_48_001_0000.tiff **
107 profiles.
108
109 #. Open the Options window and select the Absolute Scale section.
110
111 #. Uncheck the Ignore background checkbox.
112
113 |config_absgc_full2_png|
114
115 #. Click the Glassy carbon “Set” button and select the **glassy_carbon_41_001_0000.dat** file.
116
117 #. Click the Glassy carbon background “Set” button and select the **vac_37_001_0000.dat** file.
118
119 * *Tip:* This is the instrument background from when the glassy carbon
120 images were taken.
121
122 #. Click the Sample background “Set” button and select the **MT2_48_001_0000.tiff** file.
123
124 * *Tip:* This is the instrument background from when sample images
125 were taken, including the empty sample cell.
126
127 #. Set the Sample thickness to 1.5 mm.
128
129 #. Set the Upstream counter to I1.
130
131 #. Set the Downstream counter to I3.
132
133 #. Click the “Calculate” button. You should get an absolute scaling constant near 198.
134
135 * *Note:* This approach will only work if the .dat files you select for the glassy
136 carbon, glassy carbon background, and sample background contain the upstream and
137 downstream counter values. This happens automatically with RAW. Otherwise, you should
138 use images, which will have more noise, but should allow RAW to find all of the
139 appropriate counter values.
140
141 * *Note:* It is important that you not change your normalization settings once you
142 have set the absolute scaling constant. If you do, you will have to recalculate the
143 absolute scaling constant. Also, make sure absolute scale is turned off before you
144 calculate the scale constant, otherwise you will get a bad scaling constant (see the
145 manual for details).
146
147 |config_absgc_full3_png|
148
149 #. Check the “Normalize processed data to absolute scale using glassy carbon” checkbox.
150
151 #. Click “OK” to exit the advanced options panel, saving the changes.
152
153 #. Save the settings for future use.
154
155
156 **Comparison note:**
157
158 We find that for the example data in the calibratin_data/extras folder, the
159 two methods of glassy carbon calibration agree within ~1.5%. The best approach
160 depends on how strong your background scattering is relative to the rest of
161 the scattering in the system.
162
163
164
165 .. |config_absgc1_png| image:: images/config_absgc1.png
166 :target: ../_images/config_absgc1.png
167
168 .. |config_absgc2_png| image:: images/config_absgc2.png
169 :width: 500 px
170 :target: ../_images/config_absgc2.png
171
172 .. |config_absgc3_png| image:: images/config_absgc3.png
173 :target: ../_images/config_absgc3.png
174
175 .. |config_absgc_full1_png| image:: images/config_absgc_full1.png
176 :target: ../_images/config_absgc_full1.png
177
178 .. |config_absgc_full2_png| image:: images/config_absgc_full2.png
179 :target: ../_images/config_absgc_full2.png
180
181 .. |config_absgc_full3_png| image:: images/config_absgc_full3.png
182 :target: ../_images/config_absgc_full3.png