pad_wcs#

niriss_tools.isophotal.pad_wcs(wcs_in, padding)[source]#

Add padding to all relevant WCS keywords.

Adapted from grizli.model.ImageData.add_padding_to_wcs, with minor modifications to avoid slicing attributes of Wcsprm, and allowing for symmetrical padding.

Parameters:
wcs_inWCS

The input WCS.

paddingint | tuple[int, int]

The number of pixels with which to pad the input WCS.

Returns:
WCS

The output (padded) WCS.