Skip to main content

XTGeo is a Python library for 3D grids, surfaces, wells, etc

Project description

XTGeo builds linting codecov Ruff PyPI version Documentation Status PyPI - Python Version PyPI - License

Introduction

XTGeo is a LGPL licensed Python library with C backend to support manipulation of (oil industry) subsurface reservoir modelling. Typical users are geoscientist and reservoir engineers working with reservoir modelling, in relation with RMS. XTGeo is developed in Equinor.

Detailed documentation for XTGeo at Read the Docs

Feature summary

  • Python 3.8+ support
  • Focus on high speed, using numpy and pandas with C backend
  • Regular surfaces, i.e. 2D maps with regular sampling and rotation
  • 3D grids (corner-point), supporting several formats such as RMS and Eclipse
  • Support of seismic cubes, using segyio as backend for SEGY format
  • Support of well data, line and polygons (still somewhat immature)
  • Operations between the data types listed above; e.g. slice a surface with a seismic cube
  • Optional integration with ROXAR API python for several data types (see note later)
  • Linux is main development platform, but Windows and MacOS (64 bit) are supported and PYPI wheels for all three platforms are provided.

Installation

For Linux, Windows and MacOS 64bit, PYPI installation is enabled:

pip install xtgeo

For detailed installation instructions (implies C compiling), see the documentation.

Getting started

import xtgeo

# create an instance of a surface, read from file
mysurf = xtgeo.surface_from_file("myfile.gri")  # Irap binary as default

print(f"Mean is {mysurf.values.mean()}")

# change date so all values less than 2000 becomes 2000
# The values attribute gives the Numpy array

mysurface.values[mysurface.values < 2000] = 2000

# export the modified surface:
mysurface.to_file("newfile.gri")

Note on RMS Roxar API integration

The following applies to the part of the XTGeo API that is connected to Roxar API (RMS):

RMS is neither an open source software nor a free software and any use of it needs a software license agreement in place.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

xtgeo-3.8.0-cp312-cp312-win_amd64.whl (742.0 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

xtgeo-3.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (854.7 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

xtgeo-3.8.0-cp312-cp312-macosx_11_0_arm64.whl (765.1 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

xtgeo-3.8.0-cp312-cp312-macosx_10_9_x86_64.whl (805.3 kB view hashes)

Uploaded CPython 3.12 macOS 10.9+ x86-64

xtgeo-3.8.0-cp311-cp311-win_amd64.whl (742.5 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

xtgeo-3.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (853.6 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

xtgeo-3.8.0-cp311-cp311-macosx_11_0_arm64.whl (765.8 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

xtgeo-3.8.0-cp311-cp311-macosx_10_9_x86_64.whl (805.8 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

xtgeo-3.8.0-cp310-cp310-win_amd64.whl (741.3 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

xtgeo-3.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (851.7 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

xtgeo-3.8.0-cp310-cp310-macosx_11_0_arm64.whl (764.5 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

xtgeo-3.8.0-cp310-cp310-macosx_10_9_x86_64.whl (804.3 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

xtgeo-3.8.0-cp39-cp39-win_amd64.whl (740.7 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

xtgeo-3.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (851.5 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

xtgeo-3.8.0-cp39-cp39-macosx_10_9_x86_64.whl (804.4 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

xtgeo-3.8.0-cp38-cp38-win_amd64.whl (741.5 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

xtgeo-3.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (851.4 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

xtgeo-3.8.0-cp38-cp38-macosx_11_0_arm64.whl (764.4 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

xtgeo-3.8.0-cp38-cp38-macosx_10_9_x86_64.whl (804.3 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page