You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MDhelp/docs/image.md
+76-17Lines changed: 76 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,48 +15,107 @@ The data window for the main `IMG` data tree entry shows some controls, most of
15
15
16
16
<H3style="color:blue;font-size:1.1em">What can I do here?</H3>
17
17
18
-
Apart from changing one of the listed values (caution: you do need to know what their true value is), you can determine the x-ray bean polarization and create a gain map for your detector. Both require an image with scattering from a purely isotropic amorphous sample (a glass slide mounted perpendicular to the incident beam is recommended) with the detector close to the sample so that the scattering angle at the edge of the detector is at least 35° \(2\theta\); better is > 40° \(2\theta\). A frame mask is recommended to remove detector edge effects. The image should be as free as possible (except for beam stop) from shadows and obstructions and normal to the incident beam. The detector orientation should have been previously calibrated with a known reference material (e.g., LaB<sub>6</sub> or Si).
18
+
A number of calibration values are shown for the placement and dimensions of the detector. They can be changed here. (*Caution:* you do need to know what their true value is; you do not want to invalidate data by incorrectly changing these values.)
19
+
20
+
**Polarization:** you can determine the x-ray bean polarization for your detector. This requires an image with scattering from a purely isotropic amorphous sample (a glass slide mounted perpendicular to the incident beam is recommended) with the detector close to the sample so that the scattering angle at the edge of the detector is at least 35° \(2\theta\); better is > 40° \(2\theta\). A frame mask is recommended to remove detector edge effects. The image should be as free as possible (except for beam stop) from shadows and obstructions and normal to the incident beam. The detector orientation should have been previously calibrated with a known reference material (e.g., LaB<sub>6</sub> or Si). Use the **Calibrate?** button to start the Polarization process, as below.
19
21
20
22
***Calibrate?** (Polarization) - This begins the calibration procedure ([Von Dreele & Xi, 2021](https://doi.org/10.1107/S1600576720014132)) for the x-ray beam polarization, which integrates a 4° \(2\theta\) wide ring sampling area with and without an arc mask positioned about 90° azimuth (top of image) with selected polarization values. The integrations match with the correct polarization value. You will be asked for a \(2\theta\) position for the sampling mask; choose a value at least 2° \(2\theta\) less than the maximum \(2\theta\) seen for all edges inside the frame mask. The process takes about 5 min to complete, so be patient.
21
-
***Make gain map** - This uses the same image (from a glass slide) used for polarization analysis to determine a gain map for the detector. The process uses the result of an integration of the glass pattern to normalize the entire detector pixel array. The result (~1.0 for all pixels) is the scaled by 1000, converted to integers and stored as a GSAS-II image file (NB: this is a python pickle file and thus not usable by other programs) and entered in the GSAS-II data tree. You can view it to see what the map looks like (select its IMG entry). The gain map file can be imported into other projects using the same detector. If selected in Image Controls, the image is immediately corrected for the gain map.
22
23
23
24
<aname="IMG_Comments"></a>
24
25
## Comments
25
26
26
-
This window shows whatever comment lines found in a “metadata” file when the image data file was read by GSAS-II. If you are lucky, there will be useful information here (e.g., sample name, date collected, wavelength used, etc.). If not, this window will be blank. The text is read-only.
27
+
This window shows whatever comment lines found in a “metadata” file when the image data file was read by GSAS-II. If you are lucky, there will be useful information here (e.g., sample name, date collected, wavelength used, etc.). With some types of files, this window will be blank. The text is read-only. It will be transferred over to diffraction patterns when the image is integrated and can be used to set parametric values (in [Sample Parameters](./powdersample.md)) associated with the diffraction pattern.
28
+
29
+
<H3style="color:blue;font-size:1.1em">What can I do here?</H3>
30
+
Nothing.
27
31
28
32
<aname="IMG_Image_Controls"></a>
29
33
## Image Controls
30
34
31
-
This window displays calibration values needed to convert pixel locations to two-theta and azimuth. Also shown are controls that determine how integration is performed.
35
+
The image controls data window displays a number of settings and options that include calibration values needed to convert pixel locations to two-theta and azimuth, values used to integrate the image, settings that adjustment the image, settings used when performing image calibration and sample setting angles.
36
+
37
+
<H3style="color:blue;font-size:1.1em">What can I do here?</H3>
38
+
* Perform image calibration with data from a standard
* A. The **Image controls** section at the top has controls that determine how the image is displayed.
50
+
These settings do not affect computations from the image.
51
+
* B. The **Calibration coefficients** have the results from an image calibration and are used to determine the $2\theta$
52
+
value for each pixel in the image.
53
+
* C. The **Integration coefficients** determine how image integration is performed. Show integration limits will show lines on the image, but does not change the integration results.
54
+
* D. Image corrections: It is possible to subtract images from the current image to account for pixels that provide non-zero results even when not illuminated (Dark image); or a constant value that is subtracted from all pixels (Flat Bkg), as well as subtract an image with scattering from the instrument or sample container (Background image). It is also possible to adjust for pixel-by-pixel detector response with a gain map.
55
+
* E. The **Calibration controls** determine the process used to search for diffraction rings when the detector calibration is used. The "Show ring picks" check button determines if the located ring positions are displayed, but does not affect the computation.
56
+
* F. The **Sample goniometer angles** reflect positioning of a sample. They are not used for calibration, but will be transferred to powder patterns generated from the image during image integration. The Global edit button provides a single window where setting angles for all images can be changed.
Three sets of menu commands are associated with the Image Controls tree item. The first, **Calibration**, provides commands to perform calibration from an image (where the calibration values are fitted from a diffraction pattern image taken with a calibrant).
61
+

62
+
63
+
The Integration menu provides the ability to radially integrate an image to provide one or more powder diffraction patterns (requires that calibration parameters must be set first.)
64
+
65
+

32
66
33
-
Three sets of menu commands are associated with the Image Controls tree item. The first, Calibration, provides commands to perform calibration from an image (where the calibration values are fitted from a diffraction pattern image taken with a calibrant). The Integration menu provides the ability to radially integrate an image to provide one or more powder diffraction patterns (requires that calibration parameters must be set first.)
67
+
Finally, the Parms menu has commands allow the values on the window to be saved to a file, read from a file or copied to other images. The "Xfer controls" menu command differs from the "Copy Controls" command in that integration range for the current image is scaled when applied for other images based on the detector distances.
34
68
35
-
Finally, the Parms menu has commands allow the values on the window to be saved to a file, read from a file or copied to other images. The "Xfer Angles" menu command scales the current integration range for other images located at different detector distances.
69
+

36
70
71
+
<H3style="color:blue;font-size:1.1em">Calibration compared to other software</H3>
37
72
Note that calibration parameters used in GSAS-II are closely related to those used by the pyFAI and Fit2D programs, but add 90 to the GSAS-II tilt plane rotation (labeled as "Rotation" in GSAS-II) to obtain the pyFAI value. The X and Y values determine the beam center location. In GSAS-II the values are in mm measured from the top left corner of the detector, while in pyFAI the values are measured in the same way, but in units of pixels:
38
73
39
-
$$X_{GSAS-II}/size_X = X_{pyFAI}$$ and
40
-
$$ Y_{GSAS-II}/size_Y = Y_{pyFAI}$$
74
+
$$X_{GSAS-II}/size_X = X_{pyFAI}$$
75
+
76
+
and
77
+
78
+
$$Y_{GSAS-II}/size_Y = Y_{pyFAI}$$
41
79
42
80
For Fit2D, the center is also in mm, but measured from the bottom left, so
43
81
44
-
$$X_{GSAS-II}/size_X = X_{Fit2D}$$ and
45
-
$$ Y_{max} - Y_{GSAS-II}/size_Y = Y_{Fit2D}$$
82
+
$$X_{GSAS-II}/size_X = X_{Fit2D}$$
83
+
84
+
and
85
+
86
+
$$Y_{max} - Y_{GSAS-II}/size_Y = Y_{Fit2D}$$
46
87
47
88
where \(Y_{max}\) is the detector size in pixels and \(size_X\) and \(size_Y\) are the pixel size in mm along the appropriate direction.
48
89
49
90
<aname="IMG_Masks"></a>
50
91
## Masks
51
92
52
-
Image masks are used designate areas of an image with irregular in that should not be included in the integration, typically used due to detector irregularities, shadows of the beam stop, single-crystal peaks from a mounting, etc. Masks can be created with a menu command or with keyboard/mouse shortcuts. There are six types of masks:
93
+
The information on the **Masks** window are used to determine what parts of an image will not be
94
+
included in the integration, typically used due to detector irregularities, shadows of the beam stop,
95
+
single-crystal peaks from a mounting, cosmic rays, etc.
96
+
97
+
Note that the top section of the window repeats some of the display controls from the **Image Controls** window.
98
+
These are duplicated so that the image can be viewed under different conditions without needing to switch between
99
+
the different data items.
100
+
101
+
102
+
Sections of the image may removed from integration by one or all of the following options.
103
+
104
+
* The **Upper/Lower Thresholds** designate the allowed values for pixels to be considered valid. Typically detectors will set pixels that are in margins between segments etc. and are not in use to have negative intensity values, so a threshold of 0 causes these pixels to be ignored. Likewise, malfunctioning pixels or those picking up anomalous signals, such as cosmic rays, may have exceptionally high intensity values that should also be ignored.
105
+
106
+
***Pixel masking** excludes individual pixels that have intensities that are significantly higher or lower than the median intensity across single $2\theta$ value. The controls for the pixel mask search determine the threshold for exclusion, which is expressed as a multiple of the median-based standard deviation for the $2\theta$ ring; the minimum and maximum $2\theta$ value to be used in the search; and if the search should replace any previous pixel map search(es) or should be added to the previous pixel mask search. This latter control, when "Clear..." is turned off, allows the sensitivity for exclusion to be varied for different $2\theta$ ranges. Finally, a button allows a previous pixel mask to be cleared.
107
+
108
+
109
+
* Specific geometrical regions of the detector can be designated to be ignored using menu commands or with
110
+
keyboard/mouse shortcuts.
111
+
112
+
There are five types of geometrical masks:
53
113
54
-
***Spot masks**: exclude a circle with a selected center and diameter in image coordinates (mm).
55
-
***Ring masks**: excludes a specific Bragg reflection (a ring placed relative to the image center). The location and thickness of the ring are specified in degrees 2-theta.
56
-
***Arc masks**: exclude a section of a Bragg reflection, similar to a ring mask, except that in addition to the location and thickness of the ring, the mask has a starting and ending azimuthal angle.
57
-
***Polygon masks**: exclude an arbitrary region created by line segments joining a series of points specified in image coordinates (mm). Pixels inside the polygon mask are not used for integration.
58
-
***Frame mask**: excludes an arbitrary region created by line segments joining a series of points specified in image coordinates (mm). Typically, a point is placed near each corner of the image. Only pixels inside the frame mask are used for integration. Only one frame mask can be defined.
59
-
***Pixel mask**: excludes individual pixels that are found in a pixel mask search, which looks for pixels that have intensities that are significantly higher or lower than the median intensity for all pixels in a ring having the same two-theta value. Controls for the pixel mask search are found here and include the threshold for exclusion, which is expressed as a multiple of the standard deviation for the two-theta ring; the minimum and maximum two-theta value to be used in the search; and if the search should replace any previous pixel map search(es) or should be added to the previous pixel mask search. Finally, a button allows a previous pixel mask to be cleared.
114
+
***Spot masks**: exclude a circle with a selected center and diameter in image coordinates (mm).
115
+
***Ring masks**: excludes a specific Bragg reflection (a ring placed relative to the image center). The location and thickness of the ring are specified in degrees 2-theta.
116
+
***Arc masks**: exclude a section of a Bragg reflection, similar to a ring mask, except that in addition to the location and thickness of the ring, the mask has a starting and ending azimuthal angle.
117
+
***Polygon masks**: exclude an arbitrary region created by line segments joining a series of points specified in image coordinates (mm). Pixels inside the polygon mask are not used for integration.
118
+
***Frame mask**: excludes an arbitrary region created by line segments joining a series of points specified in image coordinates (mm). Typically, a point is placed near each corner of the image. Only pixels inside the frame mask are used for integration. Only one frame mask can be defined.
60
119
61
120
<H3style="color:blue;font-size:1.1em">What can I do here?</H3>
Copy file name to clipboardExpand all lines: MDhelp/docs/phasegeneral.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,9 @@ The items in the upper part of the General page that can be changed are Phase na
61
61
([see more extensive elsewhere](./others.md#Origin_1)).
62
62
63
63
***Refine unit cell** – set this flag to refine the unit cell parameters in a Rietveld or Pawley refinement. The actual parameters refined are the symmetry allowed terms (A0-A5) in the expression
where \(A_0 - A_5\) correspond to elements in the reciprocal metric tensor element (**G**) where off-diagonal contributions are doubled, A0-A5 = \(G_{11}\), \(G_{22}\), \(G_{33}\), \(2 * G_{12}\), \(2 * G_{13}\), \(2 * G_{23}\)
66
68
67
69
***a, b, c, alpha, beta, gamma** – lattice parameters; only those permitted by the space group are shown. The volume is computed from the values entered.
0 commit comments