Collapsing Cubes
Currently, the specutils library does not support loading three dimensional
spectral cubes and manipulating their non-spectral axes, so parsing a spectral
cube to a Spectrum1D object requires some programmatic
manipulation using the spectral-cube library. Below is an example of
loading a spectral cube object, collapsing the cube, and creating a
Spectrum1D object.
Loading a cube
We’ll use the example cube data found in the spectral-cube package, and
load the data from the repository directly into a new SpectralCube
object