Closed TuahZh closed 12 years ago
Can you tell me which version of pywcsgrid2 you are using, and versions of other tools that pywcsgrid2 depends on.
import pywcs
print pywcs.__version__
import pyfits
print pyfits.__version__
Currently, I'm testing pywcsgrid2 with the environment listed in the following link. And I cannot reproduce the error you're reporting.
https://github.com/leejjoon/pywcsgrid2/wiki/Compatibility-of-pywcsgrid2
In [2]: pywcs.version Out[2]: '1.11-0.0.dev1022'
In [2]: pywcs.version Out[2]: '1.11-0.0.dev1022'
In [46]: pyfits.version Out[46]: '3.1-0.0.dev1022'
I tried to re-install pyfits.3.0.7, but it still doesn't work.
I apologize for my late response. pywcsgrid2 still does not work?
I just tried
pywcs==1.11-4.8.2 pywcsgrid2==0.1b2 pyfits==3.0.8 matplotlib==1.0.1
and it worked okay. I also tried
pywcs==1.11-4.8.2 pywcsgrid2==1.0-git (current master) pyfits==3.0.8 matplotlib==1.2.x (current master)
it also worked okay. Note that the version of pywcs and pyfits are what are current in the pypi server.
Because of the changes in pyfits & pywcs, it may not work for some versions. But I could not test this with all the combinations. Can you upgrade your installation of pywcs and pyfits and see if it solves the problem?
Thank u for ur reply, and I have figured it out.
I failed to make it work because I installed the 'astrolib' package which include pywcs and pyfits. It works well now with pyfits and pywcs installed respectively. At 2012-07-17 00:43:15,"Jae-Joon Lee" reply@reply.github.com wrote:
I apologize for my late response. pywcsgrid2 still does not work?
I just tried
pywcs==1.11-4.8.2 pywcsgrid2==0.1b2 pyfits==3.0.8 matplotlib==1.0.1
and it worked okay. I also tried
pywcs==1.11-4.8.2 pywcsgrid2==1.0-git (current master) pyfits==3.0.8 matplotlib==1.2.x (current master)
it also worked okay. Note that the version of pywcs and pyfits are what are current in the pypi server.
Because of the changes in pyfits & pywcs, it may not work for some versions. But I could not test this with all the combinations. Can you upgrade your installation of pywcs and pyfits and see if it solves the problem?
Reply to this email directly or view it on GitHub: https://github.com/leejjoon/pywcsgrid2/issues/10#issuecomment-7011585
Hi,
I get an error massage when I try to run some files in the directory examples.
Traceback (most recent call last): File "demo_skyview.py", line 60, in
im2 = ax2[header_radio].imshow_affine(d,
File "/home/tuahlamov/program/python/epd_free-7.2-2-rh5-x86/lib/python2.7/site-packages/pywcsgrid2/axes_wcs.py", line 1310, in getitem
ax = ParasiteAxesSky(self, key)
File "/home/tuahlamov/program/python/epd_free-7.2-2-rh5-x86/lib/python2.7/site-packages/pywcsgrid2/axes_wcs.py", line 989, in init
tr = WcsSky2SkyTransform(src_coord, dest_coord) + \
File "/home/tuahlamov/program/python/epd_free-7.2-2-rh5-x86/lib/python2.7/site-packages/pywcsgrid2/wcs_transforms.py", line 189, in init
self.coord_conv_func = coord_conv(src_coord, dest_coord)
File "/home/tuahlamov/program/python/epd_free-7.2-2-rh5-x86/lib/python2.7/site-packages/pywcsgrid2/wcs_transforms.py", line 10, in coord_conv
return sky2sky(src, dest)
File "/home/tuahlamov/program/python/epd_free-7.2-2-rh5-x86/lib/python2.7/site-packages/pywcsgrid2/wcs_helper.py", line 59, in init
src = coord_system[src.lower()]
AttributeError: 'Header' object has no attribute 'lower'
Could I get your help?