Subsurface Syntax

Subsurface Syntax

Creating a Multi-Well Integrated Well Log and Formation Tops Dataframe in Python

Combining formation data and well log measurements for multiple wells in Python

Andy McDonald's avatar
Andy McDonald
Nov 03, 2022
∙ Paid

Combining formation data and well log measurements for multiple wells in Python

Photo by Quintin Gellar: https://www.pexels.com/photo/rock-formation-wallpaper-612893/

When working with well log measurements and subsurface data we are often dealing with different file formats and sample rates. For instance, well log measurements are typically stored and transferred within .las files or dlis files and sampled every 0.1m or 0.5ft. Geological formation tops on the other hand are single discrete depth points. This requires interpolation of the formation data to match the sample rates of well log measurements.

In my previous tutorial, we saw how to merge well log data and formation data for a single well. Within this tutorial, we are going to see how we can do this for multiple wells.

Importing Libraries

The first step in the process is to import the libraries we will be working with.

For this tutorial we will be using lasio to load in .las files, os to read files from a directory, pandas to enab…

Keep reading with a 7-day free trial

Subscribe to Subsurface Syntax to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2026 Andy McDonald · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture