BERA Tools
BERA Tools is successor of Forest Line Mapper. It is a toolset for enhanced delineation and attribution of linear disturbances in forests.
Quick Start
Here are the ways to install BERA Tools:
- Windows installer
- Install with Anaconda.
Windows Installer
Windows installer is provided with releases. Check the latest release. Signing is currently off by default; unsigned assets are named beratools-installer-x.y.z-unsigned.exe and identified as unsigned in the release notes. Windows may display an unknown-publisher or SmartScreen warning. Maintainers can enable SignPath per run according to the BERA Tools Code signing policy.
Install with Anaconda
Install with Anaconda works on Windows, macOS, and Linux.
-
Install Miniconda. Download Miniconda from Miniconda and install on your machine.
-
Download and save the file environment.yml.
-
Launch Anaconda Prompt and Change directory to where environment.yml is saved.
-
Run the command to install BERA Tools.
$ conda env create -n bera -f environment.yml
After the installation is done, a new environment named bera is created and BERA Tools is installed within it.
-
Activate the bera environment and launch BERA Tools main GUI:
$ conda activate bera $ beratools gui
- Download latest example data to try with BERA Tools.
For more information about installation, check the BERA Tools Installation.
Troubleshooting: CondaEnvException: Pip failed
environment.yml installs rpy2 with pip at the end of conda env create. If that step fails
(e.g. Pip subprocess error), create the environment without pip first, then install rpy2 yourself:
-
Open
environment.ymland comment out the pip section:# - pip: # - rpy2
-
Create and activate the environment:
$ conda env create -n bera -f environment.yml $ conda activate bera
-
Set the R paths (Windows Anaconda Prompt):
set "R_HOME=%CONDA_PREFIX%\Lib\R" set "PATH=%R_HOME%\bin\x64;%PATH%"
-
Install
rpy2with pip:$ python -m pip install rpy2
If pip still fails, check that the environment's Python starts with python -c "print('ok')". A
Python that does not start (e.g. "The file or directory is corrupted and unreadable") is the real
cause. Rebuild the environment with a different Python version.
PC2Products (LiDAR) Tools
The PC2Products (Point Cloud to Products) category turns LiDAR point clouds (.las / .laz) into
rasters such as a DTM, DSM, CHM and hummock/hollow maps. The tools run R and
lidR through rpy2; environment.yml
and pixi.toml include R, and the tools install the R packages they need the first time they run
(see R for the PC2Products tools).
| Tool | bt subcommand |
|---|---|
| LiDAR data info | las_info |
| Raster Cell size from LiDAR data | cellsize |
| Build LiDAR Spatial Index | lidar_index |
| Tile LiDAR Data | tile |
| Ground Classify Using CSF | gnd_csf |
| Generate DTM from LiDAR Data | dtm |
| Normalize LiDAR Data | normalize |
| Generate CHM or DSM from LiDAR Data | chm_dsm |
| Detect Hummock and Hollow from LiDAR Data | hh |
| Surface Water Mapping | surface_water |
| Depth-to-Water from Surface Water | dtw |
| Seismic Line Disturbance Analysis | line_analysis |
$ beratools dtm --in_las_folder tests/data/LiDAR --out_folder tests/data/LiDAR/Raster_Output --style tin
Sample tiles are in tests/data/LiDAR/, and examples/ has two scripts that run the LiDAR tools in
sequence (see examples/README.md).
Things to consider for running the R tools in parallel
Ground classification, DTM, normalization, CHM/DSM and hummock/hollow split the point cloud into tiles and process them with several R workers. How many workers a computer runs depends mostly on its free memory and the point density, as each worker must hold the densest tile it gets. A few files or tiles much denser than the rest don't hold the whole run back: they are processed after the others with fewer workers.
-
Memory per worker: about (1.6 GB + bytes per point × the points in a tile with its buffer) ÷ 0.6 of free memory, as the tools share 60% of the memory free when they start. The bytes per point were measured for each tool: 260 for ground classification and IDW normalization, 160 for the IDW DTM, up to 670 for the tools that triangulate the ground points (TIN DTM, TIN normalization and hummock/hollow; less for data with less ground, which they sample before planning; the table below is for all ground), 850 for the pit-free CHM/DSM, and about 120 plus 450 per raster cell for the TIN CHM/DSM (see How all the tools behave). Tiles are 100 to 500 m, chosen for each 500 m block from the density, so dense areas get small tiles. Free memory needed per worker at the smallest tile (100 m, read with a 20 m buffer for ground classification and 30 m for the other tools), with one thread:
Point density Typical data Ground classification IDW normalization TIN tools Pit-free CHM/DSM 20 pts/m² airborne LiDAR 2.8 GB 2.9 GB 3.2 GB 3.4 GB 100 pts/m² dense airborne LiDAR 3.5 GB 3.8 GB 5.5 GB 6.3 GB 300 pts/m² drone LiDAR 5.2 GB 6.0 GB 11.2 GB 13.5 GB 700 pts/m² photogrammetry point clouds 8.6 GB 10.4 GB 22.7 GB 28.1 GB -
RAM: installed RAM ≈ workers × memory per worker + 5 to 6 GB for Windows and other programs. For example, airborne LiDAR runs 2 to 4 workers with 16 GB; a 700 pts/m² point cloud needs 32 GB for 2 workers with little else open, and 48 to 64 GB for 4 (for ground classification; a TIN DTM of it needs about 32 GB for 1 worker). Close other programs before a long run, as the tools plan for the memory free when they start.
-
CPU: the
processesallowed (all cores by default) are shared between the workers, so when memory allows fewer workers than cores, each worker gets the spare cores as lidR threads (about 0.2 GB more each). A worker is started only for every 20 million points of input, so small jobs use one worker. -
Disk: a hard disk works; an SSD helps when several workers read LAZ files at once. Each input file gets a
.laxspatial index next to it (built once, see Build LiDAR Spatial Index), so the input folder must be writable for the fastest reading. -
Memory limit: each tool and its workers are limited to 80% of the free memory, so a tile that needs more stops the tool with an error (
std::bad_allocor "cannot allocate") instead of running the computer out of memory. -
Resuming: a run stops at the first tile that fails, or when you cancel it. Free memory, then run the tool again with
skip_existingset totrueand the same parameters: the tiles whose outputs are complete are skipped (each output is written as<name>.partial.<ext>and renamed when complete, so a tile cut off while writing is made again), and the 500 m blocks that have outputs keep the tile sizes of the plan the run saved next to its outputs (tiles_<suffix>.csv); the other blocks are tiled again for the memory free now. -
Kriging: the memory figures were measured for ground classification. Kriging (DTM and normalization) needs far more, over 7.8 GB for 14 million points, so use TIN or IDW on large or dense data.
-
Uniform tiles: tiled point cloud outputs (ground classification, normalization) vary in size with the density, from 500 m down to 100 m, and the next tool processes them best as they are, since each one fits in memory. To deliver them as uniform tiles, for example for GIS or to match a tile index, run Tile LiDAR Data on the output folder once the chain of tools is done. Every tile size divides the 500 m blocks, so the outputs combine into exact 500 m (or 1 km) tiles; the points are streamed, using little memory, but each is read and written once more:
bt tile --in_las_folder Classified_PC --out_folder Classified_PC_500m --tile_size 500 --buffer 0
The raster tools don't need this: they also write one merged
Merged_*.tif.
How the LiDAR tools tile a point cloud explains the tiling with diagrams, and How all the tools behave has the details of tiling, workers and progress.
Raster2Products Tools
The Raster2Products category makes rasters from other rasters, such as a DTM from Generate DTM from LiDAR Data. The tools run in Python and need no R; they read large rasters in tiles and process each tile in parallel.
| Tool | bt subcommand |
|---|---|
| Normalized DTM from DTM Raster | ndtm_fr_dtmraster |
$ bt ndtm_fr_dtmraster --in_dtm Raster_Output/Merged_TIN_DTM.tif --out_folder NDTM --Smooth_by median --Min_ws 3
$ bt ndtm_fr_dtmraster --in_dtm Raster_Output --out_folder NDTM --Smooth_by median --Min_ws 3 # its DTM tiles, one output each
Pipelines
The Pipeline tab, next to Tool history in the GUI, chains tools into steps that run one after another. Drag tools in from the tool tree, set each step's parameters in the tool form, and link a step's inputs to an earlier step's output. Each input links to the latest earlier step that makes what it needs, for example the checked lines from Check Seed Lines into Centerline, and the links are reset whenever a step is added, moved or removed.
The example above chains the six mapping tools into a ground footprint workflow. Each step lists the
step it reads from (← step 5), and the selected step's linked inputs are shown under
Inputs from earlier steps and greyed out in the tool form. Use Run Pipeline to run all steps
in order.
Pipelines save as .json files and also run without the GUI:
$ python -m beratools.core.pipeline my_pipeline.json --processes 4
See Building a pipeline.
BERA Tools Guide
Check the online BERA Tools Guide for user, developer and technical guides.
Sponsors
|
|
Free code signing on Windows provided by SignPath.io, certificate by SignPath Foundation. |
Credits
|
This tool is part of the Boreal Ecosystem Recovery & Assessment (BERA). It is actively developed by the Applied Geospatial Research Group. © 2026 Applied Geospatial Research Group. All rights reserved. |
Metadata
Release files for BERATools 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| beratools-0.7.0.tar.gz | 9.7 MB | With provenance | Details for beratools-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| beratools-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for beratools-0.7.0-py3-none-any.whl |
Total release size: 19.5 MB
Release files / beratools-0.7.0.tar.gz
| Download URL | beratools-0.7.0.tar.gz |
|---|---|
| Size | 9.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
563afb8820983d40a2f174e2224237416005fb30caa208b67cc0b262e4aef36e
|
|
BLAKE2b-256 checksum How to use checksums |
cb0fb9b85e2d12a42dc08f3578921ae206f9151f6bf0d29f5edc01eb27850f55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / beratools-0.7.0-py3-none-any.whl
| Download URL | beratools-0.7.0-py3-none-any.whl |
|---|---|
| Size | 9.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
046c321c7f635fcd1072b804a55ee6615f338776b7eb55ee69ef63a0dca5ef77
|
|
BLAKE2b-256 checksum How to use checksums |
715c3cd1603a768e5cf54d3f6cd3d8a2e47b100ecddfefc69b47005300a1ebe3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for BERATools 0.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for beratools-0.7.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.