gstools.tools.to_vtk_structured

gstools.tools.to_vtk_structured(pos, fields)[source]

Create a vtk structured rectilinear grid from a field.

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

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

Returns:

A PyVista rectilinear grid of the structured field data. Data arrays live on the point data of this PyVista dataset.

Return type:

pyvista.RectilinearGrid