Skip to main content

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

Project description

============================= The XTGeo library

.. image:: https://travis-ci.com/equinor/xtgeo.svg?token=c9LYyqv6MtDXz4Cxbq9H&branch=master :target: https://travis-ci.com/equinor/xtgeo

XTGeo is Python class library with a C backend for subsurface work. It handles many data types, such as surfaces, well data, 3D grids, etc. The usage is primarely targeted to geoscientist and reservoir engineers working with reservoir modelling, in relation with RMS.

Building XTGeo

XTGeo is developed on Linux. To build XTGeo you need:

  • A C99 compatible C compiler (gcc is recommended)
  • The SWIG library (http://www.swig.org/) version 2 or higher.
  • Python 2.7, 3.4 or higher. Further Python requirements are listed in requirements.txt, requirements_dev.txt and setup.py
  • Detailed instructions are provided in installation.rst

Features

To goal of XTGeo is to provide easy access to basic data, with manipulation in numpy and/or pandas. For example:

::

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')

======= History

See github for commit and tag history:

https://github.com/equinor/xtgeo

Project details


Release history Release notifications | RSS feed

This version

2.0.0

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.0.0-cp37-cp37m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7m

xtgeo-2.0.0-cp36-cp36m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.6m

xtgeo-2.0.0-cp27-cp27mu-manylinux1_x86_64.whl (1.3 MB view details)

Uploaded CPython 2.7mu

File details

Details for the file xtgeo-2.0.0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.0.0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for xtgeo-2.0.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6e1c60a4d989a04c7a999cb11a59e3709187a3585d78c8a942d5d83b8342d263
MD5 2b4d71a6f26c546d56a46698ff9f2756
BLAKE2b-256 b2ae283634c0ed7a50dcdcbd4274d769c3a55359a245fa9aa9376bbfdab424e6

See more details on using hashes here.

File details

Details for the file xtgeo-2.0.0-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.0.0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for xtgeo-2.0.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c1c31bbcf2efd3647d30015f5ced7bdf80f3d0519f4e0e0754177a842d795d76
MD5 0e73eb2295a8e65a73322ee00419afef
BLAKE2b-256 f55fbf3d446286e178a634242df1381939323879fc4da022d3300459dfc32f79

See more details on using hashes here.

File details

Details for the file xtgeo-2.0.0-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: xtgeo-2.0.0-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for xtgeo-2.0.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 58b678d7fdd1954ab22455c20af807d9456910f72fd6fada1a32331dc94f104f
MD5 211c57f1028485ea4c5140e9e6cc75bd
BLAKE2b-256 949387ed76fabb0ed1861567a6110f61036a287b58b4498c2482efbd2e8f6930

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