wcs_bbox_from_shape

stcal.alignment.wcs_bbox_from_shape(shape: Sequence) tuple[source]

Create a bounding box from the shape of the data.

This is appropriate to attach to a wcs object

Parameters:

shape (tuple) – The shape attribute from a np.ndarray array

Returns:

bbox – Bounding box in x, y order.

Return type:

tuple