Skip to content

INTERA-Inc/pyvista-resqml

Repository files navigation

PyVista RESQML

License Stars Pyversions Version Downloads Code style: black

A PyVista extension for seamless reading and writing of RESQML data (EPC files).

Features

  • Read RESQML EPC files: Load subsurface models and associated metadata directly into Python.

  • Write RESQML EPC files: Export your processed or generated models back to RESQML format for interoperability.

  • PyVista Integration: Visualize and manipulate geological and reservoir models using PyVista’s powerful 3D plotting capabilities.

  • Powered by resqpy: Leverages the robust RESQML handling capabilities of resqpy for reliable data parsing and writing.

Installation

The recommended way to install pyvista-resqml and all its dependencies is through the Python Package Index:

pip install pyvista-resqml --user

Otherwise, clone and extract the package, then run from the package location:

pip install .[full] --user

To test the integrity of the installed package, check out this repository and run:

pytest

Examples

Convert a GRDECL file to RESQML

import pyvista as pv
import pvresqml

# Load a mesh (e.g., from GRDECL)
mesh = pv.read("mesh.GRDECL")

# Save to a RESQML file
pvresqml.save("mesh.epc", mesh)

# Read a RESQML file
mesh_epc = pvresqml.read("mesh.epc")

mesh

Acknowledgements

This project is supported by Nagra (National Cooperative for the Disposal of Radioactive Waste), Switzerland.

About

RESQML extension for PyVista

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages