astropy.wcs
Calculate the pixel scale along each axis of a non-celestial WCS, for example one with mixed spectral and spatial axes.
WCS
The world coordinate system object.
numpy.ndarray
The pixel scale along each axis.