pyrfu.pyrf.ts_spectr module#
- pyrfu.pyrf.ts_spectr.ts_spectr(time: ndarray[tuple[int, ...], dtype[datetime64]], energy: ndarray[tuple[int, ...], dtype[float32 | float64]], data: ndarray[tuple[int, ...], dtype[float32 | float64]], comp_name: str | None = None, attrs: Mapping[str, object] | None = None) DataArray[source]#
Create a time series containing a spectrum
- Parameters:
time (numpy.ndarray) – Array of times.
energy (numpy.ndarray) – Y value of the spectrum (energies, frequencies, etc.)
data (numpy.ndarray) – Data of the spectrum.
attrs (dict, Optional) – Attributes of the data list.
- Returns:
out – Time series of a spectrum
- Return type: