gstools.tools.matrix_derotate

gstools.tools.matrix_derotate(dim, angles)[source]

Create a matrix to derotate points to the initial coordinate-system.

Parameters
  • dim (int) – spatial dimension

  • angles (float or list) – the rotation angles of the target coordinate-system

Returns

Rotation matrix.

Return type

numpy.ndarray