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.7-cp314-cp314-win_amd64.whl (814.4 kB view details)

Uploaded CPython 3.14Windows x86-64

resdata-6.2.7-cp314-cp314-win32.whl (814.4 kB view details)

Uploaded CPython 3.14Windows x86

resdata-6.2.7-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.7-cp314-cp314-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

resdata-6.2.7-cp313-cp313-win_amd64.whl (795.6 kB view details)

Uploaded CPython 3.13Windows x86-64

resdata-6.2.7-cp313-cp313-win32.whl (795.6 kB view details)

Uploaded CPython 3.13Windows x86

resdata-6.2.7-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.7-cp313-cp313-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

resdata-6.2.7-cp312-cp312-win_amd64.whl (795.6 kB view details)

Uploaded CPython 3.12Windows x86-64

resdata-6.2.7-cp312-cp312-win32.whl (795.6 kB view details)

Uploaded CPython 3.12Windows x86

resdata-6.2.7-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.7-cp312-cp312-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

resdata-6.2.7-cp311-cp311-win_amd64.whl (795.6 kB view details)

Uploaded CPython 3.11Windows x86-64

resdata-6.2.7-cp311-cp311-win32.whl (795.6 kB view details)

Uploaded CPython 3.11Windows x86

resdata-6.2.7-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.7-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.7-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: resdata-6.2.7-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 814.4 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.7-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 260b23a6e256a5cccdcabcb33fb6c9d5c9de3e7be7c6d9e0d60c3f6f67662577
MD5 9a547753c2fdf83eb3a38c5158de74a5
BLAKE2b-256 9eac924a61810ac4f645387db5cf0c0c936a8f1a1378f44a4e6aa25866ce1ad8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.2.7-cp314-cp314-win32.whl
  • Upload date:
  • Size: 814.4 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.7-cp314-cp314-win32.whl
Algorithm Hash digest
SHA256 83408f6f8015b37e8454dd940f03518502f40102554096f636e2c14e1e17ff89
MD5 0eed2d5fbc3ef298d62e94b3b7687576
BLAKE2b-256 a682258849581cb64ebe78fdfcf951453876e3965e5a5f66376e754155761cdb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.7-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 63757d2cacc287817520b7e276c81856ff8878ebc6aa80838ea3a720e7163602
MD5 84a6ea84e9c386694239b9147f614a21
BLAKE2b-256 721ea41b2dc4ca1309e75cdda225567507b625478289db525cc955f48600ca66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.7-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4fe4c85d2175e3c063442f1fc0f6f8681e0bb05115bb9451044fdbbd08d80d3c
MD5 320548dd3f88fe339ad6a96a41b25385
BLAKE2b-256 7d5c2e12e0194dde40e7ccd38f4727788206c84037507c7f6240450e70bee558

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.2.7-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 795.6 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.7-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e43a097a2ca98335c4daacd558a85a86ce50473d7f9cc26b877cfaccc15f6cf9
MD5 e06fbd260d366457b943a2913ebc5575
BLAKE2b-256 369fa51cd441dd6055f61ffdcadcd2cc0a74ef84529ac962f4da838416f7ac3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.2.7-cp313-cp313-win32.whl
  • Upload date:
  • Size: 795.6 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.7-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 39a4fe164925d8ffcb9c8f1ffadb0f02a2dba54e5cd44be0c96505d1424c349d
MD5 99674536b1147aef6c1e82262942e12d
BLAKE2b-256 ab7d56810a26eacc31c739674ca8ad1010cc95a3d163cb6fb422e1032d185145

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.7-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b707dd71526c67a7f084380fb5331ac711ce073a1b9c35d64ca1eec46731e754
MD5 1d94e0b37bfce0fe21c6a26cbd94b0dc
BLAKE2b-256 7cd340754633100aa8da22601cac76ed474e3c80d4e24578a64b4badd7450376

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.7-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ad9e0cdf8d99013553ffe14a6aab0c5dd78942cd24dd7747c848d550939d3cb
MD5 e80f78d841e9921570297fe75e5c9e2a
BLAKE2b-256 8b7a71c5d1f9dd64b5b562181ad4b8c2e8c7bc3177439db444efd8ffab269ff5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.2.7-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 795.6 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.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a8c2a496c782a7f4aac6e45951c8adb6048c76f292f3909d0ba3287bdeac3d66
MD5 0468a5ce9f6bedffd48e041cc86f7e21
BLAKE2b-256 74fb069e174c08241b635beaaaecc6483431bc4e9ce5bebd721b5366610d6647

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.2.7-cp312-cp312-win32.whl
  • Upload date:
  • Size: 795.6 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.7-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 81cad0fa76a838a7205b3e3efc987b3cd92e3c8188dfd9d1f3fca87951a51225
MD5 ff61d796897b1147a9018ec11028c671
BLAKE2b-256 a50cb55a55cab6ad58dd9bc10535a8d625a32e9fe862d4df4f5e2782c9ec9844

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.7-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6a451a01e99bff992d8ac9a4d8092142e3344a4444393d2e3e3e7d344e84033d
MD5 96c3094c65a3bb074f6d0942e1d8f945
BLAKE2b-256 d3629fc207475c5bd9de64f3054d60ead75cfa75a8cd4e29e12e8c219aa2a0ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1df46734f3b35ac3fff8aa807a3ccb7f43b92ec98ea54dc66f3fdb1961f09c87
MD5 1c1a50e20fa451b18f818eff3447379c
BLAKE2b-256 a70badccf15a40fc66874eab99feee35830fd74293fab6af9687ae83ba0d5896

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.2.7-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 795.6 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.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bc4e35080630402b1130d47f500aa7f8a3c98ce102f6bc29fdab93ab624ef50d
MD5 0850e7da894ea9beb5346480ee0f1919
BLAKE2b-256 9f06c3a2f0174ce0a660f2699255c5b762e57df4d013e9b202878be438d29843

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resdata-6.2.7-cp311-cp311-win32.whl
  • Upload date:
  • Size: 795.6 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.7-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7dc3c2ff0868e68dbd4f68fea2ddb3f6055c903fe803871726a4be1c6caa6ea8
MD5 cefaec27388042460998b30df5cfef89
BLAKE2b-256 548d2c7e9614e6f68974e57e53b3f3deed60c257475b92b0c47bdfee23c3ba7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.7-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bf3859f719976d4efd837cb92eb9ee64df93cbde20737562f457bb22e8c0471c
MD5 aa8fcb196d9ff4a6b012066b17d8759c
BLAKE2b-256 df480f1b1a376a4bf8696db40a4feeecf1f6e0bf7bf7bce35b7ccb9a283bcf1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resdata-6.2.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6cdbfc62d860c47cc3366d1b371846601d22c910e7903288c6ab6f6c639ca8c1
MD5 b27da25e3a5b1ea84516aa92665a9cc5
BLAKE2b-256 2c8ca35be54034e7e70f7bd1bdf15f5464181c224c041879bb92f2ec8f3b3d50

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