VTI (VTK ImageData) file I/O utilities.
Provides functions to save field data in VTK ImageData format for visualization
with ParaView and other VTK-compatible tools.
| vti.save_vti |
( |
| filename, |
|
|
| fields, |
|
|
| spacing = (1.0, 1.0, 1.0), |
|
|
| origin = (0.0, 0.0, 0.0) ) |
General VTI saver that infers grid dimensions from the input fields.
Parameters
----------
fields : dict { "Name": ndarray }
Arrays should be shape (Nz, Ny, Nx) for scalars
or (Nz, Ny, Nx, 3) for vectors.
spacing : tuple (dz, dy, dx)
origin : tuple (oz, oy, ox)
Definition at line 10 of file vti.py.