wcs_to_platescale

FITS_tools.header_tools.wcs_to_platescale(mywcs, assert_square=True, use_units=False)[source] [edit on github]

Attempt to determine the spatial plate scale from a WCS

Parameters:

mywcs : WCS

The WCS instance to examine

assert_square : bool

Fail if the pixels are non-square

use_units : bool

Return a Quantity if True

Returns:

platescale : float or Quantity

The platescale in degrees with attached units if use_units is True