-
Notifications
You must be signed in to change notification settings - Fork 77
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
EXP: Support JWST ASDF-in-FITS in reference viewer #781
Conversation
@@ -226,15 +226,18 @@ def datapt_to_system(self, datapt, system=None, coords='data', | |||
""" | |||
if self.coordsys == 'raw': | |||
raise common.WCSError("No usable WCS") | |||
elif self.coordsys == 'world': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is necessary for WCSAxes
plugin to work for GWCS generated by JWST data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ginga/AstroImage.py
Outdated
except Exception: | ||
tb_str = "Traceback information unavailable." | ||
self.logger.error(tb_str) | ||
self.logger.warning(tb_str) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this was a leftover from my attempt to silence the bad WCS calculations, as GWCS returns nan
for RA and Dec for pixels outside of image bounds. It didn't really work as I thought it would anyway, so I will go ahead and revert this change here. Thanks for catching it.
Generalize data and WCS lookup in ASDF more. [skip appveyor]
43de0bd
to
281c852
Compare
@ejeschke , given your approval above, I am going to take the liberty to merge this in. I have removed the unnecessary changing from |
Need to discuss how to best generalize the ASDF loading in reference viewer. This might change depending on how #764 goes (currently does not depend on it).Will just roll with this and follow up in a separate PR after #764 is rebased on this and merged.These are the changes necessary for Python in Astronomy 2019 demo using Ginga standalone GUI (reference viewer) to view ASDF-in-FITS data file generated by JWST. Follow up of #719. Also see spacetelescope/stginga#155
cc @jdavies-st (in case you are interested), @hcferguson , and @eteq
Figure out why compass inPan
appears weird for the ASDF extension, but not FITS. Maybe spacetelescope/gwcs#241 ?Future work:
NaN
, but instead silently format the string to something equivalent (the default "BAD WCS" is probably a little misleading in this case). See "BAD WCS" error is too verbose #782