Avoid duplicating code in _new_spectrum_with
Avoid duplicating code in _new_spectrum_with

keflavich/spectral-cube,e-koch/spectral-cube,jzuhone/spectral-cube,low-sky/spectral-cube,radio-astro-tools/spectral-cube