get_wcs_pscale

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

Get correct pscale from a WCS object

Parameters:
wcsWCS or Header
set_attributebool

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

Returns:
pscalefloat

Pixel scale from wcs.cd