scipp.spatial.scalings_from_vectors#

scipp.spatial.scalings_from_vectors(*, dims, values)#

Creates scaling transformations from corresponding to the provided 3-vectors.

Parameters:
  • dims (Sequence[str]) – The dimensions of the variable.

  • values (ndarray[Any, dtype[TypeVar(_Float, bound= float64 | float32, covariant=True)]] | Sequence[Any]) – A list or NumPy array of 3-vectors, each corresponding to scaling coefficients in the x, y and z directions respectively.

Returns:

Variable – An array variable of dtype linear_transform3.