Often the detector is a lot larger than the reflected intensity peak, so it makes sense to crop the image to the peak.

islatu.cropping.crop_to_region(array: ndarray, region: Region)[source]

Crops the input array to the input region.

  • array – The array to crop.

  • region – The instance of Region to crop to.