pyvista.DEMReader#

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

DEM Reader for .dem files.

Examples

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

Methods

DEMReader.hide_progress()

Hide the progress bar when loading the file.

DEMReader.read()

Read data in file.

DEMReader.show_progress([msg])

Show a progress bar when loading the file.

Attributes

DEMReader.path

Return or set the filename or directory of the reader.

DEMReader.reader

Return the vtk Reader object.