Quick Start
Make sure beratools is installed. Run the command in MiniConda/Anaconda Prompt to start BERA Tools main gui.
$ conda activate bera
$ beratools
Example Data
Start working with BERA Tools using example data.
Modules
The tools come in modules. Each module has its own site with its tool pages, technical notes and API.
| Module | Tools |
|---|---|
| Mapping | Line quality control, vertex optimization, centerlines and footprints |
| PC2Products (LiDAR) | LiDAR point cloud processing: ground, DTM, CHM/DSM, hummocks and hollows, surface water |
| Raster2Products | Rasters from other rasters, such as a normalized DTM |
Main GUI
BERA Tools provide a light weight GUI to use tools.

The BERA Tools main GUI consists of the following components:
| Panel / Section | Description |
|---|---|
| Tool Selection Panel (Left) | A tree view listing all available tools, organized by toolbox. Users can search for tools using the search bar at the top. Selecting a tool updates the main panel. |
| Tool History / Pipeline tabs (Left, below tool selection) | Tool history lists recently used tools for quick access, with options to clear or remove items. Pipeline chains tools into steps that run one after another (see Building a pipeline). |
| Main Panel (Right) | Top Section: Shows the currently selected tool name, with buttons for advanced options, viewing code, and help. Tool Parameters: Dynamic widgets for entering parameters required by the selected tool. Bottom Section: Includes a slider to select the number of CPU cores, a button to load default arguments, and buttons to run or cancel the tool. |
| Output and Progress (Bottom Right) | A text area displays output, logs, and messages from tool execution. A progress bar and label show the status of running tools. |
Workflow Diagram
graph TD
A["Check Seed Line"] --> B["Vertex Optimization"]
B --> C["Centerline"]
A --> C["Centerline"]
C --> D1["Canopy Footprint<br/>Absolute"]
C --> D2["Canopy Footprint<br/>Relative"]
C --> S["Smooth Centerline"]
S --> D1
S --> D2
D1 --> E["Ground Footprint"]
D2 --> E["Ground Footprint"]
E --> F["Footprint Plots<br/>and Subplots"]
%% Style optional steps (Vertex Optimization, Smooth Centerline)
style B fill:#eee,stroke:#aaa,color:#666,stroke-width:1px,stroke-dasharray:5 5;
style S fill:#eee,stroke:#aaa,color:#666,stroke-width:1px,stroke-dasharray:5 5;
click A "https://beratool.github.io/beratools/mapping/user/check_seed_line/" "Check Seed Line"
click B "https://beratool.github.io/beratools/mapping/user/vertex_optimization/" "Vertex Optimization"
click C "https://beratool.github.io/beratools/mapping/user/centerline/" "Centerline"
click D1 "https://beratool.github.io/beratools/mapping/user/canopy_footprint_abs/" "Canopy Footprint Absolute"
click D2 "https://beratool.github.io/beratools/mapping/user/canopy_footprint_rel/" "Canopy Footprint Relative"
click E "https://beratool.github.io/beratools/mapping/user/ground_footprint/" "Ground Footprint"
click S "https://beratool.github.io/beratools/mapping/user/smooth_centerline/" "Smooth Centerline"
click F "https://beratool.github.io/beratools/mapping/user/footprint_plots/" "Footprint Plots and Subplots"
Running the tools
Select a tool, fill in the parameters and click Run. The tool's output streams into the log while it runs.
bt list-tools # list the tool subcommands
bt centerline # show the parameters for one tool
bt centerline --in_line "<lines.gpkg>|<layer>" --in_raster <chm.tif> --out_line "<out.gpkg>|centerline" --proc_segments True -p 4
bt (also available as beratools) reads each tool's parameters from its module's tools.json, converts
values to the right type and rejects anything that isn't one of a list parameter's allowed values.
python -m beratools.modules.mapping.centerline --in_line "<lines.gpkg>|<layer>" --in_raster <chm.tif> --out_line "<out.gpkg>|centerline" --proc_segments True
-p/--processes sets the requested number of workers, and -l/--log_level sets the log level.
Building a pipeline
The Pipeline tab, next to Tool history in the GUI, chains tools together so they run one after another, without writing a script.

The pipeline above chains the six mapping tools into a ground footprint workflow. Ground Footprint is selected: its centerline and footprint inputs both link to step 5, and those fields are greyed out in the tool form.
- Add steps: drag tools from Tools available into the Pipeline tab. Dragging over the tab switches to it. You can also select a tool and click the add button. Drag steps, or use the arrow buttons, to change their order.
- Set each step's parameters: click a step to open its parameters in the tool form. Your changes are kept in the step.
-
Link steps: Inputs from earlier steps sets which earlier step each input reads from, with one choice per input:
- a line input (
in_line) can come from Check Seed Lines, Vertex Optimization, Centerline or the centerline output of Canopy Footprint (Relative Threshold); - a footprint input (
in_footprint) can come from a canopy footprint step.
Each input links to the latest earlier step that makes what it needs, which is not always the step just before it, and the links are reset this way whenever a step is added, moved or removed, replacing any you chose by hand. Linked fields are greyed out in the form and show what they will read, for example
D:/lines.gpkg|footprint. Choose Its own value to use the path in the form instead. The list shows each step's links, for example4. Ground Footprint ← steps 2, 3. 4. Run: click Run Pipeline. The steps run in order with the CPU cores set by the slider, and their output streams into the log. The pipeline stops if a step fails, if a linked file is missing, or if you click Cancel. - a line input (
For example, add Check Seed Lines, Centerline, Canopy Footprint (Absolute Threshold) and Ground Footprint. The centerline step reads the checked lines, the canopy footprint reads the centerlines, and the ground footprint reads both the centerlines and the canopy footprint. You only set the seed lines, the CHM for each step that needs one, and each step's output.
Saving and running a pipeline without the GUI
The buttons above the list save and load pipelines as .json files. A saved pipeline also runs from
the command line:
python -m beratools.core.pipeline my_pipeline.json --processes 4
Note
A step only counts as failed if its tool exits with an error. If a tool prints a warning and stops normally instead, the next step then fails on its missing input, so check the log.
Which inputs can link to which outputs is set in each module's tools.json, so new tools can join pipelines
without code changes. See Taking part in pipelines.
Data Preparation
BERA Tools start with two main types of input data:
- CHM (GeoTIFF).
- Seed Lines (polylines): rough centerlines of seismic lines, which helps to detect accurate centerline.
Ensure your input data meets the following criteria:
- Vector Format: Supported vector formats include GeoPackage (.gpkg), Shapefile (.shp).
- Raster Format: Supported raster formats include GeoTIFF (.tif).
- Coordinate System: Data should be in a projected coordinate system (e.g., UTM) for accurate distance measurements.
Troubleshooting
Windows GDAL/PROJ Warning
On Windows, BERA Tools may display a warning if GDAL_DATA or PROJ_LIB point to a different Python environment than the one running BERA Tools. This can happen when OSGeo4W or another GDAL install is configured globally while you run a conda/venv environment.
Example warning:
[GDAL/PROJ Warning] Potential env mismatch
Python env: C:\Users\you\miniconda3\envs\bera
GDAL_DATA : C:\OSGeo4W\share\gdal
PROJ_LIB : C:\OSGeo4W\share\proj
If you encounter GDAL/PROJ errors, ensure these env paths belong to this Python environment.
How to fix it:
- Prefer GDAL/PROJ bundled with your current Python environment.
- Remove or update GDAL_DATA/PROJ_LIB to point into the active Python environment.