Created
June 3, 2014 19:50
-
-
Save jonathansick/9f4228d86f8c888f13da to your computer and use it in GitHub Desktop.
Flexible pixel scale
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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