pyvista.HDFReader#

class HDFReader(*args, **kwargs)[source]#

HDFReader for .hdf files.

Examples

>>> import pyvista
>>> from pyvista import examples
>>> filename = examples.download_can_crushed_hdf(load=False)
>>> filename.split("/")[-1]  # omit the path
'can-vtu.hdf'
>>> reader = pyvista.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot()
../../../_images/pyvista-HDFReader-1_00_00.png

Methods

HDFReader.hide_progress()

Hide the progress bar when loading the file.

HDFReader.read()

Read data in file.

HDFReader.show_progress([msg])

Show a progress bar when loading the file.

Attributes

HDFReader.path

Return or set the filename or directory of the reader.

HDFReader.reader

Return the vtk Reader object.