xrheed.preparation.filters
Functions
|
Apply a 1D Gaussian filter to a 1D xarray.DataArray profile. |
|
Vectorized high-pass filter to a RHEED image or stack using Gaussian filtering. |
- gaussian_filter_profile(profile, sigma=1.0)[source]
Apply a 1D Gaussian filter to a 1D xarray.DataArray profile.
- Parameters:
profile (xr.DataArray) – 1D data profile to be filtered.
sigma (float, optional) – Standard deviation for Gaussian kernel, in the same units as the profile coordinate (default is 1.0).
- Returns:
The filtered profile as a new DataArray.
- Return type:
xr.DataArray
- high_pass_filter(rheed_data, threshold=0.1, sigma=1.0)[source]
Vectorized high-pass filter to a RHEED image or stack using Gaussian filtering.
- Parameters:
rheed_data (xr.DataArray) – RHEED image (2D) or image stack (3D) to be filtered. The stack must have the first dimension as the stacking dimension.
threshold (float, optional) – Threshold for the high-pass filter (default is 0.1). Scales the blurred image before subtraction.
sigma (float, optional) – Standard deviation for the Gaussian kernel in screen units (default is 1.0).
- Returns:
High-pass filtered RHEED image or stack.
- Return type:
xr.DataArray