miri_slice_limit_coords

jwst.cube_build.cube_build_wcs_util.miri_slice_limit_coords(wcs, xstart, xend)[source]

Get MIRI slice end points in input image coordinates.

This function is intended to support oversampled images as well as images with the original detector sampling.

Parameters:
wcsWCS

WCS pipeline for the input data.

xstartint

Starting pixel in detector coordinates for the slice.

xendint

Ending pixel in detector coordinates for the slice.

Returns:
x_coord_startint

Starting pixel in image coordinates for the slice.

x_coord_endint

Ending pixel in image coordinates for the slice.