Skip to content

Instantly share code, notes, and snippets.

@cdeil
Created July 25, 2012 11:50
Show Gist options
  • Select an option

  • Save cdeil/3175727 to your computer and use it in GitHub Desktop.

Select an option

Save cdeil/3175727 to your computer and use it in GitHub Desktop.
aplpy pywcs issue for allsky image plot script
(astro_python)lfs1> python allsky.py
/lfs/l1/hess/users/deil/bin/HESSSurveyBin/astro_python/lib/python2.6/site-packages/astropy-0.2.dev1517-py2.6-linux-x86_64.egg/pywcs/__init__.py:30: DeprecationWarning: pywcs is deprecated. Use astropy.wcs instead.
DeprecationWarning)
WARNING: hdu=0 does not contain any data, using hdu=1 instead
ERROR: Exception: An error occured while parsing the WCS information [aplpy.aplpy]
ERROR: Exception: An error occured while parsing the WCS information
Traceback (most recent call last):
File "allsky.py", line 7, in <module>
f = aplpy.FITSFigure('allsky.fits')
File "<string>", line 2, in __init__
File "/lfs/l1/hess/users/deil/bin/HESSSurveyBin/astro_python/lib/python2.6/site-packages/aplpy/decorators.py", line 23, in _auto_refresh
f(*args, **kwargs)
File "/lfs/l1/hess/users/deil/bin/HESSSurveyBin/astro_python/lib/python2.6/site-packages/aplpy/aplpy.py", line 224, in __init__
convention=convention, dimensions=dimensions, slices=slices)
File "/lfs/l1/hess/users/deil/bin/HESSSurveyBin/astro_python/lib/python2.6/site-packages/aplpy/aplpy.py", line 390, in _get_hdu
raise Exception("An error occured while parsing the WCS information")
Exception: An error occured while parsing the WCS information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment