scipp.spatial.affine_transforms#

scipp.spatial.affine_transforms(*, dims, unit=Unit(1), values)#

Initializes affine transformations from the provided affine matrix coefficients.

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

  • unit (Unit | str, default: Unit(1)) – The unit of the affine transformation’s translation component.

  • values (ndarray[Any, dtype[TypeVar(_Float, bound= float64 | float32, covariant=True)]] | Sequence[Any]) – An array of 4x4 matrices of affine coefficients.

Returns:

Variable – An array variable of dtype affine_transform3.