GRDECLReader#

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

GRDECLReader for .grdecl files.

Uses read_grdecl() internally.

Added in version 0.49.

Parameters:
pathstr | Path

Path to the GRDECL file.

Examples#

Download Python source code | Download Jupyter notebook

>>> import pyvista as pv
>>> reader = pv.get_reader('file.GRDECL')
>>> reader.elevation = False
>>> mesh = reader.read()

Inheritance#

Inherited members are documented on BaseReader, _FileIOBase.

See them all under Inherited Attributes and Inherited Methods.

Attributes#

GRDECLReader.elevation

Convert depths to elevations and flip grid along Z axis.

GRDECLReader.other_keywords

Additional keywords to read.

Inherited Attributes#

_FileIOBase.extension_patterns

Return mapping from regex pattern matching associated with this class.

_FileIOBase.extensions

Return the file extensions associated with this class.

BaseReader.path

Return or set the filename or directory of the reader.

BaseReader.reader

Return the vtk Reader object.

Inherited Methods#

BaseReader.hide_progress

Hide the progress bar when loading the file.

BaseReader.read

Read data in file.

BaseReader.show_progress

Show a progress bar when loading the file.