coordinates_from_wcs

glue.core.coordinates.coordinates_from_wcs(wcs)[source]

Convert an Astropy WCS object into a glue Coordinates object.

Parameters:

wcs : astropy.wcs.WCS

The WCS object to use

Returns:

coordinates : Coordinates