pyvista.read_grdecl

目次

pyvista.read_grdecl#

read_grdecl(
filename: str | Path,
elevation: bool = True,
other_keywords: Sequence[str] | None = None,
) ExplicitStructuredGrid[ソース]#

Read a GRDECL file ('.GRDECL').

パラメータ:
filenamestr | Path

The path to the GRDECL file to read.

elevationbool, default: True

If True, convert depths to elevations and flip grid along Z axis.

other_keywordssequence[str], optional

Additional keywords to read that are ignored by default.

戻り値:
pyvista.ExplicitStructuredGrid

Output explicit structured grid.

Read a '.GRDECL' file.

>>> import pyvista as pv
>>> grid = pv.read('file.GRDECL')  

Unused keywords contained in the file are stored in pyvista.DataObject.user_dict:

>>> grid.user_dict  
{"MAPUNITS": ..., "GRIDUNIT": ..., ...}