cropping

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

Module Contents

Functions

crop_to_region

Crops the input array to the input region.

API

cropping.crop_to_region(array: numpy.ndarray, region: islatu.region.Region)

Crops the input array to the input region.

Args:
array:

The array to crop.

region:

The instance of Region to crop to.