pixel_scale

astropy.units.pixel_scale(pixscale)[source]

Convert between pixel distances (in units of pix) and angular units, given a particular pixscale.

Parameters
pixscaleQuantity

The pixel scale either in units of angle/pixel or pixel/angle.