get_navigation_calibration#
- CalibrationGenerator.get_navigation_calibration(line_roi, x1, x2, n, xspace, *args, **kwargs)[source]#
Determine the navigation space pixel size calibration, nm per pixel.
- Parameters:
line_roi (Line2DROI) – Line2DROI object along which a profile will be taken to determine
x1 (float) – Estimate of first X-grating intersection.
x2 (float) – Estimate of second X-grating intersection.
n (int) – Number of X-grating squares crossed.
xspace (float) – Spacing of X-grating in nanometres.
*args (arguments) – Arguments to be passed to the find_peaks1D method.
**kwargs (keyword arguments) – Keyword arguments to be passed to the find_peaks1D method.
- Returns:
nav_cal – Navigation calibration in nanometres per pixel.
- Return type: