create_s_region

romanisim.wcs.create_s_region(wcs, shape=None)

Create s_region string from wcs.

Parameters:
wcsgwcs.wcs.WCS instance

wcs for which s_region is desired

shapetuple

use this shape to determine the pixel boundaries instead bounding box

Returns:
s_regionstr

the s_region string, POLYGON ICRS + coordinates of 4 corners