Skip to content
A

Live: BoreholeViewer

Loading the Python runtime…

This page runs Python in your browser through marimo WebAssembly islands, like the CPTViewer example. The first run downloads the Python runtime and the packages, which can take a minute.

brodata fetches a geotechnical borehole (BHR-GT) from the public BRO API and parses the XML:

layers_from_bhrgt reads the descriptive log and colors each layer by its BRO geotechnical soil name, using the built-in lithology table:

Hover a layer to read its boundaries and soil name; zoom and pan work as in the CPTViewer example.

The layers trait itself is plain dicts, so a log from any other source (AGS, CSV, your own interpretation) works without a converter; the BoreholeViewer reference has the shape.