compute_s_region_imaging
- stcal.alignment.compute_s_region_imaging(wcs: gwcs.wcs.WCS, shape: Sequence | None = None, center: bool = True) str | None[source]
Update the
S_REGIONkeyword using the WCS footprint.- Parameters:
wcs (WCS) – The WCS object.
shape (tuple, None, optional) – Shape of input model data array. Used to compute the bounding box if not provided in the WCS object, and required in that case. The default is None.
center (bool, None, optional) – Whether or not to use the center of the pixel as reference for the coordinates, by default True
- Returns:
s_region – String containing the S_REGION object.
- Return type: