read_vtk
builtin
¶
read_vtk(
path, *, point_data=False, nodata=None, length_unit=None
)
Reads a VTK XML .vtp, .vtu, .vti, .vtr or .vts file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str or Path
|
The file, in ASCII, binary or appended encoding, zlib-compressed or not. |
required |
point_data
|
bool
|
Return the points (grid nodes) with the point data as a PointSet, whatever the cells. |
False
|
nodata
|
sequence of float
|
Values read as null, default -99, -999 and 1e21. NaN is always null. |
None
|
length_unit
|
str
|
Unit of the coordinates. |
None
|
Returns:
| Type | Description |
|---|---|
(PointSet, Polylines, Mesh or BlockModel)
|
In Grid files and hexahedra give a BlockModel of the cell data when the
cells are equal boxes on a lattice, rotated by the grid axes (the
Arrays with several components become |
Used in