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 (Union[ndarray, list]) – A list or NumPy array of 3-vectors, each corresponding to scaling coefficients in the x, y and z directions respectively.

Returns:

An array variable of dtype linear_transform3.