Skip to content

Profile parameter

Clicking the Profile Parameter (P) icon on the main window opens this sub window. Here you make detailed settings for the loaded profiles and apply various numerical processing.

The whole Profile Parameter window

The left side of the window holds the Profile checklist, and the right side is split into three tabbed pages — Profile processing, Axis setting, and Profile Operator. Each processing step can be toggled on/off with a check box and is applied in order from top to bottom.

Note

Settings made in this window are reflected on the profiles in the main window in real time. Choose the display unit of the horizontal axis on the Horizontal Axis tab of the main window. For settings on the crystal side, such as the index labels of diffraction lines, see Crystal Parameter.


Profile checklist

The list on the left side of the window shows the same information as the Profile checklist on the main window. Selecting a profile in the list makes it the target of the processing and settings on the right side of the window.

Item Description
↑ ↓ (up/down arrow buttons) Change the order of the profiles in the list. Select several rows with Ctrl or Shift to move them together (Alt + ↑ / ↓ also works).
Delete Deletes the selected profile. If it is used as the background of other profiles, their background subtraction is turned off after a confirmation.
Delete all Deletes all profiles.

In the Basic property area below the list, you edit the basic attributes of the selected profile.

Item Description
Line color Click to change the drawing color of the selected profile.
Line width Sets the line thickness of the profile (pt).
Profile Name Sets the name of the profile.
Comment A free-form comment field.

Profile processing

On the Profile processing tab you apply various numerical processing to the selected profile. Steps 1–7 can each be enabled independently with a check box, and the enabled ones are applied in numerical order.

1. 2θ offset

2θ offset panel

1. 2θ offset (for angle-dispersive diffractometry) corrects the angle of angle-dispersive data. The correction expression is a quadratic function of \( \tan\theta \).

\[ \Delta(2\theta) = a_0 + a_1 \tan\theta + a_2 \tan^2\theta \]

If the profile contains an internal standard (a sample with known lattice constants), press the Calibration using an internal standard button and follow the messages; the coefficients of the quadratic function are then determined automatically. In the calibration dialog, observed peak positions are matched to the theoretical peak positions of the standard, and the coefficients are fitted. For the calibration, the horizontal axis must be 2θ in degrees at the wavelength of the measurement. The coefficients are not changed when fewer reflections than coefficients are checked, when the residual does not become smaller, or when the coefficients in use give a smaller residual. The correction is applied to the measured 2θ (in degrees, at the wavelength of the measurement) before the conversion of the horizontal axis, so it also takes effect with other axes, such as d, and other units. The shift of the horizontal axis is added after it. If the shift is on during the calibration, the coefficients are chosen so that the shifted positions match the lines of the standard (the shift goes into a0).

2θ calibration dialog

The Reset button resets the offset coefficients you have set.

Tip

Internal standards are commonly materials with precisely determined lattice constants, such as Si or LaB₆. After calibration, the corrected 2θ values are used directly in all subsequent analysis.

2. Mask and Interpolation

Mask and interpolation panel

2. Mask and Interpolation masks a specified angular range (or energy range) and interpolates the profile using the intensities outside the masked range.

Item Description
Set Masking range Specifies the horizontal-axis range to mask.
Point No. Specifies the number of end points (each side) used for interpolation.
Polynomial order Specifies the order of the polynomial used for interpolation.
Save Masking Ranges / Read Masking Ranges Save the configured masking ranges to a file, or read them back.
Delete / Delete all Delete an individual masking range, or all of them.

3. Smoothing

Smoothing panel

3. Smoothing applies smoothing to the selected profile. The smoothing algorithm is the Savitzky-Golay method.

In this method, for each \(x\) position of interest, a least-squares fit with a polynomial of degree Order is performed on the data within \(\pm\) Point No. of that point, and the value of the resulting function \(F(x)\) is adopted as the new intensity at that \(x\) position.

Note

When Order \(= 1\), Savitzky–Golay smoothing is equivalent to a simple moving average. Increasing Order better preserves peak shapes, while increasing Point No. strengthens the smoothing.

4. Bandpass filter

Bandpass filter panel

4. Bandpass filter uses a Fourier transform (FFT) to cut components above or below specified frequencies.

Item Description
Cut high-freq. over Removes components with a frequency higher than the specified value (reduces high-frequency noise).
Cut low-freq. under Removes components with a frequency lower than the specified value (removes a slowly varying background).

5. Remove Kα2

5. Remove Kα2 (if Kα1 is used as X-ray source): if the selected profile was measured with X-rays in which Kα1 and Kα2 are not separated, and it was loaded specifying Kα1, checking this removes the diffraction intensity originating from Kα2.

Warning

This processing is effective only when Kα1 is selected as the X-ray source. Check and set the horizontal-axis unit and the radiation type on the Axis setting tab.

6. Background

Background subtraction panel

6. Background subtracts the background from the profile. There are two methods.

B-Spline curve

Pressing Auto Detect automatically calculates and subtracts the background. With Point No. you set the maximum number of background control points to search for automatically.

You can also change the control points manually. Drag the round control points drawn on the main window with the mouse to create an appropriate curve.

Reference

You can specify another profile as the background for the selected profile. Checking Show background profile displays the profile being used as the background. Only profiles in the list can be used as the reference. When a pdi2 file is opened, a background of this type is turned off, so select the reference again.

Note

Background subtraction (step 6) is excluded from the bulk application performed by the Apply for all profiles (without background setting) button described below.

7. Normalize intensity

Normalize intensity panel

7. Normarize intensity normalizes the profile so that the average or maximum over a specified horizontal-axis range becomes a specified intensity.

Item Description
average / maximum Choose whether the average or the maximum within the range is used as the reference.
in the range Specifies the target horizontal-axis range.
to Specifies the target intensity value after normalization.

Apply for all profiles button

The Apply for all profiles (without background setting) button applies the settings of steps 1–7, excluding 6. Background, to all profiles at once.


Axis setting

On the Axis setting tab you reset the source horizontal-axis type, wavelength, take-off angle and exposure time of the selected profile. The display unit of the horizontal axis is chosen not here but on the Horizontal Axis tab of the main window.

Item Description
Horizontal axis setting Sets the source horizontal-axis type, wavelength and take-off angle; Change writes them back to the selected profile. With Shift you can also offset the whole horizontal axis. The shift is added in the unit of the displayed axis (Å when d is displayed). For profiles measured in 2θ, correct a constant offset with a0 of 1. 2θ offset instead: it is applied to the measured 2θ, so it is correct on every axis. The shift is meant for profiles that the 2θ offset does not cover (energy-dispersive, TOF and others).
Exposure Time Sets the exposure time (sec.) used in CPS mode ((for CPS mode)).
Vertical axis setting Settings related to the vertical axis.

Note

Clicking Change writes the source axis type, take-off angle, wavelength and exposure time back to the profile. Unlike the display-only axis switching in the main window, it affects how the data itself is interpreted. Since the wavelength and take-off angle directly influence the calculation of diffraction-line positions, set the correct values. A wrong unit chosen at import can also be corrected here (the measured X values themselves are not changed).


Profile Operator

On the Profile Operator tab you perform averaging of multiple profiles and arithmetic operations between profiles.

After specifying the target profiles for the calculation and the operation you want to perform, press the Calculate button; the result is added as a new profile. The operations use the linear intensity, even when the intensity is displayed on the logarithmic axis. Where one of the profiles has no error, or outside of its measured range, the result has no error (NaN) either.

Mode Description
Average Averages multiple profiles.
Profile and value Operates between a profile and a scalar value.
Two profiles Performs an arithmetic operation (such as addition) between two profiles.

With Output name of the profile you can specify the name of the generated profile (the default is Result #01).

Tip

This can be used, for example, to average multiple measurements to improve the S/N ratio, or to take the difference of two profiles to extract the change between them.