fwzi

specviz.analysis.fwzi(cont1_stats, cont2_stats, line)[source]

Compute full width at zero intensity (FWZI) for the given spectrum. Continuum calculations are similar to eq_width().

Parameters:
  • cont2_stats (cont1_stats,) – This is returned by the stats() function.
  • line (Data) – This is returned by the extract() function.
Returns:

  • fwzi_value (float) – FWZI value.
  • w_range (tuple) – Wavelengths used to calculate FWZI.

Examples

>>> d = Spectrum1DRef(...)
>>> cont1 = extract(d, (100, 5000))
>>> cont2 = extract(d, (18000, 20000))
>>> cont1_stats = stats(cont1)
>>> cont2_stats = stats(cont2)
>>> line = extract(d, (15000, 18000))
>>> fwzi_value, w_range = fwzi(cont1_stats, cont2_stats, line)