get_cube_slab#

mufasa.visualization.spec_viz.get_cube_slab(cube, vZoomLims=(-5, 20))[source]#

Extract a spectral slab from the cube over the specified velocity range.

Parameters:
  • cube (SpectralCube) – The spectral cube to extract the slab from.

  • vZoomLims (tuple of float, optional) – The velocity limits for the slab, in km/s. Default is (-5, 20).

Returns:

  • cube_s (SpectralCube) – The extracted spectral slab.

  • xarr (SpectroscopicAxis) – The corresponding spectroscopic axis for the slab.