Part 2 of our series on DLIS and LIS. Part 1 introduced reading both formats in the browser.
A LIS file rarely fails loudly. Most of the time it opens, a converter turns it into a LAS file, and the LAS file loads. The problems show up later, in the model: a mud log with ten curves that are flat lines, depths that cannot be tied to sea level, a gas ratio nobody can identify. This post walks through what goes wrong in LIS files, using a real one as the example, and what to check before you trust the data.
The example is MUD_LOG_1.LIS from Equinor's public Volve dataset: a Geoservices mud log for well 15/9-F-15, recorded in 2009 and written as a LIS-79 tape image. It is an ordinary file. That is the point.
A Format Built for Tape
LIS, the Log Information Standard, dates from the late 1970s. It was designed to be written to magnetic tape in one pass and read back the same way, and almost every problem below traces back to that.
A LIS file is a chain of physical records, each carrying a piece of a logical record. Logical records hold the content: reel and tape headers, file headers, the data format specification record (DFSR) that describes the curves, the data records themselves, and trailers. On disk, the physical records are often wrapped again in a tape image layer, where each record carries a small header pointing to the previous and next record, and padding can sit between records without saying it is there.
Three consequences matter for anyone receiving these files:
- There is no index. A reader has to walk the file from the start to find anything. A file with 3,946 rows of data is read record by record.
- One bad record can hide the rest. If a record's length field is wrong, a strict reader loses its place and everything after it is unreadable. Most readers stop there, and some do so without saying how much they skipped.
- The extension does not tell you much. LIS files also arrive as
.LTI,.TIFand with no extension at all, and the tape-image wrapping is not always present.
What PetroCurve does: it detects the tape-image layer, reads around damaged records instead of stopping, and reports how many bytes it could not read, where they are, and what share of the file that is. You know whether you are looking at the whole file or 80 percent of it.
Curves That Hold Nothing
MUD_LOG_1.LIS declares 43 curves in its main data set. Ten of them hold at most one value across all 3,946 rows: HKLX, TQX, RPMA, ECDT, FPPG, HSX, CCAL, CDOL, WLFL and WLCT. They were declared because the acquisition system had a slot for them, and never filled.
What makes them easy to miss is the last row. The file ends with a row of zeros under curves that are otherwise null, so a quick look at the range says "0 to 0" or "has data" rather than "empty". Converted naively, each becomes a LAS column of nulls with a single zero at the bottom, and plots as a curve.
The same file holds a second data set that declares its curves and contains no samples at all.
What PetroCurve does: the inspector marks a curve with at most one reading as No data once it has sampled it. On conversion, those curves stay in the LAS file, so nothing is silently removed, but they are named in the file's ~Other section and in the receipt: "Curves with no data (at most one value): HKLX, TQX, …". An empty data set is listed with the reason. In the viewer, Review data flags each empty curve under Values, and the quality score leaves them out instead of scoring their names and units.
No Depth Reference Anywhere
A log is only useful in a model if its depths can be tied to a datum: a permanent datum, a kelly bushing, drill floor or ground level elevation, or at least a statement of what depth is measured from. MUD_LOG_1.LIS has none of them, anywhere in the file.
This is common in LIS mud logs and in older wireline files whose headers were filled in by hand or not at all. It does not stop a converter, and it does not stop Leapfrog Geo from importing the result. It stops the log from being placed correctly, and that error is the hardest to spot once the data is in a model.
What PetroCurve does: Review data's second step, Depth reference, looks for a datum and KB, DF or GL elevations in every place a LIS, DLIS or LAS file can hold them, and says plainly when there are none: "No depth reference anywhere in the file." When there is one, it checks the value is plausible (an elevation of minus 15 km is a "not set" placeholder, not a datum) and that its units agree with the depth index. You can type in the elevation from the well's records as a fix, and the fix is recorded.
Four-Character Names and Missing Units
In LIS, a curve's mnemonic is four characters and its units are four characters. Vendors fitted their names into that space as best they could. The Volve mud log has C1C2 to C1C5 (gas ratios), IBTA and NBTA (iso- and normal butane), MTHA (methane), DXC (the corrected drilling exponent) and LITH (a lithology code). Several of these have no units at all, because a ratio or a code has none.
Two problems follow. A four-character name says little to anyone outside the company that wrote it, and the same four characters can mean different curves from different vendors. And a curve with no units cannot be checked or converted by any software downstream.
What PetroCurve does: Review data's Curve names step matches each name against a catalog of service-company mnemonics, taking the logging company named in the file into account, and offers a standard name only when it is confident and the units agree. Names it cannot match are listed, not guessed at. Curves with no units are listed under Values, with a note that ratio and flag curves often have none on purpose.
Index Set-ups a LAS File Cannot Express
The DFSR describes how the data is indexed, and LIS allows set-ups a LAS file has no way to say:
- Depth once per record. In one recording mode, depth is not a curve at all: it is written once at the start of each data record, and the depth of every other row has to be worked out from the frame spacing.
- Frame spacing in odd units, such as tenths of an inch. A converter that copies the number without the unit gets depths off by a factor of 120.
- Logs recorded going up. Many wireline logs are recorded from the bottom of the hole upward, so the depth index decreases down the file.
- An absent value of the file's own. LIS lets the file set the value that means "no reading". Usually it is -999.25, but not always.
What PetroCurve does: it reads the DFSR and builds the depth index for every row, whichever recording mode the file uses, converting tenths of an inch to feet and writing down that it did. The conversion takes the absent value from the file, not from a default. In Review data, a decreasing index is noted as valid LAS 2.0, with a one-click fix to flip it to increasing for software that expects that. A STEP whose sign disagrees with the direction of the data is flagged, because any reader that rebuilds depths from STRT and STEP would put every row in the wrong place.
A Checklist for Any LIS File
Before a LIS file, or the LAS file someone made from it, goes into a model:
- Did the whole file read? Ask how many bytes were skipped, not just whether it opened.
- Which curves hold data? Look for curves that are null except for one row.
- Is there a depth reference? A datum and an elevation, in the right units.
- What do the names mean? Four-character names need a vendor and a description to be useful.
- Which way does the depth run, and in what units? Check the frame spacing units and the direction.
- What did the conversion leave out? Other data sets, array curves and parameters do not fit in one LAS file.
PetroCurve runs all six in the browser. Open the file in the inspector to see what is inside, then open the data set in the viewer and run Review data. Every fix and every decision to keep something as it is goes into the QC report that comes with the export.
Coming Up
Part 3 looks at DLIS: the parameters a LAS file leaves behind, and why a single DLIS file can hold five different values for the same parameter.
PetroCurve checks LAS, DLIS and LIS well logs in your browser: depth, datum, values and curve names, with one-click fixes and a QC report of every decision. Your data never leaves your device. Open a LIS file →