For a non-celestial WCS, e.g. one with mixed spectral and spatial axes, it is still sometimes possible to define a pixel scale.
inwcs : WCS
The world coordinate system object
scale : numpy.ndarray
The pixel scale along each axis