pyvista.NRRDReader#

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

NRRDReader for .nrrd and .nhdr files.

Examples

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

Methods

NRRDReader.hide_progress()

Hide the progress bar when loading the file.

NRRDReader.read()

Read data in file.

NRRDReader.show_progress([msg])

Show a progress bar when loading the file.

Attributes

NRRDReader.path

Return or set the filename or directory of the reader.

NRRDReader.reader

Return the vtk Reader object.