MultiSpectrum

A wrapper for multiple spectra, really just for the plotting convenience

 

__init__(self, spectra: 'Iterable[BaseSpectrum]', **meta): 
  • frequencies: np.ndarray

    frequency list

  • intensities: np.ndarray

    intensity list

  • meta: Any

    metadata

 

__getitem__(self, item): 

 

frequency_filter(self, freq_min, freq_max): 

Filters by frequencies >= freq_min and <= freq_max

  • freq_min: float

    min frequency

  • freq_max: float

    max frequency

  • :returns: MultiSpectrum

    s u b s p e c t r u m

 

intensity_filter(self, int_min, int_max): 

Filters by intensities >= int_min and <= int_max

  • int_min: float

    min intensity

  • int_max: float

    max intensity

  • :returns: BaseSpectrum

    s u b s p e c t r u m

 

plot(self, figure=None, **opts): 

A just plots all the spectra on the same figure

  • opts: Any

    plotting options to be fed through to whatever the plotting function uses

  • :returns: _

Feedback

Examples

Templates

Documentation