Get correct pscale from a WCS object
WCS
Header
Set the pscale attribute on wcs, along with returning the value.
pscale
wcs
Pixel scale from wcs.cd
wcs.cd
get_wcs_pscale()