pad_image

ska_sdp_func_python.image.operations.pad_image(im: Image, shape)

Pad an image to desired shape, adding equally to all edges

Appropriate for standard 4D image with axes (freq, pol, y, x). Only pads in y, x

The wcs crpix is adjusted appropriately.

Parameters:
  • im – Image to be padded

  • shape – Shape in 4 dimensions

Returns:

Padded image