[yt-svn] commit/yt: ngoldbaum: Merged in jzuhone/yt (pull request #1336)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Thu Dec 4 15:34:17 PST 2014
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/6af7c5295ac4/
Changeset: 6af7c5295ac4
Branch: yt
User: ngoldbaum
Date: 2014-12-04 23:34:04+00:00
Summary: Merged in jzuhone/yt (pull request #1336)
[bugfix] Found a bug in create_sky_wcs
Affected #: 1 file
diff -r 3c95fcd960e6926ec9bcc3b336122d6b0fc1030c -r 6af7c5295ac43cbaab23054d2983bb70d54c9108 yt/utilities/fits_image.py
--- a/yt/utilities/fits_image.py
+++ b/yt/utilities/fits_image.py
@@ -285,14 +285,16 @@
new_dy = (YTQuantity(deltas[1], units[1])*scaleq).in_units("deg")
new_wcs = pywcs.WCS(naxis=naxis)
cdelt = [new_dx.v, new_dy.v]
+ cunit = ["deg"]*2
if naxis == 3:
crval.append(old_wcs.wcs.crval[2])
cdelt.append(old_wcs.wcs.cdelt[2])
ctype.append(old_wcs.wcs.ctype[2])
+ cunit.append(old_wcs.wcs.cunit[2])
new_wcs.wcs.crpix = old_wcs.wcs.crpix
new_wcs.wcs.cdelt = cdelt
new_wcs.wcs.crval = crval
- new_wcs.wcs.cunit = ["deg"]*naxis
+ new_wcs.wcs.cunit = cunit
new_wcs.wcs.ctype = ctype
if crota is not None:
new_wcs.wcs.crota = crota
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list