As per title, it looks like that the dimensions of the WCS of Spectrum1D objects are not parsed correctly into the NDCube data class, as shown by the following snippet:
import numpy as np
import astropy.units as u
from specutils import Spectrum1D
from astropy.modeling import models
wl = np.linspace(4000,12000,128)*u.angstrom
flux_1 = models.BlackBody(temperature=5800*u.K)(wl)
flux_2 = models.BlackBody(temperature=4800*u.K)(wl)
flux_3 = models.BlackBody(temperature=6800*u.K)(wl)
flux = np.array([flux_1, flux_2, flux_3])*flux_1.unit
spec = Spectrum1D(spectral_axis=wl, flux=flux)
print(spec.wcs.pixel_n_dim)
which returns
while it should be 3.
As per title, it looks like that the dimensions of the WCS of Spectrum1D objects are not parsed correctly into the NDCube data class, as shown by the following snippet:
which returns
while it should be 3.