-
Notifications
You must be signed in to change notification settings - Fork 13
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
Spectrum1D translator cannot handle spectral_axis in 3D cube #60
Comments
If only specutils did not mess with the axis order 😆 One solution might be to add a model to the GWCS to reorder the axes, though @nden will have to give advice on this as I'm not familiar enough with GWCS. |
Here's the relevant discussion in gwcs: spacetelescope/gwcs#269 |
@astrofrog I have a draft PR (#61) open to fix this but it needs more work. I'm going to tag you in some questions there in a moment. |
Also might be relevant: |
I am not sure what is the proper fix. I don't want to spend time hacking it only to be told it is wrong. Please advise. Thanks!
This is because when I pass
spectral_axis
intoSpectrum1D
, it creates a GWCS using https://github.com/astropy/specutils/blob/08de408d18d709a857b67e10ca2752d548eb3100/specutils/utils/wcs_utils.py#L185 and GWCS does not seem to understandswapaxes
.cc @astrofrog @rosteen
This blocks spacetelescope/jdaviz#1040
Also see spacetelescope/gwcs#397
The text was updated successfully, but these errors were encountered: