You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that I did some work already in glue-astronomy to update the Spectrum1D translator, but @orifox found that the current iteration only works if a full WCS has been specified for the Spectrum1D, not if you instantiate the Spectrum1D by giving it only a spectral_axis. There are (at least) two problems due to the fact that in this case, Spectrum1D creates a SpectralGWCS lookup table based on the spectral_axis on initialization:
The glue-astronomy translator currently uses wcs.swap_axes, which doesn't exist for a GWCS.
If the above is remedied (I tried adding an isinstance check), glue core then throws an error where it looks for axis names in the Data object coords, and fails on an IndexError because it's looking for three axis names and there is only one axis in the GWCS.
EDIT: It's unclear to me if this is somehow caused by needing to convert into a SpectralCube and would thus be resolved by #547. Fingers crossed.
Description
Get glue-astronomy translators to work with latest Spectrum1D and/or NDCube.
Related to PR #547
Additional context
The text was updated successfully, but these errors were encountered: