make_gwcs

photutils.datasets.make_gwcs(shape, galactic=False)[source]

Create a simple celestial gWCS object in the ICRS coordinate frame.

This function requires the gwcs package.

Parameters:
shape2-tuple of int

The shape of the 2D array to be used with the output WCS object.

galacticbool, optional

If True, then the output WCS will be in the Galactic coordinate frame. If False (default), then the output WCS will be in the ICRS coordinate frame.

Returns:
wcsgwcs.wcs.WCS object

The generalized world coordinate system (WCS) transformation.

Notes

The make_wcs function returns an equivalent WCS transformation to this one, but as an astropy.wcs.WCS object.

Examples

>>> from photutils.datasets import make_gwcs
>>> shape = (100, 100)
>>> gwcs = make_gwcs(shape)
>>> print(gwcs)
  From      Transform
-------- ----------------
detector linear_transform
    icrs             None