pyvista.HDRReader#

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

HDRReader for .hdr files.

Examples

>>> import pyvista
>>> from pyvista import examples
>>> filename = examples.download_parched_canal_4k(load=False)
>>> filename.split("/")[-1]  # omit the path
'parched_canal_4k.hdr'
>>> reader = pyvista.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot()
../../../_images/pyvista-HDRReader-1_00_00.png

Methods

HDRReader.hide_progress()

Hide the progress bar when loading the file.

HDRReader.read()

Read data in file.

HDRReader.show_progress([msg])

Show a progress bar when loading the file.

Attributes

HDRReader.path

Return or set the filename or directory of the reader.

HDRReader.reader

Return the vtk Reader object.