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:
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
Built Distributions
Hashes for xtgeo-2.0.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e1c60a4d989a04c7a999cb11a59e3709187a3585d78c8a942d5d83b8342d263 |
|
MD5 | 2b4d71a6f26c546d56a46698ff9f2756 |
|
BLAKE2b-256 | b2ae283634c0ed7a50dcdcbd4274d769c3a55359a245fa9aa9376bbfdab424e6 |
Hashes for xtgeo-2.0.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1c31bbcf2efd3647d30015f5ced7bdf80f3d0519f4e0e0754177a842d795d76 |
|
MD5 | 0e73eb2295a8e65a73322ee00419afef |
|
BLAKE2b-256 | f55fbf3d446286e178a634242df1381939323879fc4da022d3300459dfc32f79 |
Hashes for xtgeo-2.0.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58b678d7fdd1954ab22455c20af807d9456910f72fd6fada1a32331dc94f104f |
|
MD5 | 211c57f1028485ea4c5140e9e6cc75bd |
|
BLAKE2b-256 | 949387ed76fabb0ed1861567a6110f61036a287b58b4498c2482efbd2e8f6930 |