periodic_crop#
- abtem.measurements.periodic_crop(array, corner, new_shape)[source]#
Crop an array with periodic boundary conditions. The cropping region is wrapped around the array.
- Parameters:
array (ndarray) – The array to crop.
corner (two floats) – The corner of the cropping region.
new_shape (two ints) – The shape of the cropping region.
- Returns:
cropped_array – The cropped array.
- Return type:
ndarray