create_spectral_array# madcubapy.utils.create_spectral_array(nchan, cdelt, crpix, crval)[source]# Create a spectral axis array. Parameters: nchanintNumber of channels in the spectrum. cdeltfloat or QuantityWidth of a channel. crpixfloatReference channel of the spectrum. crvalfloatValue of the reference channel. Returns: spectral_arrayndarray or QuantityReturned spectral axis array with units if cdelt is a quantity.