Skip to content

'Header' object has no attribute 'wcs' #19

@mcclearyj

Description

@mcclearyj

Hello,

First, thank you so much for publishing this module, it's a great service to the community. I am getting errors in the very first step of creating the initial pywcsgrid2.Axes class.

f=fits.open("r_coadd_lensing2.fits")
h, d = f[0].header, f[0].data
pywcsgrid2.subplot(111, header=h)

returns the following error:
`/Users/jmcclear/anaconda/lib/python2.7/site-packages/pywcsgrid2/wcs_helper.pyc in _get_naxis(self)
262
263 def _get_naxis(self):
--> 264 return self._pywcs.wcs.naxis
265
266 naxis = property(_get_naxis)

AttributeError: 'Header' object has no attribute 'wcs'
`

I have tried this with several different fits files to no avail. I'm not sure what could be going on, because DS9 has no trouble opening the files' WCS systems. Here is an example of what the headers look like.
signal_header.txt

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions