XMM-Newton SAS Home Page
XMM-Newton Science Analysis System


imcrop (tools-1.68.1) [xmmsas_20230412_1735-21.0.0]


Description

The task cuts out a rectangular subset of the input image and returns this as an output image. This is done in two stages:

  1. If the trimborder parameter is set, the task first constructs the smallest possible rectangle such that no pixel outside the rectangle has a value other than zero. If trimborder=`no', this first-stage rectangle is taken to be identical with the border of the input image.

  2. The task then constructs a second, smaller, inner rectangle. The fractional relations between the occurrence of the sides of this inner rectangle and the dimensions of the first rectangle are given via the parameters xfraclo, xfrachi, yfraclo and yfrachi.

Note that, if WCS keywords are present in the input image, these are adjusted to reflect the transformations performed on the output.



XMM-Newton SOC -- 2023-04-16