Package: dlisio
Introductiondlisio is an LGPL licensed library for reading well logs in Digital Log
Interchange Standard (DLIS V1), also known asRP66
V1, and Log Information
Standard 79 (LIS79).dlisio is designed as a general purpose library for reading well logs in a
simple and easy-to-use manner. Its main focus is making all the data and
metadata accessible while putting few assumptions on how the data is to be
used. This makes it suitable as a building block for higher level applications
as well as for being used directly.dlisio focuses above all on correctness, performance and robustness. Its core,
which does all the heavy lifting, is implemented in C++. Both the C++ core and
the python wrappers are backed by an extensive test-suite. It strives to be
robust against files that do not strictly adhere to the specifications, which
is a widespread issue with both DLIS and LIS files. dlisio tries to account for
many of the known specification violations out there, but only when it can do
so without compromising correctness. It will not do any guess work on your
behalf when such violations pose any ambiguity.Installationdlisio supplies pre-built python wheels for a variety of platforms and
architectures. The wheels are hosted throughPyPiand
can be installed with:pipinstalldlisiomacOS IntelmacOS ARMWindows 64bitWindows 32bitmanylinux x86_64manylinux aarch64manylinux i686musllinux x86_64CPython 3.7✅-✅✅✅✅✅-CPython 3.8✅-✅✅✅✅✅-CPython 3.9✅✅✅✅✅✅✅✅CPython 3.10✅✅✅✅✅✅✅✅CPython 3.11✅✅✅✅✅✅✅✅CPython 3.12✅✅✅✅✅✅✅✅SeeBuild dlisiofor building dlisio from source.Getting starteddlisio's documentation is hosted onreadthedocs. Please refer there for
proper introduction to dlisio and the file-formats DLIS and LIS. Here is a
motivating example showcasing how to read the curve-data from a DLIS-file:fromdlisioimportdliswithdlis.load('myfile.dlis')asfiles:forfinfiles:forframeinf.frames:curves=frame.curves()# Do something with the curvesand from a LIS-file:fromdlisioimportliswithlis.load('myfile.lis')asfiles:forfinfiles:forformat_specinf.data_format_specs():curves=lis.curves(f,format_spec)# Do something with the curvesIn both cases the curves are returned asstructured
numpy.ndarraywith the
curve mnemonics as field names (column names).Build dlisioTo develop dlisio, or to build a particular revision from source, you need:A C++11 compatible compiler (tested on gcc, clang, and msvc 2019)CMakeversion 3.5 or greaterPythonversion 3.7 or greaterfmtlibtested mainly with 7.1.3mpark_variantpybind11version 2.6 or greatersetuptoolsversion 28 or greaterlayered-file-protocolspython packages pytest, pytest-runner, and numpyIf you do not have pybind11 installed on your system, the easiest way to get a
working copy is topip3 install pybind11(NP! pybind11, not pybind)layered-file-protocols has to be installed from source if you don't already
have it on your system:gitclonehttps://github.com/equinor/layered-file-protocols.git
mkdirlayered-file-protocols/buildcdlayered-file-protocols/build
cmake..-DCMAKE_BUILD_TYPE=Release-DBUILD_SHARED_LIBS=ON
-DLFP_FMT_HEADER_ONLY=ON
make
makeinstallTo then build and install dlisio:mkdirdlisio/buildcddlisio/build
cmake..-DCMAKE_BUILD_TYPE=Release-DBUILD_SHARED_LIBS=ON
makedlisio follows common cmake rules and conventions, e.g. to set install prefix
use-DCMAKE_INSTALL_PREFIX. To build the python library it is usually a good
idea to build shared libraries. To disable python, pass-DBUILD_PYTHON=OFF.
By default, the python library is built.ContributingWe welcome all kinds of contributions, including bug reports, issues, feature
requests and documentation. The preferred way of submitting a contribution is to
make anissueon github.