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.20.1-cp310-cp310-win_amd64.whl (570.2 kB view details)

Uploaded CPython 3.10Windows x86-64

xtgeo-2.20.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (576.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

xtgeo-2.20.1-cp310-cp310-macosx_10_9_x86_64.whl (549.8 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

xtgeo-2.20.1-cp39-cp39-win_amd64.whl (569.8 kB view details)

Uploaded CPython 3.9Windows x86-64

xtgeo-2.20.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (576.8 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

xtgeo-2.20.1-cp39-cp39-macosx_10_9_x86_64.whl (549.8 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

xtgeo-2.20.1-cp38-cp38-win_amd64.whl (569.6 kB view details)

Uploaded CPython 3.8Windows x86-64

xtgeo-2.20.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (577.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

xtgeo-2.20.1-cp38-cp38-macosx_10_9_x86_64.whl (550.0 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

xtgeo-2.20.1-cp37-cp37m-win_amd64.whl (569.3 kB view details)

Uploaded CPython 3.7mWindows x86-64

xtgeo-2.20.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (575.4 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

xtgeo-2.20.1-cp37-cp37m-macosx_10_9_x86_64.whl (548.3 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

xtgeo-2.20.1-cp36-cp36m-win_amd64.whl (569.1 kB view details)

Uploaded CPython 3.6mWindows x86-64

xtgeo-2.20.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (575.4 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64

xtgeo-2.20.1-cp36-cp36m-macosx_10_9_x86_64.whl (548.3 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: xtgeo-2.20.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 570.2 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for xtgeo-2.20.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6e2365cce7135d1fccdf891927484d5a568c25c01eea605caa7ada9f92b58f40
MD5 fdada436ac4fcd04d7935550daa6f0eb
BLAKE2b-256 7ca42173de222947bd10570b824f4e66dc51ff13b7d521facc135daeba308ae9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.20.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 278554584cfb03a7b12b1d3fc7e31cc589395bf35a29ca2bcb73c04eec85f6a7
MD5 18204dd274eeb8998baeaa366f3c254a
BLAKE2b-256 4fa5f5789decae48efe2cf3916e76d6d48d85750adc9606402461b178f574f48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.20.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7e434da9838b33caee36563383daa3ee4427675c2b7db64d3cbd34c8a7514d38
MD5 7fdac3fb865fdd0429788ed2a31e5c64
BLAKE2b-256 ea585aa23edaf9a8a6e318931b922b6c5e4160dd5811b1543e07be4df6b06342

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xtgeo-2.20.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 569.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for xtgeo-2.20.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 94dcadd3f001a08be79aad0d28b8ca14394eb2b05066d0bff9f36b32d52798ed
MD5 2b1d826a09ddd148ca0ec902e81ba122
BLAKE2b-256 d9fb310b96e001258f715c7b285f9df365273e2d8cb534e2e46862ad058033d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.20.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 03a3b39c026bfcc768b92060ec1d89fb4b3d3b98ebc96fdb10554e76d13d7828
MD5 23b553ee29894ce28322754800a5e212
BLAKE2b-256 f0862b761bb137565008148b09f355fbfbf4264e09ced3c241c486157ac8bf38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.20.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a825140b04778986da8ddc05ddfa8f9c5b6e6b6ec05c1bc40650a38925e61621
MD5 4faaf0ef4d6ff71c0eb0a8823d478731
BLAKE2b-256 49f26361d88991db6e25664fc7370cfc05f0b6b297c05c08863791157250eb53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xtgeo-2.20.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 569.6 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for xtgeo-2.20.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 eef4385fd68f56511738658cc0b4c1ea927b7775ffa04488e6ec3c3f0ca67ee0
MD5 796249618c0f3805a906dff98b0865f1
BLAKE2b-256 02caa026d775bd9f06fa117ec1e950b8d53e1cb46eceb6a3ca620e3c55645935

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.20.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fc03f369fd78408a239b13da01738e931a7f22a4be347c9469727e6359dfee8e
MD5 ec49906f87412f0513e6addaf0e0f9d3
BLAKE2b-256 efd62763edfb49d180cf7cca3918948d02862b8b287978ebd6ca6a890bac0e1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xtgeo-2.20.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 21e0ed8fcf64debef218f04ccace0a50b162dc4fa83b5968163247783c88a7c8
MD5 df412f9e9c5156ea4ae760f81d83e4bd
BLAKE2b-256 5d87d1228ec7540aaba4ca7008b8e0069bd4de78a8705a93957a08fc11190e98

See more details on using hashes here.

File details

Details for the file xtgeo-2.20.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.20.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 569.3 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for xtgeo-2.20.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 b0a1f0c5965c804ccad8ae1fffbe0f3f8ba1d16db0e0317d67014dcda831dd9f
MD5 af742b24130a19e44e14956a8a5fe812
BLAKE2b-256 4ed6d38f026db7b30ca8e623aa307c35bfa487480cf0a87dede9a685d45987a1

See more details on using hashes here.

File details

Details for the file xtgeo-2.20.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.20.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eba20b22fc5e1801e6a9089998cce5c3e1883c19d6e9632e3208f2ff19767c7d
MD5 9888c816867438af75538122d7d18af5
BLAKE2b-256 dfb40d288b1eec9d72b79a12462cb691c3270c2a829e1be9b42e955da85a6174

See more details on using hashes here.

File details

Details for the file xtgeo-2.20.1-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.20.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1f49152a293f28665f49311b12366bfc3933213bc19a9c845a2c60f9d494e26e
MD5 b7681c6bf9f3dc5c1503de48d676900c
BLAKE2b-256 6680b2ab5b7a8ea5beafccfed4285166e4332ec097c3d028eb95457db78fdfde

See more details on using hashes here.

File details

Details for the file xtgeo-2.20.1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: xtgeo-2.20.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 569.1 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for xtgeo-2.20.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 9733ab64f4ef7f7a700dc655fc5449f1c4a775d249260000988ddd57c99865ac
MD5 5b74052e8cfd5da2f97fb421ad8ba22a
BLAKE2b-256 65a143a3c8bec06a082a9c847f999ad3386ecbe69426369b65f39ed8622a97d2

See more details on using hashes here.

File details

Details for the file xtgeo-2.20.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.20.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 91aca8ea9b21ab9056c694886dcabe9c76f84b1e4f3fa2c8a8061915071b2988
MD5 e928038f10338df1c9d62d004fd18390
BLAKE2b-256 a4973bcd1a5d9f32dec4d4918556b5706828b5dc428a87d879c4acfa29521e50

See more details on using hashes here.

File details

Details for the file xtgeo-2.20.1-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for xtgeo-2.20.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f241bece778640263f6beb41c0a3ac4d09049ba224bb965a9aa905de097e2aa3
MD5 eee43793a114476d24dcda3d90fe2ec4
BLAKE2b-256 d3defd91892994873222c0cab6693233c144bd1142c0098c6b6a7f4cffafec72

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