Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TweakReg crashes when updatehdr is set True #143

Open
sphy2016 opened this issue Aug 20, 2020 · 1 comment
Open

TweakReg crashes when updatehdr is set True #143

sphy2016 opened this issue Aug 20, 2020 · 1 comment

Comments

@sphy2016
Copy link

I was try to align a group of drizzled images to GAIA catalog. When I set the updatehdr to true to update the header, the program failed and return a error.

Traceback (most recent call last):
File "/Users/apple/opt/anaconda3/envs/astroconda/lib/python3.6/site-packages/drizzlepac/util.py", line 225, in wrapper
result = func(*args, **kwargs)
File "/Users/apple/opt/anaconda3/envs/astroconda/lib/python3.6/site-packages/drizzlepac/tweakreg.py", line 586, in run
reusename=uphdr_par['reusename'])
File "/Users/apple/opt/anaconda3/envs/astroconda/lib/python3.6/site-packages/drizzlepac/imgclasses.py", line 797, in updateHeader
wcscorr.init_wcscorr(self._im.hdu)
File "/Users/apple/opt/anaconda3/envs/astroconda/lib/python3.6/site-packages/stwcs/wcsutil/wcscorr.py", line 113, in init_wcscorr
wcsext.data.field(key)[rownum] = wcshdr[(key + wkey)[:8]]
File "/Users/apple/opt/anaconda3/envs/astroconda/lib/python3.6/site-packages/astropy/io/fits/header.py", line 148, in getitem
card = self._cards[self._cardindex(key)]
File "/Users/apple/opt/anaconda3/envs/astroconda/lib/python3.6/site-packages/astropy/io/fits/header.py", line 1708, in _cardindex
raise KeyError(f"Keyword {keyword!r} not found.")
KeyError: "Keyword 'CTYPE1O' not found."

@catherine-martlin
Copy link
Contributor

Hello @sphy2016 - thanks for reporting this! Do you remember which notebook you were working with when this occurred?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants