xarray_cube.converter module

xarray_cube.converter.spectralcube2xarray(cube: spectral_cube.spectral_cube.SpectralCube) xarray.core.dataarray.DataArray[source]

Convert a SpectralCube to a DataArray object.

xarray_cube.converter.xarray2spectralcube(da: xarray.core.dataarray.DataArray) spectral_cube.spectral_cube.SpectralCube[source]

Convert a DataArray object to a SpectralCube.