| 1 |
Setting normalization and other options |
| 2 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 3 |
.. _s3p4: |
| 4 |
|
| 5 |
This section teaches you how to set up normalization by a beamstop counter, and |
| 6 |
other options. It assumes you have completed :ref:`Parts 1 <s3p3>` and :ref:`2 <s3p1>`\ . |
| 7 |
|
| 8 |
A video version of this tutorial is available: |
| 9 |
|
| 10 |
.. raw:: html |
| 11 |
|
| 12 |
<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/NTjrds0stGc' frameborder='0' allowfullscreen></iframe></div> |
| 13 |
|
| 14 |
The written version of the tutorial follows. |
| 15 |
|
| 16 |
#. Open the Options window by selecting “Advanced Options” in the Options menu. |
| 17 |
|
| 18 |
#. In the window that shows up select the Image/Header Format section on the left. |
| 19 |
In the area on the right click the Load Image button. |
| 20 |
|
| 21 |
|config_norm_load_image_png| |
| 22 |
|
| 23 |
#. In the window that pops up, select the **agbe_008_0001.tif** file. Click |
| 24 |
the Open button. |
| 25 |
|
| 26 |
* *Note:* You can select any image of the appropriate type, not just the behenate. |
| 27 |
|
| 28 |
#. In the Image/Header Format window you should now see header values loaded into the |
| 29 |
list. Click the Apply button at the bottom of the screen. |
| 30 |
|
| 31 |
|config_norm_apply_png| |
| 32 |
|
| 33 |
#. Click on the Normalization section in the options list on the left. |
| 34 |
|
| 35 |
#. In the fields at the bottom of the Normalization panel, make sure “/” is selected |
| 36 |
in the left drop-down menu, and enter I1 in the large field. |
| 37 |
|
| 38 |
* *Note:* It is typical in SAXS to normalize by the transmitted intensity. At the |
| 39 |
BioCAT beamline, the beamstop counter is name I1, which is why we are using |
| 40 |
that name in the normalization expression. |
| 41 |
|
| 42 |
* *Tip:* You can use the large field as a drop-down menu to see and select |
| 43 |
available normalization counters. |
| 44 |
|
| 45 |
#. Click the Calc button to evaluate the expression for the counter values loaded |
| 46 |
in the Image/Header Format tab. You should get a value of 7200.0. |
| 47 |
|
| 48 |
#. Click the Add button to add the expression to the normalization list. |
| 49 |
|
| 50 |
|config_norm_values_png| |
| 51 |
|
| 52 |
#. You should now see the normalization in the normalization list. |
| 53 |
Make sure the “Enable Normalization” checkbox at the top of the page is checked. |
| 54 |
|
| 55 |
|config_norm_enable_png| |
| 56 |
|
| 57 |
#. Click OK to exit the options window. |
| 58 |
|
| 59 |
#. In the file list, select the **agbe_008_0001.tif** file and click the Plot |
| 60 |
button. You will see a curve get plotted in the top panel of the Profiles plot. |
| 61 |
|
| 62 |
#. Click on the Profiles tab. You will see a profile loaded in the Profiles list. |
| 63 |
|
| 64 |
|config_norm_start_point1_png| |
| 65 |
|
| 66 |
#. Adjust the start point for q Min to remove the points with zero value at the start of |
| 67 |
the curve (these are q points entirely in the mask). Set q Min so that the first point |
| 68 |
is the peak of the curve on the main plot. This should be around point 13 (depending |
| 69 |
on your mask). |
| 70 |
|
| 71 |
* *Tip:* It is easier to see the start point if you put the plot on |
| 72 |
a log-log scale. |
| 73 |
|
| 74 |
|config_norm_start_point2_png| |
| 75 |
|
| 76 |
#. Open the Options window as in Step 1. |
| 77 |
|
| 78 |
#. Click on the Radial Averaging section in the options list on the left. Set “Start plots |
| 79 |
at q-point number” to the number you just found in Step 13. |
| 80 |
|
| 81 |
* *Note:* This makes it so that every curve loaded from now on will by default |
| 82 |
not display the first n points, which are covered by the beamstop. |
| 83 |
|
| 84 |
* *Tip:* You can do the same for the end point. |
| 85 |
|
| 86 |
|config_norm_start_point3_png| |
| 87 |
|
| 88 |
#. RAW also allows you to add arbitrary metadata to your radially integrated |
| 89 |
files. One use case is to provide metadata keys for data deposition (e.g. in |
| 90 |
the `SASBDB <https://www.sasbdb.org/>`_). To start, click on the Metadata |
| 91 |
section in the options list on the left of the Options window. |
| 92 |
|
| 93 |
#. In the 'Key' field enter 'Detector'. In the 'Value' field enter 'Pilatus3 X 1M'. |
| 94 |
|
| 95 |
#. Click the Add button. |
| 96 |
|
| 97 |
|config_norm_metadata1_png| |
| 98 |
|
| 99 |
#. Click the OK button to exit the options window and save your changes. |
| 100 |
|
| 101 |
#. You have configured everything necessary, and are now ready to save your settings. |
| 102 |
Go to the File menu and select “Save Settings”. |
| 103 |
|
| 104 |
#. Save the settings as **SAXS.cfg**\ . |
| 105 |
|
| 106 |
#. These settings can now be used to process images, and can be reloaded when you |
| 107 |
open RAW by selecting “Load Settings” from the File menu. |
| 108 |
|
| 109 |
**Additional Tips** |
| 110 |
|
| 111 |
There are other settings you may find it useful to set. |
| 112 |
|
| 113 |
#. In the "General Settings" section you can set "Hide controls on |
| 114 |
profile items for new plots". This means that when you load a profile |
| 115 |
item it starts with the extra controls (such as q min and q max) hidden. |
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
.. |config_norm_load_image_png| image:: images/config_norm_load_image.png |
| 120 |
:target: ../_images/config_norm_load_image.png |
| 121 |
|
| 122 |
.. |config_norm_apply_png| image:: images/config_norm_apply.png |
| 123 |
:target: ../_images/config_norm_apply.png |
| 124 |
|
| 125 |
.. |config_norm_values_png| image:: images/config_norm_values.png |
| 126 |
:target: ../_images/config_norm_values.png |
| 127 |
|
| 128 |
.. |config_norm_enable_png| image:: images/config_norm_enable.png |
| 129 |
:target: ../_images/config_norm_enable.png |
| 130 |
|
| 131 |
.. |config_norm_start_point1_png| image:: images/config_norm_start_point1.png |
| 132 |
:target: ../_images/config_start_point1.png |
| 133 |
|
| 134 |
.. |config_norm_start_point2_png| image:: images/config_norm_start_point2.png |
| 135 |
:target: ../_images/config_start_point2.png |
| 136 |
|
| 137 |
.. |config_norm_start_point3_png| image:: images/config_norm_start_point3.png |
| 138 |
:target: ../_images/config_start_point3.png |
| 139 |
|
| 140 |
.. |config_norm_metadata1_png| image:: images/config_norm_metadata1.png |
| 141 |
:target: ../_images/config_norm_metadata1.png |