Skip to main content

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

Project description

XTGeo builds linting Codacy Badge codecov Code style: black 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.6+ support (earlier versions with 2.7+ and 3.5+ 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

from xtgeo.surface import RegularSurface

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

print("Mean is {}".format(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.

See HISTORY.md

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

If you're not sure about the file name format, learn more about wheel file names.

xtgeo-2.17.0rc0-cp39-cp39-win_amd64.whl (554.4 kB view details)

Uploaded CPython 3.9Windows x86-64

xtgeo-2.17.0rc0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (556.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64manylinux: glibc 2.5+ x86-64

xtgeo-2.17.0rc0-cp39-cp39-macosx_10_9_x86_64.whl (538.7 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

xtgeo-2.17.0rc0-cp38-cp38-win_amd64.whl (554.3 kB view details)

Uploaded CPython 3.8Windows x86-64

xtgeo-2.17.0rc0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (556.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64manylinux: glibc 2.5+ x86-64

xtgeo-2.17.0rc0-cp38-cp38-macosx_10_9_x86_64.whl (538.9 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

xtgeo-2.17.0rc0-cp37-cp37m-win_amd64.whl (553.6 kB view details)

Uploaded CPython 3.7mWindows x86-64

xtgeo-2.17.0rc0-cp37-cp37m-macosx_10_9_x86_64.whl (537.2 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

xtgeo-2.17.0rc0-cp36-cp36m-win_amd64.whl (553.4 kB view details)

Uploaded CPython 3.6mWindows x86-64

xtgeo-2.17.0rc0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (555.1 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64manylinux: glibc 2.5+ x86-64

xtgeo-2.17.0rc0-cp36-cp36m-macosx_10_9_x86_64.whl (537.3 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file xtgeo-2.17.0rc0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.17.0rc0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 554.4 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for xtgeo-2.17.0rc0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 69f97b383fdb4f7c5d707fa321d026a8f24c5870aca5678bfed640002190e912
MD5 8be23e0578a5944d00883e416a0334f4
BLAKE2b-256 f3ade65ff2c13e471c6e68dc76deede7e10e5e403eac3b9f3ba0c894f833487b

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.0rc0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.17.0rc0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c9271c86eb78bd285cabc2d8bd7625c67ea473b38652663d38aec2acce63a5bc
MD5 8554673511f5276e442cf324bcf7a80b
BLAKE2b-256 26b4d1f2d30f15825a5c7bb4f2b5009031994e2d6cfbdd86ae2a4ec3ebbff96d

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.0rc0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.17.0rc0-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 538.7 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for xtgeo-2.17.0rc0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5363708c7e49e5aa2e190f2e591be41894a1598a91d2876a4949800398e3c38d
MD5 388591b0142de987f8763ab22de2483a
BLAKE2b-256 b9ae6030846c5f8b414e773749bcb9350013f80a9b32c7aed36d1a68c7441b97

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.0rc0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.17.0rc0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 554.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for xtgeo-2.17.0rc0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5cf245ac756dd647f2755e2ce20b57bf8814b4f5c891b4ee4d5dbb6e9179174c
MD5 844ebab726d6a71488b9479124eb8e37
BLAKE2b-256 9c8fc92c514c0ce3ca987d2943064098b255cd17c5b031a7183d50a975606a68

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.0rc0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.17.0rc0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7eb22879e6f8edf253953f97bb2fee0e12bd83800546bccd25abda457b46b84f
MD5 7b4b7d0a5cb456553bf08dca5b08b7a2
BLAKE2b-256 7a5b15481d365a5ff5bab398d8c6c1be3e25bc11eb3e2f02a1f81010603e29b4

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.0rc0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.17.0rc0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 538.9 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for xtgeo-2.17.0rc0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e2ea8a7d7fbc74edfdbdad6c5d3b30f4c47e052e97518eda9e96f31c02fb91fc
MD5 c9f7447bb9d49e2c16bc1e89d3bd8cf5
BLAKE2b-256 9bdadd36b1af69825d3e299d0ddacfb469da88539dffdf48a1c1c8871c47ab94

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.0rc0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.17.0rc0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 553.6 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for xtgeo-2.17.0rc0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 d91515be8866997697af40db7d60608920a942764294c646875d9ac5641a4982
MD5 5b0dc06a38da7efa0f49a59869cff2e8
BLAKE2b-256 b11d3253d8ca139985175eb8c13b5a3c0837c0f66da82be23a8e0552ad93660f

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.0rc0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.17.0rc0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 537.2 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for xtgeo-2.17.0rc0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 caf6ee60fec08065b66448b48711db0db0ffd7e67b7638de884e38c7acc37a28
MD5 4d36f1a1549164159cb74f5eba3512b0
BLAKE2b-256 22a0bfecec5735c669de0fa8208c780c23f8634aeef107153c73e6fc2b10188e

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.0rc0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.17.0rc0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 553.4 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for xtgeo-2.17.0rc0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 cc587a346488d6d00cc92d49f509c4d2d54315cd49db8ae53ed58fb32d8c8042
MD5 b77fd3cce752f1322bbe3ddab2899183
BLAKE2b-256 f7e8200b8c4dba0509ae5159977d9be9badf872d080b885491118095ccc03070

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.0rc0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.17.0rc0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9c04be806f711d4ebb7013a1b6ff1651b3da190859b796e319004f8f4e50eff8
MD5 9f7bf8d61022b0c3cd807c908cac1bf2
BLAKE2b-256 b34535d7e2a8b8568e50598d01b8d5b04e51ab0e36efdf18d1d45ce02f87e199

See more details on using hashes here.

File details

Details for the file xtgeo-2.17.0rc0-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.17.0rc0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 537.3 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for xtgeo-2.17.0rc0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 84e0a62d12d0411e04b97acdf2b93e75ef2dd4f21766fd63e14388e3d01e2cae
MD5 2738c12264a0810cd80799dc60ce0ac1
BLAKE2b-256 c3cfb994f7c2f767bcd17efd28688a291688382d1ac2f4e3aa03f5da78e9ccaa

See more details on using hashes here.

Supported by

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