equivalent_width

specutils.analysis.equivalent_width(spectrum)[source]

Does a naive equivalent width measures on the spectrum object.

Parameters:

spectrum : Spectrum1D

The spectrum object overwhich the equivalent width will be calculated.

Returns:

ew : float

Equivalent width calculation.

TODO: what frame of reference do you want the spectral_axis to be in ???