-
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
Implement basic interface to ASDF and GWCS #719
Conversation
Nice sample image, @nden! |
@ejeschke I already added them in second commit and gave you credit. Did I miss something? I still need to make sure the GWCS methods are working as expected though. |
I just sent you some changes to them, that are needed. |
Okay @ejeschke , they are added as fourth commit. |
This comment has been minimized.
This comment has been minimized.
I think right now it only works with the ASDF embedded in FITS. I just tested in a new environment with the latest |
@pllim, just checked the size of the |
How was that particular ASDF file generated? |
@nden gave it to us. |
@ejeschke , ah, you might be right. Perhaps the solution here is to add some logic to handle empty or non-image ASDF data. FWIW I did see WCS values changing as I mouse around the empty display. |
aed4d81
to
de76b09
Compare
I got ASDF and ASDF-in-FITS to load in reference viewer and the example viewer. And gave a demo of those features at Astropy Coordination Meeting 2018. 😸 |
This comment has been minimized.
This comment has been minimized.
@pllim, can you elaborate on why the named plugins don't work? Any insights? |
And can you put a cube file with the problems in the Box ginga folder? |
@ejeschke , I am not sure. I have been staring at this for a few days and I need a break. There were a string of traceback and I can make little sense of without code diving. I guess it is the subtleties in the ways that WCS methods are called in different places? For the cube, it is ngc6946.fits that you gave me. |
@pllim, compass and |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
That makes sense. Can you rebase this and I'll take a shot at it. |
I am not sure how to resolve the conflict in Control.py after your refactoring. Is it okay to revert your changes just where the conflict is and then you can fix it properly? |
Let me try to resolve it via a PR on your PR. |
Enable loading ASDF-in-FITS via MultiDim. Fix GWCS display on Cursor plugin. Support loading pure ASDF file in reference viewer. No point calculating len(ndims) so many times. Added stop-gap load_header and removed unused _deg from astropy_ape14 Fill in astropy_ape14 methods and add tests. Remove dead code from astropy WCS. Fix div by zero error on MultiDim. Apply fps calc from @ejeschke.
@pllim, getting the following warning: |
If checks pass, can you try this out @pllim and see if you agree/grok the changes I pushed? |
I think this can be improved a bit, but I suggest doing it in another PR. |
@ejeschke , thank you very much for resolving the conflict so gracefully. LGTM! Do you want to take the honor/blame of merging this when tests pass? 😉
Don't worry about that one. |
@pllim, FFTM 😜 |
FFTM==Feel Free To Merge |
This might still need unreleased ASDF and GWCS. It definitely requires Astropy 3.1 or later. But it does work, I propose that we merge this at its current state and improve it in future PRs, as needed. (Limited support is better than zero support?)
Fix #327
cc @hcferguson , @nden , and @drdavella
TODO:
Open Questions:
AstroImage.load_asdf()
-- How to let user specify where data and WCS are in ASDF?Known issues (future PRs):
Compass
does not work.WCSAxes
does not work. But this could be an issue with the test image rather than the plugin; need a better dataset to be sure.Data cube not fully supported.LineProfile
does not fully work.