parse_row_spectral_axis#

madcubapy.io.parse_row_spectral_axis(table_row)[source]#

Generate an array for the spectral axis of a spectrum inside a SpectraContainer.

Parameters:
table_rowastropy.table.Row

Row of a SpectraContainer’s bintable. This is the data for a spectrum inside a MADCUBA FITS file.

Returns:
spectral_arrayndarray or Quantity

Returned spectral axis array with units if correctly parsed from the FITS file.