Skip to main content

Well Log Interpretation: How to Read a Well Log

What is a well log?​

A well log (also called a borehole log or wireline log) is a record of measurements made down a borehole and plotted against depth. Each curve shows one property of the rock or the fluid in it, such as natural radioactivity, electrical resistivity, density or the speed of sound. Read side by side, the curves show rock types, porosity, and whether the pores hold oil, gas or water.

A synthetic well log from 5,000 to 5,600 feet in four side-by-side tracks with depth increasing downwards, in a dark navy theme. Track 1: gamma ray in green, shaded yellow on the sand side and grey on the shale side of a 75 API cutoff, with a dashed caliper curve. Track 2: deep and shallow resistivity on a logarithmic scale from 0.2 to 2,000 ohm-metres. Track 3: neutron porosity and bulk density, with an orange crossover in the gas sand near 5,200 feet. Track 4: sonic transit time

A synthetic well log with gamma ray and caliper, resistivity, neutron-density and sonic tracks (made-up data, not a real well). Try the interactive version.

In water-well records the same words mean something simpler: the driller's report of the materials drilled, the casing and the water level. This guide is about the geophysical log used in oil, gas, geothermal and groundwater work, with a short section on water well logs at the end.

Key takeaways
  • A well log plots several measurements against one depth axis that increases downwards, in side-by-side tracks.
  • Gamma ray separates shale from clean sand or carbonate; resistivity, on a logarithmic scale, separates salt water from oil and gas.
  • Neutron porosity and bulk density together give porosity, and where the density curve crosses to the left of the neutron curve, gas is the usual cause.
  • Logs are exchanged as LAS text files and compared between wells by matching distinctive curve shapes.

Wireline logging and logging while drilling​

There are two ways to get the measurements.

  • Wireline logging. After a section of hole is drilled, the drill string is pulled out and a string of tools (a sonde) is lowered on an armoured cable. The logs are recorded as the tools are pulled back up at a steady speed, and the data travel up the cable to a truck or cabin at the surface. The first electrical log was run this way at Pechelbronn, in Alsace, France, in 1927.
  • Logging while drilling (LWD). The sensors sit in the drill string just above the bit and measure the rock minutes or hours after it is drilled. A small part of the data is sent to the surface in real time as pressure pulses in the drilling mud, which is slow; the full-resolution data are stored in the tool's memory and read out when it comes back to the surface. Real-time LWD lets drillers steer a horizontal well along a thin reservoir.

Because LWD measures before much drilling fluid has soaked into the rock, its readings are less affected by invasion (explained under resistivity below). Wireline tools usually give a wider choice of measurements. Many wells get both.

The layout of a well log: tracks, scales and depth​

A printed or on-screen log is a set of vertical strips called tracks, all sharing one depth scale. Depth increases downwards, as in the well. In the classic layout the depth column sits between track 1 on the left and tracks 2 and 3 on the right, and that is the layout the live log on this page uses.

CurveCommon mnemonicWhat it measuresUnitsUsual scaleUsual track
Gamma rayGRNatural radioactivity of the rockAPI units0 to 1501
Spontaneous potentialSPNatural voltage between the mud and the formationmVRelative, no fixed zero1
CaliperCALIDiameter of the holeinches6 to 161
Deep resistivityRT, RD, ILDResistivity of the formation beyond the invaded zoneohm·m0.2 to 2,000, logarithmic2
Shallow resistivityRXO, MSFLResistivity of the zone flushed by mud filtrateohm·mSame as deep2
Neutron porosityNPHIHydrogen content, read as porosityv/v or porosity units0.45 to −0.153
Bulk densityRHOBDensity of rock plus pore fluidg/cm³1.95 to 2.95 on a limestone-compatible scale3
SonicDTTime for sound to travel one foot of rockµs/ft140 to 403 or its own

Mnemonics vary between service companies and tool generations, so always read them from the log header or the file. Three habits of the layout catch out newcomers:

  • Some scales run backwards. Neutron porosity and sonic transit time increase to the left, so that high porosity plots on the same side for every porosity curve.
  • Resistivity is logarithmic. Readings range from below 1 ohm·m in salty, water-filled rock to thousands in tight or hydrocarbon-bearing rock, so each decade of resistivity gets the same width.
  • Depth is measured along the hole. The depth on a log is measured depth (MD), the length of hole from a reference point such as the rig floor. In a deviated or horizontal well it is longer than the true vertical depth (TVD).

The combination of gamma ray, resistivity and neutron-density is called a triple combo, and it is the minimum log suite on many wells.

How to read a well log, curve by curve​

An idealised well log with depth increasing downwards. A rock column on the left, then three tracks. Gamma ray from 0 to 150 API, with the clean side of a 75 API cutoff shaded yellow and the shale side grey. Deep resistivity on a logarithmic scale from 0.2 to 2,000 ohm-metres. Neutron porosity (dashed) and bulk density (solid) on compatible sandstone scales, with the crossover shaded orange. From the top: shale with high gamma ray, low resistivity and neutron well left of density; a gas sand with low gamma ray, high resistivity and density crossing to the left of neutron; a gas-water contact where resistivity drops and the crossover ends; a water sand with low resistivity and the curves overlaid; shale; an oil sand with high resistivity and little crossover; shale; a tight limestone with high resistivity but almost no porosity; shale

How common rocks and fluids look on the three main tracks. The curves are idealised: real logs are noisy and bed boundaries are gradual.

Gamma ray: shale or clean rock​

The gamma ray tool counts natural gamma rays from potassium, thorium and uranium. Clay minerals hold most of these elements, so shales read high, often 100 API or more, while clean sandstones, limestones and dolomites usually read low, around 20 to 40 API. Interpreters draw a cutoff between the two and shade each side, as the live log does.

The rule has well-known exceptions. Sandstones rich in potassium feldspar or mica read high although they are clean, and uranium can make a clean limestone look shaly. A spectral gamma ray tool, which splits the count into potassium, thorium and uranium, separates those cases.

The shape of the gamma ray curve through a sand body also says how it was laid down. A curve that gets cleaner upwards (a funnel) suggests the sand coarsens upwards, as in a prograding delta front. One that gets shalier upwards (a bell) suggests it fines upwards, as in a river channel fill. A blocky curve suggests a uniform sand.

Spontaneous potential​

The SP curve records a small natural voltage that develops where the drilling mud and the formation water have different salinities. Shales give a fairly straight baseline, and permeable beds deflect away from it, to the left when the mud is fresher than the formation water. SP needs a water-based mud to work, and it can't be read in quantitative terms without the mud and water resistivities, so the gamma ray is the more common shale indicator on modern logs.

Caliper: is the hole in good shape?​

The caliper measures the hole diameter. Compare it with the bit size from the header:

  • a larger hole than the bit is a washout, common in weak shales, and it spoils the pad tools such as density, which then read too low;
  • a slightly smaller hole than the bit, in a sand, usually means mudcake: the mud's solids have built a skin on the wall of a permeable bed, which is a useful sign of permeability.

Resistivity: what is in the pores​

Rock grains barely conduct electricity, so a rock's resistivity depends mostly on the water in its pores. Salty formation water conducts well and gives low resistivity. Oil and gas don't conduct, so a porous bed full of hydrocarbon reads high.

Archie's equation turns this into a number, the water saturation SwS_w, the fraction of the pore space filled with water:

Sw=(a Rwϕm Rt)1/nS_w = \left( \frac{a \, R_w}{\phi^m \, R_t} \right)^{1/n}

where RtR_t is the deep resistivity, RwR_w the resistivity of the formation water, ϕ\phi the porosity, and aa, mm and nn are constants of the rock, often taken as 1, 2 and 2 for a clean sand. It holds for clean rock; shaly sands need modified versions.

Drilling mud filtrate soaks into permeable beds near the hole and pushes the original fluid back. This is invasion. Shallow-reading tools see the flushed zone (RxoR_{xo}) and deep-reading tools see the undisturbed rock (RtR_t), so separation between the shallow and deep curves shows that fluid has moved, which means the bed is permeable.

Neutron and density: porosity and the gas crossover​

The density tool fires gamma rays into the wall of the hole and counts how many scatter back, which gives the bulk density of rock plus fluid. If you know the grain density of the rock (2.65 g/cm³ for quartz sandstone, 2.71 for limestone, 2.87 for dolomite) and the fluid density, porosity follows from a simple mass balance:

ϕD=ρma−ρbρma−ρf\phi_D = \frac{\rho_{ma} - \rho_b}{\rho_{ma} - \rho_f}

The neutron tool measures how much hydrogen is in the rock, which in clean rock is mostly the water or oil in the pores, and reports it as porosity. It is usually calibrated in limestone units: correct for limestone full of water, and slightly off for other rocks.

The two curves are plotted together on compatible scales, so that in a clean, water-filled rock of the scale's matrix they lie on top of each other. The separations then mean something:

  • Shale: the neutron reads much higher porosity than the density, because clays hold water bound in their structure. The neutron plots well to the left of the density.
  • Gas: gas is light, so the density reads too much porosity, and it holds little hydrogen, so the neutron reads too little. The density curve crosses to the left of the neutron. This crossover is the classic gas signature. Invasion can push the gas away from the hole and weaken it.
  • Oil: oil has about as much hydrogen as water and is only a little lighter, so an oil sand shows little or no crossover, and the resistivity has to identify it.
  • Lithology: a rock with a different grain density from the scale's matrix also separates the curves. Clean sandstone on a limestone-compatible scale shows density to the left of neutron by several porosity units with no gas at all, and dolomite shows the opposite.

In a gas zone, a quick porosity estimate is the root mean square of the two: ϕ≈(ϕN2+ϕD2)/2\phi \approx \sqrt{(\phi_N^2 + \phi_D^2)/2}.

Sonic​

The sonic tool measures the time a sound wave takes to travel through the rock, as slowness in microseconds per foot. Porous rock is slower than tight rock, and the Wyllie time-average equation turns the reading into porosity:

Δt=ϕ Δtf+(1−ϕ) Δtma\Delta t = \phi \, \Delta t_f + (1 - \phi) \, \Delta t_{ma}

where Δtf\Delta t_f is the fluid's transit time (about 189 µs/ft for water) and Δtma\Delta t_{ma} the rock matrix's (about 55.5 µs/ft for sandstone). Sonic logs also tie the well to seismic data, since together with density they give the rock's acoustic impedance.

A worked example: reading one depth​

Hover over the gas sand in the live log at about 5,226 ft and the readout gives, among other values:

CurveReadingWhat it says
GR28 APIWell below the 75 API cutoff: clean sand
CALI8.3 inJust under the 8.5 in bit size: mudcake, so the sand is permeable
RHOB2.20 g/cm³Density porosity (2.65 − 2.20) / (2.65 − 1.00) = 27%
NPHI0.19Neutron porosity 19%, lower than density: crossover, so gas
RT62 ohm·mHigh for a porous sand

The root mean square porosity is √((0.27² + 0.19²) / 2) ≈ 0.235, or about 24%. With the synthetic log's formation water resistivity of 0.05 ohm·m and Archie's constants of 1, 2 and 2:

Sw=0.05/(0.2352×62)≈0.12S_w = \sqrt{0.05 / (0.235^2 \times 62)} \approx 0.12

So about 12% of the pore space holds water and the rest holds gas. As a check, the same sand full of water would read Rw/ϕ2≈0.9R_w / \phi^2 \approx 0.9 ohm·m, and 62 ohm·m is about 68 times that. Since Sw=0.9/62S_w = \sqrt{0.9 / 62}, the same 12% falls out.

Move down to about 5,240 ft, below the gas-water contact, and the same sand reads about 0.8 ohm·m with no crossover: it is full of water.

Well log signatures at a glance​

A quick-look reading combines the curves in this order: shale or not, porous or not, then what fluid.

BedGamma rayDeep resistivityNeutron-densityReading
ShaleHighLow, a few ohm·mNeutron well left of densitySeal or source rock, not reservoir
Water sandLowLowCurves overlay (compatible scale)Porous, water-bearing
Oil sandLowHighLittle or no crossoverPorous, oil-bearing
Gas sandLowHighDensity crosses left of neutronPorous, gas-bearing
Tight limestoneLowVery highBoth read low porosityHigh resistivity from lack of pores, not hydrocarbon

The LAS file format​

Most well log data is exchanged as LAS (Log ASCII Standard) files, a plain-text format defined and maintained by the Canadian Well Logging Society. Version 2.0 is the most widely used; version 3.0 adds other data such as formation tops, core data and deviation surveys. A shortened LAS 2.0 file looks like this:

~VERSION INFORMATION
VERS. 2.0 : CWLS LOG ASCII STANDARD - VERSION 2.0
WRAP. NO : ONE LINE PER DEPTH STEP
~WELL INFORMATION
STRT.FT 5000.00 : START DEPTH
STOP.FT 5600.00 : STOP DEPTH
STEP.FT 0.50 : STEP
NULL. -999.25 : NULL VALUE
WELL. SYNTHETIC WELL : WELL
~CURVE INFORMATION
DEPT.FT : DEPTH
GR .GAPI : GAMMA RAY
RT .OHMM : DEEP RESISTIVITY
NPHI.V/V : NEUTRON POROSITY, SANDSTONE UNITS
RHOB.G/C3 : BULK DENSITY
~A DEPT GR RT NPHI RHOB
5000.00 107.9 2.31 0.362 2.476
5000.50 111.4 2.29 0.358 2.481
5001.00 -999.25 2.27 0.355 2.479

Each section starts with a tilde: ~V (version), ~W (well information, including the depth range, the step and the null value), ~C (one line per curve, with its mnemonic and unit), the optional ~P (parameters such as mud properties) and ~O (other notes), and finally ~A, the data, one row per depth. US logs are usually sampled twice per foot, so the step is 0.5 ft.

When you load a LAS file into a chart, replace the null value with a gap rather than plotting it, read the units from the ~C section rather than assuming them, and check the sign of STEP, because some files list depths from the bottom up. Full-resolution data from the logging company often comes in binary formats such as DLIS, with LAS made from it for exchange.

Correlating well logs between wells​

Correlation means matching the same rock layers from one well to the next, so a geologist can map a reservoir between wells. The usual approach:

  1. Display the wells side by side at the same vertical scale, with the gamma ray (or SP) and resistivity curves.
  2. Find marker beds that are easy to recognise and widespread, such as a thin limestone with very low gamma ray and very high resistivity, or a highly radioactive shale.
  3. Hang the wells on one marker (align them at that depth) to see how layers thicken, thin or pinch out below it, or on a sea-level datum to see the structure.
  4. Match the shapes of the curves between markers, such as funnel and bell gamma ray patterns, allowing for beds that thin or change character between wells.
  5. Watch for missing or repeated sections, which mark faults.

In deviated wells, convert measured depth to true vertical depth below a common datum before comparing thicknesses or depths, or the beds will appear thicker and deeper than they are.

Water well logs and geothermal wells​

In the United States and elsewhere, a "well log" for a water well usually means the well report the driller files with the state. It records who owns the well, the depth, the materials drilled in each interval, the casing and screen, the static water level and the yield from a pump or air test. These reports are public in many states and are searched by address or location.

Water wells are also logged with the same geophysical tools, most often gamma ray, resistivity, caliper and temperature, to find aquifers and the depths where water flows into the hole. The reading rules on this page apply, with one change: fresh groundwater has a high resistivity, so a high-resistivity sand in a shallow aquifer is fresh water, not oil.

Geothermal wells use the same measurements, but the targets are usually hot, fractured rock rather than porous sand. Temperature logs and logs that image fractures in the borehole wall carry more weight there than porosity curves.

Common well log interpretation mistakes​

  • Treating every high resistivity as pay. Tight rock with almost no porosity, fresh water and coal all read high. Check porosity on the neutron and density first.
  • Calling a lithology effect gas. On a limestone-compatible scale, clean sandstone shows the density to the left of the neutron with no gas. Check which matrix the neutron and density scales assume before reading the crossover.
  • Trusting pad tools in a washout. Where the caliper shows an enlarged hole, the density reads too low and the neutron too high. Flag those intervals instead of computing porosity there.
  • Using one gamma ray cutoff everywhere. Feldspar-rich or micaceous sands read high and can be logged as shale. Pick the cutoff from clean and shale beds in the same well, and use spectral gamma ray where it is available.
  • Mixing measured and true vertical depth. Comparing a deviated well's measured depths with a vertical well's depths shifts every bed. Correlate in true vertical depth.
  • Plotting resistivity on a linear scale. Everything below about 10 ohm·m collapses against the axis, and that is where the water-oil contrast usually sits.
  • Plotting null values as data. A −999.25 plotted as a reading draws spikes off the chart. Turn nulls into gaps when you load the file.
  • Ignoring depth mismatches between runs. Logs from separate runs or from LWD and wireline can be a few feet apart. Depth-match them on the gamma ray, which most runs record, before comparing curves.

How to build a well log viewer in JavaScript, React or Angular​

Well log viewers need tall charts with tens of thousands of depth samples per curve, several curves per track and every track zooming together, which is the kind of large, interactive data SciChart.js draws with WebGL.

The live log below is synthetic: a seeded, made-up well from 5,000 to 5,600 ft, sampled every half foot. Its sand and shale layers follow the textbook rules on this page, including Archie's equation and the Wyllie equation, with a gas sand over a water sand, an oil sand, a tight limestone and a washout in one shale. Hover to read every curve at the cursor depth, with a quick-look reading of porosity, water saturation and fluid. Scroll to zoom in depth, drag to pan, and double-click to reset; all four tracks move together. Move the Gamma ray sand/shale cutoff slider to change where the gamma ray track switches from sand to shale shading.

Here is the code for the four tracks. The synthetic log and the readout are plain JavaScript; SciChart.js draws the tracks, the shading and the depth cursor. The React and Angular versions show the core of it: side-by-side tracks of your own curves, with depth running downwards and synchronised zooming.

// A well log with SciChart.js: four vertical tracks side by side, sharing one depth axis that increases
// downwards, with synchronised zoom and pan and one depth cursor across every track
const {
SciChartSurface,
SciChartHorizontalGroup,
NumericAxis,
LogarithmicAxis,
NumberRange,
EAutoRange,
EAxisAlignment,
EXyDirection,
ENumericFormat,
FastLineRenderableSeries,
FastBandRenderableSeries,
XyDataSeries,
XyyDataSeries,
SciChartJsNavyTheme,
CursorModifier,
MouseWheelZoomModifier,
ZoomPanModifier,
ZoomExtentsModifier,
translateFromCanvasToSeriesViewRect
} = SciChart;
// or, for npm, import { SciChartSurface, ... } from "scichart"

const DEPTH_RANGE = new NumberRange(5000, 5600);
const colours = { gr: "#3BD16F", cali: "#C8D3E8", rt: "#EF5350", rxo: "#50C7E0", nphi: "#50C7E0", rhob: "#EF5350", dt: "#C3B4F0" };
// Neutron and density share one track on compatible scales: NPHI 0.45 to -0.15 (sandstone units) lines up
// with RHOB 1.90 to 2.90 g/cc, so the two curves overlay in a water-filled sand. Convert RHOB to that scale:
const densityOnNeutronScale = (rhob) => 0.45 - 0.6 * (rhob - 1.9);

// One track: a vertical chart. The x-axis is depth, on the left or right and increasing downwards;
// each curve gets a y-axis along the top with its own scale and colour
const group = new SciChartHorizontalGroup(); // gives every track the same header height, so depths line up
const createTrack = async (div, showDepth) => {
const { sciChartSurface, wasmContext } = await SciChartSurface.create(div, {
theme: new SciChartJsNavyTheme(),
padding: { top: 4, right: 4, bottom: 4, left: 4 }
});
sciChartSurface.xAxes.add(
new NumericAxis(wasmContext, {
axisAlignment: EAxisAlignment.Right, // a vertical chart: x runs down the side, top to bottom
visibleRange: DEPTH_RANGE,
autoRange: EAutoRange.Never,
isVisible: showDepth,
axisTitle: showDepth ? "Depth (ft)" : undefined,
axisTitleStyle: { fontSize: 13 },
labelFormat: ENumericFormat.Decimal,
labelPrecision: 0,
drawMinorGridLines: true
})
);
group.addSurfaceToGroup(sciChartSurface);
return { sciChartSurface, wasmContext };
};
// On a vertical chart a top axis runs right to left unless flipped, so flippedCoordinates: true puts
// low values on the left, as on a printed log. Scales that run backwards (neutron, sonic) leave it false.
const curveAxis = (wasmContext, id, title, colour, min, max, options = {}) =>
new NumericAxis(wasmContext, {
id,
axisAlignment: EAxisAlignment.Top,
flippedCoordinates: true,
axisTitle: title,
axisTitleStyle: { color: colour, fontSize: 13 },
labelStyle: { color: colour, fontSize: 11 },
visibleRange: new NumberRange(min, max),
autoRange: EAutoRange.Never,
drawMinorGridLines: false,
labelPrecision: 0,
...options
});
const xy = (wasmContext, values) => new XyDataSeries(wasmContext, { xValues: log.depth, yValues: values, isSorted: true, containsNaN: false });

// Track 1: gamma ray, shaded between the curve and a sand/shale cutoff, and the caliper
const track1 = await createTrack(ui.trackDivs[0], true);
{
const { sciChartSurface, wasmContext } = track1;
sciChartSurface.yAxes.add(
curveAxis(wasmContext, "gr", "GR (API)", colours.gr, 0, 150),
curveAxis(wasmContext, "cali", "CALI (in)", colours.cali, 6, 16, { drawMajorGridLines: false })
);
const cutoff = Number(ui.cutoffInput.value);
const grSeries = new XyyDataSeries(wasmContext, { xValues: log.depth, yValues: log.gr, y1Values: log.gr.map(() => cutoff), isSorted: true });
const grBand = new FastBandRenderableSeries(wasmContext, {
yAxisId: "gr",
dataSeries: grSeries,
stroke: colours.gr,
strokeThickness: 1.5,
strokeY1: "#FFFFFF66", // the cutoff line
strokeY1DashArray: [4, 4],
fill: "#8A7F7099", // gamma ray above the cutoff (right of the line): shale
fillY1: "#E8C547AA" // gamma ray below the cutoff (left of the line): sand, or clean carbonate
});
sciChartSurface.renderableSeries.add(
grBand,
new FastLineRenderableSeries(wasmContext, { yAxisId: "cali", dataSeries: xy(wasmContext, log.cali), stroke: colours.cali, strokeThickness: 1, strokeDashArray: [6, 3] })
);
// Move the cutoff with the slider
ui.cutoffInput.addEventListener("input", () => {
const value = Number(ui.cutoffInput.value);
ui.cutoffValue.textContent = String(value);
grSeries.clear();
grSeries.appendRange(log.depth, log.gr, log.gr.map(() => value));
});
}

// Track 2: resistivity on a logarithmic scale, 0.2 to 2,000 ohm.m, deep and shallow readings
const track2 = await createTrack(ui.trackDivs[1], false);
{
const { sciChartSurface, wasmContext } = track2;
sciChartSurface.yAxes.add(
new LogarithmicAxis(wasmContext, {
axisAlignment: EAxisAlignment.Top,
flippedCoordinates: true,
axisTitle: "RT, RXO (ohm.m)", // deep (solid) and shallow (dashed)
axisTitleStyle: { color: colours.rt, fontSize: 13 },
labelStyle: { color: "#C8D3E8", fontSize: 11 },
logBase: 10,
// A label and major gridline at each power of ten, minor gridlines at 2, 3 ... 9 times it
autoTicks: false,
majorDelta: 1,
minorDelta: 1,
labelFormat: ENumericFormat.Decimal,
labelPrecision: 0,
visibleRange: new NumberRange(0.2, 2000),
autoRange: EAutoRange.Never,
drawMinorGridLines: true
})
);
sciChartSurface.renderableSeries.add(
new FastLineRenderableSeries(wasmContext, { dataSeries: xy(wasmContext, log.rxo), stroke: colours.rxo, strokeThickness: 1, strokeDashArray: [6, 3] }),
new FastLineRenderableSeries(wasmContext, { dataSeries: xy(wasmContext, log.rt), stroke: colours.rt, strokeThickness: 2 })
);
}

// Track 3: neutron porosity and bulk density, shaded where the density curve crosses to the left (gas)
const track3 = await createTrack(ui.trackDivs[2], false);
{
const { sciChartSurface, wasmContext } = track3;
sciChartSurface.yAxes.add(
curveAxis(wasmContext, "nphi", "NPHI (v/v)", colours.nphi, -0.15, 0.45, { flippedCoordinates: false, labelPrecision: 2 }),
curveAxis(wasmContext, "rhob", "RHOB (g/cc)", colours.rhob, 1.9, 2.9, { drawMajorGridLines: false, labelPrecision: 2 })
);
sciChartSurface.renderableSeries.add(
new FastBandRenderableSeries(wasmContext, {
yAxisId: "nphi",
dataSeries: new XyyDataSeries(wasmContext, { xValues: log.depth, yValues: log.nphi, y1Values: log.rhob.map(densityOnNeutronScale), isSorted: true }),
stroke: colours.nphi,
strokeThickness: 1.5,
strokeDashArray: [6, 3],
strokeY1: colours.rhob, // the density curve, drawn on the neutron scale so it sits where RHOB reads
// The band picks its fill by which line is on top on screen, and this axis is not flipped:
fill: "#F6A13ACC", // density left of neutron: the crossover that flags gas
fillY1: "#9AA5B11A" // neutron left of density: shale or tight rock, barely shaded
})
);
}

// Track 4: sonic transit time, 140 to 40 microseconds per foot (slower rock to the left)
const track4 = await createTrack(ui.trackDivs[3], false);
{
const { sciChartSurface, wasmContext } = track4;
sciChartSurface.yAxes.add(curveAxis(wasmContext, "dt", "DT (us/ft)", colours.dt, 40, 140, { flippedCoordinates: false, autoTicks: false, majorDelta: 20, minorDelta: 10 }));
sciChartSurface.renderableSeries.add(
new FastLineRenderableSeries(wasmContext, { yAxisId: "dt", dataSeries: xy(wasmContext, log.dt), stroke: colours.dt, strokeThickness: 1.5 })
);
}

// The depth cursor: a crosshair that also passes the depth under the mouse to the readout
class DepthCursorModifier extends CursorModifier {
onDepth;
constructor(options, onDepth) {
super(options);
this.onDepth = onDepth;
}
modifierMouseMove(args) {
super.modifierMouseMove(args);
if (!args.isMaster) return; // the other tracks in the group get a copy of the event; read it once
const point = translateFromCanvasToSeriesViewRect(args.mousePoint, this.parentSurface.seriesViewRect);
if (point) this.onDepth(this.parentSurface.xAxes.get(0).getCurrentCoordinateCalculator().getDataValue(point.y));
}
}

// Synchronise the depth axes, the cursor and zooming across all four tracks
const surfaces = [track1, track2, track3, track4].map((t) => t.sciChartSurface);
let syncing = false;
for (const surface of surfaces) {
surface.xAxes.get(0).visibleRangeChanged.subscribe((args) => {
if (syncing) return;
syncing = true;
for (const other of surfaces) if (other !== surface) other.xAxes.get(0).visibleRange = args.visibleRange;
syncing = false;
});
surface.chartModifiers.add(
// Zoom and pan in depth only: each curve keeps its standard scale
new ZoomPanModifier({ xyDirection: EXyDirection.XDirection }),
new MouseWheelZoomModifier({ xyDirection: EXyDirection.XDirection }),
new ZoomExtentsModifier({ xyDirection: EXyDirection.XDirection }),
new DepthCursorModifier(
{ modifierGroup: "depth", showTooltip: false, showYLine: false, showAxisLabels: true, crosshairStroke: "#FFFFFFAA" },
(depth) => showReadout(depth)
)
);
}

Key points:

  • A vertical chart comes from the axis alignment: the depth x-axis is aligned left or right, so it runs down the screen, and each curve's y-axis is aligned to the top. flippedCoordinates sets which way each curve scale runs.
  • Resistivity uses a LogarithmicAxis from 0.2 to 2,000 ohm·m, with majorDelta: 1 and minorDelta: 1 giving a label at each power of ten and minor gridlines in between.
  • The shading is FastBandRenderableSeries: between the gamma ray and a cutoff line in track 1, and between neutron and density, with the density drawn on the neutron scale, in track 3. The band picks its fill colour by which line is on top, so the crossover gets its own colour.
  • The tracks are separate surfaces. A SciChartHorizontalGroup gives them the same header height so depths line up, visibleRangeChanged copies the depth range from one to the others, and a shared modifierGroup moves the cursor line across all of them.

See it in the demo app: JavaScript oil and gas dashboard · React oil and gas dashboard · Angular oil and gas dashboard.

Go deeper: SciChart.js vertical chart synchronisation documentation, vertical charts, the logarithmic axis documentation and the band series documentation. For more on log scales, see the log scale graph guide.

Frequently asked questions​

What is a well log?​

A well log is a record of measurements made down a borehole and plotted against depth. In oil, gas and geothermal work it means curves such as gamma ray, resistivity, neutron porosity, bulk density and sonic, recorded by tools lowered on a cable (wireline) or carried in the drill string (logging while drilling). In water-well records, a well log usually means the driller's report of the materials drilled, the casing and the water level.

How do you read a well log?​

Check the header and scales first: depth units, curve mnemonics, and whether resistivity is on a logarithmic scale. Then use the gamma ray to split shale (high readings) from clean sand or carbonate (low readings), the caliper to find bad hole, and the neutron and density curves to find porous beds. In a porous bed, high deep resistivity suggests oil or gas and low resistivity suggests salt water; a density-neutron crossover points to gas. Confirm with the sonic and with nearby wells.

What does density-neutron crossover mean?​

On a compatible scale, the neutron porosity and bulk density curves lie on top of each other in a clean, water-filled rock of the scale's matrix. Gas makes the rock lighter, so the density curve reads more porosity, and it holds less hydrogen, so the neutron curve reads less. The two curves cross, with density to the left of neutron. A crossover can also come from lithology, for example sandstone plotted on a limestone-compatible scale, so check the scale before calling gas.

What is a LAS file?​

A LAS (Log ASCII Standard) file is a plain-text file of well log data, defined and maintained by the Canadian Well Logging Society. It has sections that start with a tilde: ~V for the version, ~W for well information such as the start and stop depth, step and null value, ~C for the curve names and units, optional ~P and ~O sections, and ~A for the data, one row per depth. LAS 2.0 is the most widely used version.

How do you read a water well log?​

A water well log, or well report, is filed by the driller. Read it from the top down: the depth intervals and the material drilled in each (clay, sand, gravel, rock), where water was found, the casing and screen depths, the static water level, and the yield from the pump or air test. Some water wells also have geophysical logs such as gamma ray, resistivity and caliper, which are read the same way as oil and gas logs.

How do I plot a well log in JavaScript?​

Make each track a vertical chart: put depth on the x-axis and align it to the left or right edge so it runs down the screen, and give each curve its own y-axis along the top with its standard scale, using a logarithmic axis for resistivity. Place the tracks side by side and synchronise their depth ranges, zooming and cursor. SciChart.js does this with EAxisAlignment, LogarithmicAxis, FastBandRenderableSeries for shading and SciChartHorizontalGroup.

Sources​