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-4.3.1-cp312-cp312-win_amd64.whl (747.9 kB view details)

Uploaded CPython 3.12 Windows x86-64

xtgeo-4.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (928.1 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

xtgeo-4.3.1-cp312-cp312-macosx_11_0_arm64.whl (762.3 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

xtgeo-4.3.1-cp312-cp312-macosx_10_13_x86_64.whl (801.5 kB view details)

Uploaded CPython 3.12 macOS 10.13+ x86-64

xtgeo-4.3.1-cp311-cp311-win_amd64.whl (746.6 kB view details)

Uploaded CPython 3.11 Windows x86-64

xtgeo-4.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (928.1 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

xtgeo-4.3.1-cp311-cp311-macosx_11_0_arm64.whl (761.9 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

xtgeo-4.3.1-cp311-cp311-macosx_10_9_x86_64.whl (801.2 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

xtgeo-4.3.1-cp310-cp310-win_amd64.whl (745.0 kB view details)

Uploaded CPython 3.10 Windows x86-64

xtgeo-4.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (926.2 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

xtgeo-4.3.1-cp310-cp310-macosx_11_0_arm64.whl (760.5 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

xtgeo-4.3.1-cp310-cp310-macosx_10_9_x86_64.whl (800.1 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

xtgeo-4.3.1-cp39-cp39-win_amd64.whl (743.6 kB view details)

Uploaded CPython 3.9 Windows x86-64

xtgeo-4.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (926.7 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

xtgeo-4.3.1-cp39-cp39-macosx_10_9_x86_64.whl (800.0 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

xtgeo-4.3.1-cp38-cp38-win_amd64.whl (745.5 kB view details)

Uploaded CPython 3.8 Windows x86-64

xtgeo-4.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (926.2 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

xtgeo-4.3.1-cp38-cp38-macosx_10_9_x86_64.whl (799.8 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file xtgeo-4.3.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.3.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 747.9 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for xtgeo-4.3.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 57ad2a1891c4ff88b0a9a20f4ef6b315347d7e34727c9de41fd47d62a057c977
MD5 1565cc89379118a78ef61d607b4c57a6
BLAKE2b-256 e70413c0faed0f4917bb675cd9474cd12f602095c0db1c281382dccf0f6928d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp312-cp312-win_amd64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

File details

Details for the file xtgeo-4.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 249d33d85efdebc7a9e36dc3dcd45bd3e7c48cf0c6920850f483a8f5f9110c29
MD5 2638a2089cae5a7f2e265cf731fbfe04
BLAKE2b-256 c086ff6bbdad7ff593f83e297bcba7ec021b15da5f59cfcc715ddf8615a918c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

File details

Details for the file xtgeo-4.3.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xtgeo-4.3.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1518f6b192b7278fc16660dc610c71d7ccd2b552ea74ac80faee0ecd765db67
MD5 2ceaef9be790728114902fc336cdbf75
BLAKE2b-256 4c483fbea95bb7e65dcad00e00faf942d66451afa661b4ee8d86f3f6858ced5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

File details

Details for the file xtgeo-4.3.1-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.3.1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 fe017ae65dfd9a0336605393d86b3c2cfc2ec8639ad02c65a99388ec4d828f74
MD5 7a13e6e36f1f52fca5d835f4a5f17ff4
BLAKE2b-256 a1210d39afd099a625cecf977f90ccf6d01a8ee3f4ae68be59786a766e424f44

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp312-cp312-macosx_10_13_x86_64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

File details

Details for the file xtgeo-4.3.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.3.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 746.6 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for xtgeo-4.3.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e87822cfdb36e24cce1507c8da14d4fc5769a7a24047ae18cb3047954adb0928
MD5 403db184fab3c4098b8896df22a4324e
BLAKE2b-256 1246ce1ca3c4c4c9282e37124bd5ae9753108723d7ef9297bad847dc0cdc541b

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp311-cp311-win_amd64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

File details

Details for the file xtgeo-4.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 02ca0d0cd0f2bfe0a7a0b6c872a6a6d68e19e6d049f4113cced05f9cc2f58b01
MD5 0b91b5df967761cfabf043ef4b9df5a2
BLAKE2b-256 6a580eec9e41bc93a6467c5f4efeb5abfa0a6cb97d3b89f1b06a4a9cc99f3438

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

File details

Details for the file xtgeo-4.3.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xtgeo-4.3.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 56837463ec79fa1ef75b939f83b306fa6b575856f27c4745164479deb976d3e0
MD5 952d2e7ef4fcb1d1f5683e478655f933
BLAKE2b-256 f6cb950a16131a8e627cdfd03a52f8e5a5b3744950985f7e5732262d59a51c20

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

File details

Details for the file xtgeo-4.3.1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.3.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e5fba3ec1484a5d92d5a56cd5bf202b8a0c69d9a1d8ce51a616f47a3b3b2efa5
MD5 421648ebfcdeafb584d48299fba3f2e9
BLAKE2b-256 5c64144fbdbbd1ba7fb67ca70a8268daf9641e7c6bd8f06793fcd8c9dd697c6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

File details

Details for the file xtgeo-4.3.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.3.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 745.0 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for xtgeo-4.3.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dae1c7d64570da6973dc3562ac436404338c75836275b66f548bad1766584ab5
MD5 1010477cb743ced71376b26ae7c96abe
BLAKE2b-256 6bddcafd8ba7d0870581371cc5e56cf10c9e47b5a16b267b84949cf82ef457e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp310-cp310-win_amd64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

File details

Details for the file xtgeo-4.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3a5eb0312fc1b6352b4d2c2c686570e64b34d50bbbf00f89b76fedae39d050e0
MD5 c75511a12b3789f01d52ed5013d227f4
BLAKE2b-256 79311e680152073f76efd94831de77bb74294377fa709f3682eb88293d50e4cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

File details

Details for the file xtgeo-4.3.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xtgeo-4.3.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 215caf08e4b67a1ed14b235b1807caf99aaa1155e51aca99261f6c072b57006f
MD5 ef80fca7b608a230052ce075dc8b77dc
BLAKE2b-256 d4dc28d96f8510405f8362a2e644cb93b76cf459047b451a05063fd4954c0e49

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

File details

Details for the file xtgeo-4.3.1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.3.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5cd9f073a21366b658fe445a13696074d7bab1d3793293269f60536b9467bc66
MD5 ec2e1f745eaf5b0b5b30810a4da6a4b6
BLAKE2b-256 1f9b8a67dcda29778150d41746307903f66c2ecf8c1de145daf53c0e2e764977

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp310-cp310-macosx_10_9_x86_64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

File details

Details for the file xtgeo-4.3.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.3.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 743.6 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for xtgeo-4.3.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 95ecdf54e887a5fe39e110c9cd1d821f21966aa3ba3fb14956c8798c4f031e3e
MD5 f719771df4981492ecc32e4c178413e4
BLAKE2b-256 a2eec96417b41a2ec0ae3489531e37bc3a26e64a669e98e28f7854f264fe7c50

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp39-cp39-win_amd64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

File details

Details for the file xtgeo-4.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 934e9ec8713b408b03f21e2d6e2ba073bcde44bd6bc8e011cc1b677c956aa543
MD5 c555d307b534bfb51164dd85ff0ed318
BLAKE2b-256 48154f42c71d7eb0d34bc09e9b1c36a687410afcb9b7fefb4ce4b79e118bf2bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

File details

Details for the file xtgeo-4.3.1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.3.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a3da5612bc7e9ba05306ec4a42493a8829baa6485dc593c9d043591bafa250ac
MD5 07d96544d316cd08f869f38b04e83eb2
BLAKE2b-256 780eccce04a1c9f9ab86da4c494131532c2828519b55e62cef7c04bdb9c33260

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp39-cp39-macosx_10_9_x86_64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

File details

Details for the file xtgeo-4.3.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: xtgeo-4.3.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 745.5 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for xtgeo-4.3.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 18438c13f79bb1ee31393abd32c1d142a66972efb9052785fd6d8e8614473386
MD5 ad9056446a127a62860c0609e1071a4c
BLAKE2b-256 f0f7f16de6de9c335e9fb448e838683e5242adb0cecd38764dc7bfe7c5fd01d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp38-cp38-win_amd64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

File details

Details for the file xtgeo-4.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5abb04a1ba711fc74db28127c4e849932c908c51cc73562a4a6b6428920ecbcc
MD5 1c87607ee600e6beeac07328f7cf933f
BLAKE2b-256 9f963ce673187e85a71ccc6f662c2f13c482b94b979e37b43ffa89b3da5b721d

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

File details

Details for the file xtgeo-4.3.1-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-4.3.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d80cd8c51776d9311a5cc40d3e6b75ecdb28c7937b9c4f09496a7377b2149700
MD5 828ec8097ed805d00de587a440305a99
BLAKE2b-256 dd06e542568858f3ae394cf78baef6612c212c432611cb041430c0c2d442bb7e

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtgeo-4.3.1-cp38-cp38-macosx_10_9_x86_64.whl:

Publisher: publish.yml on equinor/xtgeo

Attestations:

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