Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Flexible pixel scale
if 'CDELT' in header:
pix_scale header['CDELT'] * 3600.
else:
pix_scale = np.sqrt(header['CD1_1'] ** 2. + header['CD1_2'] ** 2.) * 3600.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.