Home Features Download Purchase Blog About Help Contact

Plotting formation tops

It would be nice to add formation tops to a plot. Even better, if we already have the data, it would be nice not to have to manually enter them. Let’s walk through an example. Here’s a file from Kansas Geological Survey.

Sample LAS file from Kansas Geological Survey

We might have a formation data ready external to the file, but this is a great file to use in our example, because someone put the formation tops right into the file. (A passing note: the lines that represent the tops appear in white, as they are actually not valid lines, according to the LAS 2.0 Standard. They should be commented out, or else move to the ~Other section. It would be fine to uncomment line 24 and make this a separate, user-defined, section, but it’s still a parameter section, so that wouldn’t affect anything).

Let’s use the Quick Plots feature (in the Data menu, or else just press Shift + F7). Before we do that, though, let’s copy the lines containing the formation tops (lines 25-37), we’ll need that in a minute.

A plot of the sample file

Nice, Quick Plots gives us one plot for each curve. This is great for seeing what the data in the file looks like. Of course we can configure this differently, this is just the default. For this example, the only change we want to make is to put our formation tops somewhere. You can show these as text annotations with lines, on any track. To make things less noisy, let’s just add a separate, blank track. You can insert a track quickly by right clicking on an existing track, then selecting from the context menu to insert a track before or after the selected one. That brings up the plot configuration dialog, with the new track focused. When we click on the tab below the track configuration titled “Text and lines”, it will look like this:

The plot configuration dialog

Next we click on the ‘Import’ button.

The import dialog

We could browse to a file here, if that’s where the tops were, but we have them in the clipboard, so we can just paste them directly in.

The import dialog after pasting

That looks promising, but the two columns (names and depths) need to be separated, and here they aren’t. So we’ll just put a comma in each line between the name and depth (anywhere between is OK, as the strings are going to be trimmed by the program). And since the depth column is first, we need to check that second checkbox, as by default the program expects the depths first.

The import dialog after entering commas

Now let’s click on ‘Next’ and see if that worked.

The import dialog clicking 'Next'

Looks good! Let’s import and see what we have now.

Grid showing the imported formation tops

Excellent. Now we could change the font size, line styles and colors. For this example, let’s just do one thing. At the bottom, we’ll check “Extend lines across all tracks”, since all of our tracks are keyed to the same depth scale, and we want to see this information everywhere.

The plot showing the imported formation tops

So obviously we would probably do a few things at this point to make these look better, such as extending the vertical size of the plots, so the formation top names are not stepping on each other, and it probably would look good to bold the names, maybe make the lines thicker or a different color, etc. But you get the idea. Total time to open the file, create the plots, and insert the formation tops: well less than five minutes!

Back to blog index