HDRReader#
- class HDRReader(*args, **kwargs)[source]#
HDRReaderfor .hdr files.Wraps vtkHDRReader.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> from pyvista import examples
>>> from pathlib import Path
>>> filename = examples.download_parched_canal_4k(load=False)
>>> Path(filename).name
'parched_canal_4k.hdr'
>>> reader = pv.get_reader(filename)
>>> mesh = reader.read()
>>> mesh
ImageData (...)
N Cells: 8382465
N Points: 8388608
X Bounds: 0.000e+00, 4.095e+03
Y Bounds: 0.000e+00, 2.047e+03
Z Bounds: 0.000e+00, 0.000e+00
Dimensions: 4096, 2048, 1
Spacing: 1.000e+00, 1.000e+00, 1.000e+00
N Arrays: 1
Inheritance#
Inherited members are documented on BaseReader, _FileIOBase.
See them all under Inherited Attributes and Inherited Methods.
Inherited Attributes#
Return mapping from regex pattern matching associated with this class. |
|
Return the file extensions associated with this class. |
|
Return or set the filename or directory of the reader. |
|
Return the vtk Reader object. |
Inherited Methods#
Hide the progress bar when loading the file. |
|
Read data in file. |
|
Show a progress bar when loading the file. |