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 directionsfields (
dict
ornumpy.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