Skip to main content

Package for reading and writing the fortran result files from reservoir simulators

Project description

ResData

Python package for reading and writing the result files from reservoir simulators. The file types covered are the RESTART, INIT, RFT, Summary and GRID files in unified and non-unified, and formatted and unformatted.

ResData officially only supports Linux and macOS. It was initially developed as part of the ert project.

Using

ResData is available on PyPI and can be installed into a Python virtual environment with pip:

pip install resdata

Building

ResData is a Python project with a C++ extension layer. Most of the functionality is implemented in C++ and uses cwrap for binding it to Python.

A C++17-compatible compiler, like GCC 8+ or Clang 11+ is required. Other C++ dependencies are brought in automatically by Conan during CMake compilation.

In a Python virtual environment, run:

# Fetch directly from GitHub
pip install git+https://github.com/equinor/resdata

# If git-cloned, install local directory in editable mode
pip install --editable .

Running tests

As this codebase contains both Python and C++ code, there are tests for both Python and C++.

Python tests

These tests use pytest and require that ResData is installed into a Python virtualenv in --editable mode, as described in the Building section.

Ensure that pytest is installed and do the following to

# Install pytest
pip install pytest

# Run all tests in the python/tests directory
pytest python/tests

C++ tests

ResData uses a homegrown testing suite as well as Catch2, 2.x which is compiled via CMake and ran using ctest.

Ensure that cmake and conan version 2 is installed.

#set up conan
conan profile detect
conan install -of build --build=missing .
cmake --preset=conan-release -DENABLE_ASAN=ON -DENABLE_UBSAN=ON


# Build project
cmake --build --preset=conan-release -j 8

# Run all tests
ctest --preset conan-release

Project details


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.

resdata-6.2.5-cp314-cp314-win_amd64.whl (809.3 kB view details)

Uploaded CPython 3.14Windows x86-64

resdata-6.2.5-cp314-cp314-win32.whl (809.3 kB view details)

Uploaded CPython 3.14Windows x86

resdata-6.2.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

resdata-6.2.5-cp314-cp314-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

resdata-6.2.5-cp313-cp313-win_amd64.whl (790.4 kB view details)

Uploaded CPython 3.13Windows x86-64

resdata-6.2.5-cp313-cp313-win32.whl (790.4 kB view details)

Uploaded CPython 3.13Windows x86

resdata-6.2.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

resdata-6.2.5-cp313-cp313-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

resdata-6.2.5-cp312-cp312-win_amd64.whl (790.4 kB view details)

Uploaded CPython 3.12Windows x86-64

resdata-6.2.5-cp312-cp312-win32.whl (790.4 kB view details)

Uploaded CPython 3.12Windows x86

resdata-6.2.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

resdata-6.2.5-cp312-cp312-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

resdata-6.2.5-cp311-cp311-win_amd64.whl (790.4 kB view details)

Uploaded CPython 3.11Windows x86-64

resdata-6.2.5-cp311-cp311-win32.whl (790.4 kB view details)

Uploaded CPython 3.11Windows x86

resdata-6.2.5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

resdata-6.2.5-cp311-cp311-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file resdata-6.2.5-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: resdata-6.2.5-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 809.3 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for resdata-6.2.5-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 be59928204d3f2bd4e00c6995ca11553c7d5a8049179f617befa41b07b3efcb9
MD5 166b5cea68af884f99b547c7d34e5e0d
BLAKE2b-256 d0c802e90411e40cb467d123cc786a4050c13d2d00d821beabd00fbada6f238e

See more details on using hashes here.

File details

Details for the file resdata-6.2.5-cp314-cp314-win32.whl.

File metadata

  • Download URL: resdata-6.2.5-cp314-cp314-win32.whl
  • Upload date:
  • Size: 809.3 kB
  • Tags: CPython 3.14, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for resdata-6.2.5-cp314-cp314-win32.whl
Algorithm Hash digest
SHA256 0b8b961c7cab409a18e51a7814923de0db115f4d1136e33f78e858d78e69cbe5
MD5 23f1fbf6c1e89e8ae8735a6a28a4e17f
BLAKE2b-256 2490e1594840c3680f11642805cbadf444379807df868c957c05d93b3c1a8163

See more details on using hashes here.

File details

Details for the file resdata-6.2.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for resdata-6.2.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bcf0b546b591343a7ca394707e5dadc326481871049793763b0426a224946515
MD5 7c56c778d337a9446e2069ba1e52a17a
BLAKE2b-256 d130dc7fa110ae25d66ed396d7867a73487cbf364075cbfbf6f10687dd735915

See more details on using hashes here.

File details

Details for the file resdata-6.2.5-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-6.2.5-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05044b05a278df6c2e636fd343f94acc18dd0f6941255e444470b238a3103e96
MD5 78cbf10e6db89b76249f14b4367af792
BLAKE2b-256 b05f75277386fb91965b3801131e275b31b9d48652cdc922480119a31a676942

See more details on using hashes here.

File details

Details for the file resdata-6.2.5-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: resdata-6.2.5-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 790.4 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for resdata-6.2.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 fcc437e7b9b95781f345dfb31144dd23eda40a115185070edc9a465cc3dc1a4f
MD5 35dbbf308a42734ad97ebde9ada4c34f
BLAKE2b-256 4c335f2997fc2457302c8e202baeb1d178bbd6a21b42dc72e46f6c2dd2737a5d

See more details on using hashes here.

File details

Details for the file resdata-6.2.5-cp313-cp313-win32.whl.

File metadata

  • Download URL: resdata-6.2.5-cp313-cp313-win32.whl
  • Upload date:
  • Size: 790.4 kB
  • Tags: CPython 3.13, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for resdata-6.2.5-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 f75d24798ab363b6f30751c8e1933556eb84c1fe6499e7f04e8bf41d3e9d724c
MD5 3daff950d1abce819963dad7f37322c5
BLAKE2b-256 bc44340e625f031d834e1a47fd2d97d2a512d3e85cb7210c733bdc13487b3713

See more details on using hashes here.

File details

Details for the file resdata-6.2.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for resdata-6.2.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5df2d551fad10b888d433c1a2967753c85c84967d14f1169ef449f1135f057cc
MD5 e7b04b8589cfdd39305776e5864b1048
BLAKE2b-256 65171eb46bbf4d2ba49e2afc17e6470f70b3ed7a702892afe3b6f6762d2f1734

See more details on using hashes here.

File details

Details for the file resdata-6.2.5-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-6.2.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 80906cd1244bfe6ee833f87dbb7a9e5051725e56a890a6f443676f1d1e55865d
MD5 459f5c80ebfe02216dd1f7b946e7268c
BLAKE2b-256 4fea9a85229689469bb7716aac253abc420df826f7c79ca358675eb537180fbf

See more details on using hashes here.

File details

Details for the file resdata-6.2.5-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: resdata-6.2.5-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 790.4 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for resdata-6.2.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8a1ca9af2656a27d02780482f6b877a384e0b363df6944ac8182d3b149bfaef9
MD5 118429368b96d5abf80bcc06095e7d9b
BLAKE2b-256 aef99109da75fb153249a4d39cddc4c05dafe9d0295800f35f55be31fa55d239

See more details on using hashes here.

File details

Details for the file resdata-6.2.5-cp312-cp312-win32.whl.

File metadata

  • Download URL: resdata-6.2.5-cp312-cp312-win32.whl
  • Upload date:
  • Size: 790.4 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for resdata-6.2.5-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1ad715d0acfd066892d8dc84ad2e4f5d0561a7aefb76c2a0722a2a46c6a25754
MD5 6a0a5363011fd94ed659464f71e306c7
BLAKE2b-256 728709cfc04cf99aaac266922f33c6b408b423b084757627363ddd00847ce369

See more details on using hashes here.

File details

Details for the file resdata-6.2.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for resdata-6.2.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a84a84d3d4cdedfce9a020a5aa396bc34b2ded369ec19f340328022f993e03da
MD5 51f79b70e60a18ce06fe9c0499753b05
BLAKE2b-256 6cbd8e215bb981c706dbf3d9a8ebe0bea59078f31be497e5795b8518bc6ddb6d

See more details on using hashes here.

File details

Details for the file resdata-6.2.5-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-6.2.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6358db390c1d5a497d89389f7bae23ea91dbd8ee382f003459ec9a9fbb774a95
MD5 218e39c334ceedbf9ad77947f60f014f
BLAKE2b-256 31be567155efbcb5b25d1b698cf7a7a44b24cdc044227c17cc24bebc91521cce

See more details on using hashes here.

File details

Details for the file resdata-6.2.5-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: resdata-6.2.5-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 790.4 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for resdata-6.2.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1f091079e87debf5c9e54b0126fcbe864f18d81b548bc23e5034183ba7535b15
MD5 022857685b99cab55199f65c8b6d26c0
BLAKE2b-256 4faf8a6a8602366ab66f47de5c8e87013f5302e8810a75220545f19f8cf5c27f

See more details on using hashes here.

File details

Details for the file resdata-6.2.5-cp311-cp311-win32.whl.

File metadata

  • Download URL: resdata-6.2.5-cp311-cp311-win32.whl
  • Upload date:
  • Size: 790.4 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for resdata-6.2.5-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 30bab4e5b7d7fe2909773e46d6885ead31f33bad9dc6eae6712d68f627d97d41
MD5 e27c6e9e215d1321455e47dddd00145a
BLAKE2b-256 910a3d42d2c7e4b68222703ad3862a8ad0bd39681c680adfbe321736bec783af

See more details on using hashes here.

File details

Details for the file resdata-6.2.5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for resdata-6.2.5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f9a64098ec8c660209d5a85b157cc9b905c895a6ab7c4532a60c1981bd5a476c
MD5 dae6ee7878ace959d1406b804615cafe
BLAKE2b-256 77982519f1391c6cf02f9b3f7fa54fbcbe88b9671225ffbcffadddd2c53337dd

See more details on using hashes here.

File details

Details for the file resdata-6.2.5-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resdata-6.2.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2585ffb81fe4d4e2c226ee08240bb9a7b59e3a9ed0e9d41ac6328dfa5c2861d0
MD5 d390d5a55a37f0980a6580f90bbab948
BLAKE2b-256 175c963d8e3df8d0023c14d5d56181d08a9b0dec10f0da587cb5597299dcf67a

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