gstools.tools.vtk_export_unstructured

gstools.tools.vtk_export_unstructured(filename, pos, fields)[source]

Export a field to vtk unstructured grid file.

Parameters:
  • filename (str) – Filename of the file to be saved, including the path. Note that an ending (.vtu) will be added to the name.

  • pos (list) – the position tuple, containing main direction and transversal directions

  • fields (dict or numpy.ndarray) – Unstructured fields to be saved. Either a single numpy array as returned by SRF, or a dictionary of fields with theirs names as keys.