Loading and Displaying Well Log Data from LAS Files with Python
Exploring and working with Log ASCII (LAS) files for well log analysis and petrophysics
Anyone who has worked or is currently working within the oil and gas industry will understand that there are a large variety of formats that well log data can be stored in. Some of the common formats that we as petrophysicists work with include LAS, ASCII and CSV files. Many of these formats can easily be loaded into a Python script or Jupyter Notebook.
Log ASCII Standard (LAS) files are a common oil & gas industry format used for storing and transferring well-log data and information. The data contained within these files are used to analyze and understand the subsurface, as well as identify potential hydrocarbon reserves. The file format was developed by the Canadian Well Logging Society in the 1990s and consists of three versions: 1.2, 2.0, and 3.0. Version 2.0 is one of the most commonly used versions today.
In this tutorial, we are going to use the lasio library developed by Kent Inverarity, to load a las file into Python and then explore its contents before making a quick look well log plot using matplotlib.
Many months back, I put together a series of Jupyter Notebooks illustrating different ways of working with well log data. These can be accessed at the link below, along with a Jupyter Notebook version of this article and associated data. The data used for this article comes from the Volve dataset that was released by Equinor in 2018.
This series of notebooks is used to explain the basics of loading well data, displaying it an carrying out basic…
Update: August 2021:
I have recently started up a YouTube channel covering a number of the articles I have published on Medium. You can check it out at the link below: