Skip to content

Instantly share code, notes, and snippets.

@jonathansick
Created June 3, 2014 19:50
Show Gist options
  • Save jonathansick/9f4228d86f8c888f13da to your computer and use it in GitHub Desktop.
Save jonathansick/9f4228d86f8c888f13da to your computer and use it in GitHub Desktop.
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