trim_image#

astropop.image.processing.trim_image(image, x_slice=None, y_slice=None, inplace=False)#

Trim an image to a given section. Uses python slice standard.

Parameters:
imageFrameData compatible

Image to be trimmed. Quantity, numerical values and CCDData are also suported.

x_slice, y_sliceslice

Section to be trimmed in x and y axes.

inplacebool, optional

If True, the operations will be performed inplace in the image.

Returns:
FrameData:

Trimmed FrameData instance.