get_wcs_pscale

grizli.utils.get_wcs_pscale(wcs, set_attribute=True)[source]

Get correct pscale from a WCS object

Parameters:
wcs : WCS or Header
set_attribute : bool

Set the pscale attribute on wcs, along with returning the value.

Returns:
pscale : float

Pixel scale from wcs.cd