Readers

PyVista provides class based readers to have more control over reading data files. These classes allows for more fine-grained control over reading datasets from files. See pyvista.get_reader() for a list of file types supported.

Also, see Load data using a Reader for a full example using reader classes.

get_reader(filename)

Get a reader for fine-grained control of reading data files.

Reader Classes

XMLImageDataReader(filename)

XML Image Data Reader for .vti files.

XMLPImageDataReader(filename)

Parallel XML Image Data Reader for .pvti files.

XMLRectilinearGridReader(filename)

XML RectilinearGrid Reader for .vtr files.

XMLPRectilinearGridReader(filename)

Parallel XML RectilinearGrid Reader for .pvtr files.

XMLUnstructuredGridReader(filename)

XML UnstructuredGrid Reader for .vtu files.

XMLPUnstructuredGridReader(filename)

Parallel XML UnstructuredGrid Reader for .pvtu files.

XMLPolyDataReader(filename)

XML PolyData Reader for .vtp files.

XMLStructuredGridReader(filename)

XML StructuredGrid Reader for .vts files.

XMLMultiBlockDataReader(filename)

XML MultiBlock Data Reader for .vtm or .vtmb files.

PVDReader(filename)

PVD Reader for .pvd files.

EnSightReader(filename)

EnSight Reader for .case files.

OpenFOAMReader(filename)

OpenFOAM Reader for .foam files.

PLYReader(filename)

PLY Reader for reading .ply files.

OBJReader(filename)

OBJ Reader for reading .obj files.

STLReader(filename)

STL Reader for .stl files.

VTKDataSetReader(filename)

VTK Data Set Reader for .vtk files.

VTKPDataSetReader(filename)

Parallel VTK Data Set Reader for .pvtk files.

BYUReader(filename)

BYU Reader for .g files.

FacetReader(filename)

Facet Reader for .facet files.

Plot3DMetaReader(filename)

Plot3DMeta Reader for .p3d files.

BinaryMarchingCubesReader(filename)

BinaryMarchingCubes Reader for .tri files.

Inherited Classes

The pyvista.BaseReader is inherited by all subreaders. It has the basic functionality of all readers to set filename and read the data.

The PointCellDataSelection is inherited by readers that support inspecting and setting data related to point and cell arrays.

The TimeReader is inherited by readers that support inspecting and setting time or iterations for reading.

BaseReader(filename)

The Base Reader class.

PointCellDataSelection()

Mixin for readers that support data array selections.

TimeReader()

Abstract class for readers supporting time.