- Basic auto-centering and calibration (notebook)
This is the module for calibration functions and data
Estimate the sample-detector distance
Given a radially integrated calibration image return an estimate for the sample-detector distance. This function does not require a rough estimate of what d should be.
For the peaks found the detector-sample distance is estimated via .. math
D = \frac{r}{\tan 2\theta}
where \(r\) is the distance in mm from the calibrated center to the ring on the detector and \(D\) is the distance from the sample to the detector.
Parameters: | name : str
wavelength : float
bin_centers : array
ring_average : array
window_size : int
max_peak_count : int
thresh : float
|
---|---|
Returns: | dist_sample : float
std_dist_sample : float
|
Refines the location of the center of the beam.
This relies on being able to see the whole powder pattern.
Parameters: | image : ndarray
calibrated_center : tuple
pixel_size : tuple
phi_steps : int
max_peaks : int
thresh : float
window_size : int, optional
nx : int, optional
min_x : float, optional
max_x : float, optional
|
---|---|
Returns: | calibrated_center : tuple
|