Skip to main content

A function to facilitate loading well log data, in las or dlis format, as dataframe.

Project description

log2frame

import log2frame

A function to read well log data in LAS, LIS and DLIS formats and extract curves data as DataFrame.

The curves and header data are stored in an instance of Log class, designed to hold this data and operate with it. If multiple log files are read together, the Log instances are packed in a Pack instance, designed to hold Log instances and operate with them.

to read log files

Simply call the function read() with the path or path pattern as argument:

a single log file

To load a single .las, .lis or .dlis file. The function will return a Log instance containing the data:

  • log2frame.read( path_to_file )

several files in a folder

To load several files at once. In this case the read() function will return a Pack instance containing a Log instance for each log file:

  • log2frame.read( path_to_folder_containing_files/*.* ) By default, any invalid file will be ignored, thus, there is no problem to have other files in the same folder as the log files.

several files recursively

To read files recursively in subdirectories, use the appropriate fnmatch pattern:

  • log2frame.read( path_to_folder_containing_files/**/*.* )

further examples and details

Please refer to the Jupyter notebook log2frame_demo for further examples and details on how to use log2frame.
The sample data is publicly available at NLOG.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

log2frame-0.1.19.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

log2frame-0.1.19-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file log2frame-0.1.19.tar.gz.

File metadata

  • Download URL: log2frame-0.1.19.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for log2frame-0.1.19.tar.gz
Algorithm Hash digest
SHA256 5c3a24e0eb417ff5909f2604a75faae80c5d4db92872f2eb3c91d641c5f814a5
MD5 fdeba89bf766b4508a98f31344c85c03
BLAKE2b-256 9ff7217e0907e478835c31e31378ba4a83605daa1eacd787c03a214defdf2d05

See more details on using hashes here.

File details

Details for the file log2frame-0.1.19-py3-none-any.whl.

File metadata

  • Download URL: log2frame-0.1.19-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for log2frame-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 d3f616c57f3bfc0f6b4b64d3c995c06398bcf51dbb2be217cac21cf08b68f772
MD5 f99bd12680b928fbb81f25a86475115c
BLAKE2b-256 66af211a9ef766e285fa5637033953a89ef9ec42dc979186b3d28b07a33d6cb3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page