pyrfu.pyrf.ts_tensor_xyz module#
- pyrfu.pyrf.ts_tensor_xyz.ts_tensor_xyz(time: ndarray[tuple[int, ...], dtype[datetime64]], data: ndarray[tuple[int, ...], dtype[float32 | float64]], attrs: Mapping[str, object] | None = None) DataArray[source]#
Create a time series containing a 2nd order tensor.
- Parameters:
time (numpy.ndarray) – Array of times.
data (numpy.ndarray) – Data corresponding to the time list.
attrs (dict, Optional) – Attributes of the data list.
- Returns:
2nd order tensor time series.
- Return type:
DataArray
- Raises:
TypeError – If time or data is not a numpy.ndarray.
If time and data do not have the same length.
If data does not have shape (n, 3, 3).