pyrfu.pyrf.ts_vec_xyz module#
- pyrfu.pyrf.ts_vec_xyz.ts_vec_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 1st 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:
out – 1st order tensor time series.
- Return type:
DataArray
- Raises:
TypeError – If time or data is not a numpy.ndarray or if attrs is not a dict.
ValueError – If data does not have shape (n, 3) or if time and data do not have the same length.