get_slices1d#
- Calibration.get_slices1d(npt, radial_range=None)[source]#
Get the slices and factors for some image that can be used to slice the image for 1d integration.
- Parameters:
npt (int) – The number of radial points
radial_range (tuple) – The range of the radial extent
- Returns:
indexes (np.ndarray (n, 2)) – The indexes of the pixels to integrate flattened
factors (np.ndarray (n)) – The factors(representing the pixel fraction) to multiply each pixel value by
factor_slices (np.ndarray (npt+1)) – The start and end index of the factors for each slice such that for some slice i, factors[factor_slices[i]:factor_slices[i+1]] is the factors for that radial slice
radial_range (tuple) – The range of the radial extent used for the integration