pad_image
- pad_image(im: Image, shape)[source]
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