gstools.tools.matrix_anisotropify

gstools.tools.matrix_anisotropify(dim, anis)[source]

Create a stretching matrix to make things anisotrope.

Parameters:
  • dim (int) – spatial dimension

  • anis (list of float) – the anisotropy of length scales along the transversal directions

Returns:

Stretching matrix.

Return type:

numpy.ndarray