Skip to content

Overview

Project Layout

There are a number of files for build, test, and continuous integration in the root of the project, but in general, the project is broken up like so.

├── beratools
│   ├── cli
│   ├── core
│   ├── gui
│   ├── modules             # mapping, pc2products, raster2products, ...
│   ├── tools
│   └── utility
├── docs
│   └── files
├── examples
├── notebooks
├── tests
│   └── data/LiDAR          # sample LAS tiles for the PC2Products tools
Directory Description
beratools/cli The bt / beratools command (entry.py), with one subcommand per tool.
beratools/core Frame code shared by every module: tool running and multiprocessing (tool_base.py), user-built pipelines (pipeline.py), the tool registry that merges the modules' tools.json files (registry.py) and the sample tool to start from (tool_template.py). Its old algorithm files only redirect to the modules.
beratools/gui GUI components and assets, including assets/module.schema.json.
beratools/modules One folder per module (mapping, pc2products, raster2products, ...), each with its tool entry points, their algorithms (algo_*.py) and a tools.json file checked against gui/assets/module.schema.json. pc2products also holds the R functions its tools call (r_scripts_collection.r) and the R helpers (r_interface.py, r_common.py).
beratools/tools Redirects from the old tool paths, so old imports keep working.
beratools/utility Argument composition (tool_args.py), environment checks and spatial helpers.
examples Example workflows, including pc2products_pipeline.py.
docs/files/developer Developer documentation.
notebooks Example notebooks and configs.
tests Unit and integration tests.