BERATools 0.6.2__tar.gz → 0.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. beratools-0.7.0/.gitignore +43 -0
  2. beratools-0.7.0/PKG-INFO +325 -0
  3. beratools-0.7.0/README.md +263 -0
  4. beratools-0.7.0/beratools/__init__.py +11 -0
  5. {beratools-0.6.2 → beratools-0.7.0}/beratools/cli/entry.py +18 -59
  6. beratools-0.7.0/beratools/core/algo_astar.py +20 -0
  7. beratools-0.7.0/beratools/core/algo_canopy_footprint_absolute.py +20 -0
  8. beratools-0.7.0/beratools/core/algo_centerline.py +20 -0
  9. beratools-0.7.0/beratools/core/algo_check_seed_line.py +20 -0
  10. beratools-0.7.0/beratools/core/algo_check_seed_line_validate.py +20 -0
  11. beratools-0.7.0/beratools/core/algo_common.py +20 -0
  12. beratools-0.7.0/beratools/core/algo_cost.py +20 -0
  13. beratools-0.7.0/beratools/core/algo_dijkstra.py +20 -0
  14. beratools-0.7.0/beratools/core/algo_footprint_plots.py +20 -0
  15. beratools-0.7.0/beratools/core/algo_geometry.py +20 -0
  16. beratools-0.7.0/beratools/core/algo_line_grouping.py +20 -0
  17. beratools-0.7.0/beratools/core/algo_merge_lines.py +20 -0
  18. beratools-0.7.0/beratools/core/algo_raster_smoothing.py +20 -0
  19. beratools-0.7.0/beratools/core/algo_seed_line_correction.py +20 -0
  20. beratools-0.7.0/beratools/core/algo_split_with_lines.py +20 -0
  21. beratools-0.7.0/beratools/core/algo_vertex_optimization.py +20 -0
  22. beratools-0.7.0/beratools/core/algo_vertex_preclean.py +20 -0
  23. beratools-0.7.0/beratools/core/alt_spatial_common.py +20 -0
  24. beratools-0.7.0/beratools/core/canopy_threshold_relative.py +20 -0
  25. beratools-0.7.0/beratools/core/line_footprint_functions.py +20 -0
  26. {beratools-0.6.2 → beratools-0.7.0}/beratools/core/logger.py +3 -2
  27. {beratools-0.6.2 → beratools-0.7.0}/beratools/core/pipeline.py +25 -19
  28. beratools-0.7.0/beratools/core/registry.py +279 -0
  29. {beratools-0.6.2 → beratools-0.7.0}/beratools/core/tool_base.py +49 -15
  30. beratools-0.7.0/beratools/core/tool_geo_simplify.py +20 -0
  31. {beratools-0.6.2/beratools/tools → beratools-0.7.0/beratools/core}/tool_template.py +2 -2
  32. beratools-0.7.0/beratools/gui/assets/module.schema.json +269 -0
  33. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/bt_data.py +55 -170
  34. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/bt_gui_main.py +179 -16
  35. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/main.py +9 -2
  36. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/pipeline_panel.py +9 -4
  37. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/tool_widgets.py +447 -56
  38. beratools-0.7.0/beratools/modules/mapping/__init__.py +0 -0
  39. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/algo_astar.py +18 -12
  40. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/algo_canopy_footprint_absolute.py +16 -34
  41. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/algo_centerline.py +27 -35
  42. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/algo_check_seed_line.py +7 -7
  43. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/algo_check_seed_line_validate.py +7 -3
  44. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/algo_common.py +25 -128
  45. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/algo_cost.py +12 -9
  46. beratools-0.7.0/beratools/modules/mapping/algo_footprint_plots.py +355 -0
  47. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/algo_geometry.py +80 -3
  48. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/algo_line_grouping.py +2 -2
  49. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/algo_merge_lines.py +1 -1
  50. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/algo_seed_line_correction.py +17 -12
  51. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/algo_split_with_lines.py +1 -1
  52. beratools-0.7.0/beratools/modules/mapping/algo_vertex_optimization.py +117 -0
  53. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/algo_vertex_preclean.py +9 -6
  54. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/alt_spatial_common.py +11 -5
  55. {beratools-0.6.2/beratools/tools → beratools-0.7.0/beratools/modules/mapping}/canopy_footprint_absolute.py +4 -9
  56. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/canopy_threshold_relative.py +24 -13
  57. {beratools-0.6.2/beratools/tools → beratools-0.7.0/beratools/modules/mapping}/centerline.py +16 -27
  58. {beratools-0.6.2/beratools/tools → beratools-0.7.0/beratools/modules/mapping}/check_seed_line.py +26 -37
  59. {beratools-0.6.2/beratools/tools → beratools-0.7.0/beratools/modules/mapping}/common.py +12 -34
  60. beratools-0.7.0/beratools/modules/mapping/footprint_plots.py +371 -0
  61. {beratools-0.6.2/beratools/tools → beratools-0.7.0/beratools/modules/mapping}/ground_footprint.py +4 -4
  62. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/line_footprint_functions.py +51 -18
  63. {beratools-0.6.2/beratools/tools → beratools-0.7.0/beratools/modules/mapping}/line_footprint_relative.py +7 -7
  64. beratools-0.7.0/beratools/modules/mapping/smooth_centerline.py +99 -0
  65. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/tool_geo_simplify.py +3 -1
  66. beratools-0.7.0/beratools/modules/mapping/tools.json +1442 -0
  67. {beratools-0.6.2/beratools/tools → beratools-0.7.0/beratools/modules/mapping}/vertex_optimization.py +1 -1
  68. beratools-0.7.0/beratools/modules/pc2products/__init__.py +0 -0
  69. beratools-0.7.0/beratools/modules/pc2products/r_common.py +418 -0
  70. beratools-0.7.0/beratools/modules/pc2products/r_interface.py +188 -0
  71. beratools-0.7.0/beratools/modules/pc2products/r_scripts_collection.r +2973 -0
  72. beratools-0.7.0/beratools/modules/pc2products/rpy_CHM_DSM_by.py +90 -0
  73. beratools-0.7.0/beratools/modules/pc2products/rpy_PC2hummock_hollow.py +106 -0
  74. beratools-0.7.0/beratools/modules/pc2products/rpy_dtm_by.py +94 -0
  75. beratools-0.7.0/beratools/modules/pc2products/rpy_dtw.py +96 -0
  76. beratools-0.7.0/beratools/modules/pc2products/rpy_find_cellsize.py +51 -0
  77. beratools-0.7.0/beratools/modules/pc2products/rpy_gnd_csf.py +73 -0
  78. beratools-0.7.0/beratools/modules/pc2products/rpy_las_info.py +66 -0
  79. beratools-0.7.0/beratools/modules/pc2products/rpy_lidar_index.py +50 -0
  80. beratools-0.7.0/beratools/modules/pc2products/rpy_lidar_tile.py +61 -0
  81. beratools-0.7.0/beratools/modules/pc2products/rpy_normalized_PC.py +69 -0
  82. beratools-0.7.0/beratools/modules/pc2products/rpy_seismic_line_analysis.py +76 -0
  83. beratools-0.7.0/beratools/modules/pc2products/rpy_surface_water.py +102 -0
  84. beratools-0.7.0/beratools/modules/pc2products/tools.json +978 -0
  85. beratools-0.7.0/beratools/modules/raster2products/__init__.py +0 -0
  86. beratools-0.7.0/beratools/modules/raster2products/algo_raster_smoothing.py +275 -0
  87. beratools-0.7.0/beratools/modules/raster2products/ndtm_fr_dtmraster.py +612 -0
  88. beratools-0.7.0/beratools/modules/raster2products/tools.json +99 -0
  89. beratools-0.7.0/beratools/tools/__init__.py +0 -0
  90. beratools-0.7.0/beratools/tools/canopy_footprint_absolute.py +20 -0
  91. beratools-0.7.0/beratools/tools/centerline.py +20 -0
  92. beratools-0.7.0/beratools/tools/check_seed_line.py +20 -0
  93. beratools-0.7.0/beratools/tools/common.py +20 -0
  94. beratools-0.7.0/beratools/tools/footprint_plots.py +20 -0
  95. beratools-0.7.0/beratools/tools/ground_footprint.py +20 -0
  96. beratools-0.7.0/beratools/tools/line_footprint_relative.py +20 -0
  97. beratools-0.7.0/beratools/tools/ndtm_fr_dtmraster.py +20 -0
  98. beratools-0.7.0/beratools/tools/r_common.py +20 -0
  99. beratools-0.7.0/beratools/tools/r_interface.py +20 -0
  100. beratools-0.7.0/beratools/tools/rpy_CHM_DSM_by.py +20 -0
  101. beratools-0.7.0/beratools/tools/rpy_PC2hummock_hollow.py +20 -0
  102. beratools-0.7.0/beratools/tools/rpy_dtm_by.py +20 -0
  103. beratools-0.7.0/beratools/tools/rpy_dtw.py +20 -0
  104. beratools-0.7.0/beratools/tools/rpy_find_cellsize.py +20 -0
  105. beratools-0.7.0/beratools/tools/rpy_gnd_csf.py +20 -0
  106. beratools-0.7.0/beratools/tools/rpy_las_info.py +20 -0
  107. beratools-0.7.0/beratools/tools/rpy_lidar_index.py +20 -0
  108. beratools-0.7.0/beratools/tools/rpy_lidar_tile.py +20 -0
  109. beratools-0.7.0/beratools/tools/rpy_normalized_PC.py +20 -0
  110. beratools-0.7.0/beratools/tools/rpy_seismic_line_analysis.py +20 -0
  111. beratools-0.7.0/beratools/tools/rpy_surface_water.py +20 -0
  112. beratools-0.7.0/beratools/tools/smooth_centerline.py +20 -0
  113. beratools-0.7.0/beratools/tools/vertex_optimization.py +20 -0
  114. {beratools-0.6.2 → beratools-0.7.0}/beratools/utility/env_checks.py +23 -2
  115. beratools-0.7.0/beratools/utility/faulthandler_pause.py +34 -0
  116. beratools-0.7.0/beratools/utility/field_checks.py +45 -0
  117. {beratools-0.6.2 → beratools-0.7.0}/beratools/utility/spatial_common.py +75 -5
  118. {beratools-0.6.2 → beratools-0.7.0}/beratools/utility/tool_args.py +37 -4
  119. {beratools-0.6.2 → beratools-0.7.0}/pyproject.toml +56 -20
  120. beratools-0.6.2/.gitignore +0 -34
  121. beratools-0.6.2/PKG-INFO +0 -164
  122. beratools-0.6.2/README.md +0 -111
  123. beratools-0.6.2/beratools/__init__.py +0 -8
  124. beratools-0.6.2/beratools/core/algo_vertex_optimization.py +0 -574
  125. beratools-0.6.2/beratools/gui/assets/beratools.json +0 -1225
  126. {beratools-0.6.2 → beratools-0.7.0}/LICENSE +0 -0
  127. {beratools-0.6.2 → beratools-0.7.0}/beratools/cli/__init__.py +0 -0
  128. {beratools-0.6.2 → beratools-0.7.0}/beratools/core/__init__.py +0 -0
  129. {beratools-0.6.2 → beratools-0.7.0}/beratools/core/constants.py +0 -0
  130. {beratools-0.6.2 → beratools-0.7.0}/beratools/external/__init__.py +0 -0
  131. {beratools-0.6.2 → beratools-0.7.0}/beratools/external/geo_simplify/geo-simplify-linux-x64 +0 -0
  132. {beratools-0.6.2 → beratools-0.7.0}/beratools/external/geo_simplify/geo-simplify-win-x64.exe +0 -0
  133. {beratools-0.6.2 → beratools-0.7.0}/beratools/external/polygon_centerline/LICENSE.md +0 -0
  134. {beratools-0.6.2 → beratools-0.7.0}/beratools/external/polygon_centerline/UPSTREAM.md +0 -0
  135. {beratools-0.6.2 → beratools-0.7.0}/beratools/external/polygon_centerline/__init__.py +0 -0
  136. {beratools-0.6.2 → beratools-0.7.0}/beratools/external/polygon_centerline/_src.py +0 -0
  137. {beratools-0.6.2 → beratools-0.7.0}/beratools/external/polygon_centerline/exceptions.py +0 -0
  138. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/assets/BERALogo.ico +0 -0
  139. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/assets/BERALogo.png +0 -0
  140. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/assets/BERA_GUI_Main.png +0 -0
  141. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/assets/BERA_Splash.gif +0 -0
  142. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/assets/BERA_WizardImage.png +0 -0
  143. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/assets/closed.gif +0 -0
  144. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/assets/closed.png +0 -0
  145. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/assets/gui.json +0 -0
  146. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/assets/open.gif +0 -0
  147. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/assets/open.png +0 -0
  148. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/assets/tool.gif +0 -0
  149. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/assets/tool.png +0 -0
  150. {beratools-0.6.2 → beratools-0.7.0}/beratools/gui/geometry_types.py +0 -0
  151. {beratools-0.6.2/beratools/tools → beratools-0.7.0/beratools/modules}/__init__.py +0 -0
  152. {beratools-0.6.2/beratools/core → beratools-0.7.0/beratools/modules/mapping}/algo_dijkstra.py +0 -0
  153. {beratools-0.6.2 → beratools-0.7.0}/beratools/utility/unit_conversion.py +0 -0
@@ -0,0 +1,43 @@
1
+ __pycache__
2
+ .devcontainer
3
+ .env
4
+ .idea
5
+ .spyproject
6
+ .virtual_documents
7
+ .vscode
8
+ .coverage
9
+ dist
10
+ output
11
+ agents
12
+ packaging/build
13
+
14
+ *.slurm
15
+ *.out
16
+ *.pyc
17
+ *.whl
18
+
19
+ .project
20
+ .pydevproject
21
+ .pixi
22
+ pixi.lock
23
+ config.ini
24
+
25
+ *.egg-info
26
+ _build
27
+ .mypy_cache
28
+ .pytest_cache
29
+ .aider.*
30
+ .ignore
31
+ /docs/site
32
+ /beratools/modules/*/docs/site
33
+
34
+ # PC2Products tool outputs from the LiDAR tests
35
+ beratools/modules/pc2products/tests/data/LiDAR/Classified_PC
36
+ beratools/modules/pc2products/tests/data/LiDAR/Normalized_PC
37
+ beratools/modules/pc2products/tests/data/LiDAR/Raster_Output
38
+ # Spatial indexes the LiDAR tools build next to their inputs, and the local large-file test data
39
+ **/tests/data/**/*.lax
40
+ **/tests/data/LiDAR/Large_PC
41
+ **/tests/data/LiDAR/Real_Lidar
42
+ # Hydra run logs from examples/full_workflow.py
43
+ outputs/
@@ -0,0 +1,325 @@
1
+ Metadata-Version: 2.5
2
+ Name: BERATools
3
+ Version: 0.7.0
4
+ Summary: An advanced forest line feature analysis platform
5
+ Project-URL: Homepage, https://github.com/BERATool/beratools
6
+ Author-email: AppliedGRG <appliedgrg@gmail.com>, Richard Zeng <richardqzeng@gmail.com>
7
+ License: GPL-3.0-or-later
8
+ License-File: LICENSE
9
+ Keywords: BERA,Line
10
+ Classifier: Development Status :: 2 - Pre-Alpha
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
13
+ Classifier: Natural Language :: English
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Requires-Python: <3.15,>=3.12
18
+ Requires-Dist: gdal<4,>=3.12; platform_system != 'Windows'
19
+ Requires-Dist: geopandas
20
+ Requires-Dist: igraph
21
+ Requires-Dist: jsonschema
22
+ Requires-Dist: laspy
23
+ Requires-Dist: lazrs
24
+ Requires-Dist: networkit
25
+ Requires-Dist: numba
26
+ Requires-Dist: numpy<2.4,>=1.26
27
+ Requires-Dist: packaging
28
+ Requires-Dist: pandas>=2.0
29
+ Requires-Dist: psutil
30
+ Requires-Dist: pyogrio>=0.12.0
31
+ Requires-Dist: pyqt5
32
+ Requires-Dist: rasterio>=1.5.0
33
+ Requires-Dist: scikit-image>=0.24.0
34
+ Requires-Dist: scipy
35
+ Requires-Dist: tabulate
36
+ Requires-Dist: tqdm
37
+ Requires-Dist: xarray-spatial
38
+ Provides-Extra: dev
39
+ Requires-Dist: build; extra == 'dev'
40
+ Requires-Dist: isort; extra == 'dev'
41
+ Requires-Dist: mypy; extra == 'dev'
42
+ Requires-Dist: pre-commit; extra == 'dev'
43
+ Requires-Dist: pytest; extra == 'dev'
44
+ Requires-Dist: pytest-cov; extra == 'dev'
45
+ Requires-Dist: pytest-qt; extra == 'dev'
46
+ Requires-Dist: ruff; extra == 'dev'
47
+ Requires-Dist: tox; extra == 'dev'
48
+ Requires-Dist: twine; extra == 'dev'
49
+ Provides-Extra: doc
50
+ Requires-Dist: mkdocstrings; extra == 'doc'
51
+ Requires-Dist: mkdocstrings-python; extra == 'doc'
52
+ Requires-Dist: pymdown-extensions; extra == 'doc'
53
+ Requires-Dist: zensical==0.0.53; extra == 'doc'
54
+ Provides-Extra: r
55
+ Requires-Dist: rpy2; extra == 'r'
56
+ Requires-Dist: rpy2-rinterface!=3.6.7; (sys_platform == 'win32' and python_version == '3.13') and extra == 'r'
57
+ Provides-Extra: test
58
+ Requires-Dist: pytest; extra == 'test'
59
+ Requires-Dist: pytest-qt; extra == 'test'
60
+ Requires-Dist: pywinauto; (platform_system == 'Windows') and extra == 'test'
61
+ Description-Content-Type: text/markdown
62
+
63
+ # BERA Tools
64
+
65
+ BERA Tools is successor of [Forest Line Mapper](https://github.com/appliedgrg/flm). It is a toolset for enhanced delineation and attribution of linear disturbances in forests.
66
+
67
+ <div align="center">
68
+
69
+ [![Python Integration Tests](https://img.shields.io/github/actions/workflow/status/BERATool/beratools/python-integration-tests.yml?branch=main)](https://github.com/BERATool/beratools/actions/workflows/python-integration-tests.yml)
70
+ [![GitHub Pages](https://img.shields.io/github/deployments/BERATool/beratools/github-pages?label=docs)](https://beratool.github.io/beratools/)
71
+ [![Conda Version](https://img.shields.io/conda/v/bera_tools/beratools?cacheSeconds=3600)](https://anaconda.org/bera_tools/beratools)
72
+ [![PyPI](https://img.shields.io/pypi/v/BERATools?cacheSeconds=3600)](https://pypi.org/project/BERATools/)
73
+ [![Python Version](https://img.shields.io/badge/python-3.12--3.14-blue)](https://www.python.org/downloads/)
74
+ [![License: GPL-3.0](https://img.shields.io/badge/License-GPL%203.0-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
75
+
76
+ </div>
77
+
78
+ ## [Quick Start](https://beratool.github.io/beratools/)
79
+
80
+ Here are the ways to install BERA Tools:
81
+
82
+ - Windows installer
83
+ - Install with Anaconda.
84
+
85
+ ### Windows Installer
86
+
87
+ Windows installer is provided with releases. Check the [latest release](https://github.com/BERATool/beratools/releases/latest). 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](CODE_SIGNING_POLICY.md).
88
+
89
+ ### Install with Anaconda
90
+
91
+ Install with Anaconda works on Windows, macOS, and Linux.
92
+
93
+ - Install Miniconda. Download Miniconda from [Miniconda](https://docs.anaconda.com/miniconda/) and install on your machine.
94
+ - Download and save the file [environment.yml](https://raw.githubusercontent.com/BERATool/beratools/main/environment.yml).
95
+ - Launch **Anaconda Prompt** and **Change directory** to where environment.yml is saved.
96
+ - Run the command to install BERA Tools.
97
+
98
+ ```bash
99
+ $ conda env create -n bera -f environment.yml
100
+ ```
101
+
102
+ After the installation is done, a new environment named **bera** is created and BERA Tools is installed within it.
103
+ - Activate the **bera** environment and launch BERA Tools main GUI:
104
+
105
+ ```bash
106
+ $ conda activate bera
107
+ $ beratools gui
108
+ ```
109
+
110
+ ![BERA Tools Main GUI](beratools/gui/assets/BERA_GUI_Main.png)
111
+
112
+ - [Download latest example data](https://github.com/BERATool/beratools/releases/latest/download/test_data.zip) to try with BERA Tools.
113
+
114
+ For more information about installation, check the [BERA Tools Installation](https://beratool.github.io/beratools/user/installation/).
115
+
116
+ #### Troubleshooting: `CondaEnvException: Pip failed`
117
+
118
+ `environment.yml` installs `rpy2` with pip at the end of `conda env create`. If that step fails
119
+ (e.g. `Pip subprocess error`), create the environment without pip first, then install `rpy2` yourself:
120
+
121
+ 1. Open `environment.yml` and comment out the pip section:
122
+
123
+ ```yaml
124
+ # - pip:
125
+ # - rpy2
126
+ ```
127
+
128
+ 2. Create and activate the environment:
129
+
130
+ ```bash
131
+ $ conda env create -n bera -f environment.yml
132
+ $ conda activate bera
133
+ ```
134
+
135
+ 3. Set the R paths (Windows **Anaconda Prompt**):
136
+
137
+ ```bat
138
+ set "R_HOME=%CONDA_PREFIX%\Lib\R"
139
+ set "PATH=%R_HOME%\bin\x64;%PATH%"
140
+ ```
141
+
142
+ 4. Install `rpy2` with pip:
143
+
144
+ ```bash
145
+ $ python -m pip install rpy2
146
+ ```
147
+
148
+ If pip still fails, check that the environment's Python starts with `python -c "print('ok')"`. A
149
+ Python that does not start (e.g. "The file or directory is corrupted and unreadable") is the real
150
+ cause. Rebuild the environment with a different Python version.
151
+
152
+ ## PC2Products (LiDAR) Tools
153
+
154
+ The **PC2Products** (Point Cloud to Products) category turns LiDAR point clouds (`.las` / `.laz`) into
155
+ rasters such as a DTM, DSM, CHM and hummock/hollow maps. The tools run R and
156
+ [lidR](https://r-lidar.github.io/lidRbook/) through [rpy2](https://rpy2.github.io/); `environment.yml`
157
+ and `pixi.toml` include R, and the tools install the R packages they need the first time they run
158
+ (see [R for the PC2Products tools](https://beratool.github.io/beratools/user/installation/#r-for-the-pc2products-lidar-tools)).
159
+
160
+ | Tool | `bt` subcommand |
161
+ |------|-----------------|
162
+ | [LiDAR data info](https://beratool.github.io/beratools/pc2products/user/las_info/) | `las_info` |
163
+ | [Raster Cell size from LiDAR data](https://beratool.github.io/beratools/pc2products/user/cellsize/) | `cellsize` |
164
+ | [Build LiDAR Spatial Index](https://beratool.github.io/beratools/pc2products/user/lidar_index/) | `lidar_index` |
165
+ | [Tile LiDAR Data](https://beratool.github.io/beratools/pc2products/user/lidar_tile/) | `tile` |
166
+ | [Ground Classify Using CSF](https://beratool.github.io/beratools/pc2products/user/gnd_csf/) | `gnd_csf` |
167
+ | [Generate DTM from LiDAR Data](https://beratool.github.io/beratools/pc2products/user/dtm/) | `dtm` |
168
+ | [Normalize LiDAR Data](https://beratool.github.io/beratools/pc2products/user/normalize/) | `normalize` |
169
+ | [Generate CHM or DSM from LiDAR Data](https://beratool.github.io/beratools/pc2products/user/chm_dsm/) | `chm_dsm` |
170
+ | [Detect Hummock and Hollow from LiDAR Data](https://beratool.github.io/beratools/pc2products/user/hummock_hollow/) | `hh` |
171
+ | [Surface Water Mapping](https://beratool.github.io/beratools/pc2products/user/surface_water/) | `surface_water` |
172
+ | [Depth-to-Water from Surface Water](https://beratool.github.io/beratools/pc2products/user/dtw/) | `dtw` |
173
+ | [Seismic Line Disturbance Analysis](https://beratool.github.io/beratools/pc2products/user/seismic_line_analysis/) | `line_analysis` |
174
+
175
+ ```bash
176
+ $ beratools dtm --in_las_folder tests/data/LiDAR --out_folder tests/data/LiDAR/Raster_Output --style tin
177
+ ```
178
+
179
+ Sample tiles are in `tests/data/LiDAR/`, and `examples/` has two scripts that run the LiDAR tools in
180
+ sequence (see [examples/README.md](examples/README.md)).
181
+
182
+ ### Things to consider for running the R tools in parallel
183
+
184
+ Ground classification, DTM, normalization, CHM/DSM and hummock/hollow split the point cloud into
185
+ tiles and process them with several R workers. How many workers a computer runs depends mostly on
186
+ its **free memory** and the **point density**, as each worker must hold the densest tile it gets.
187
+ A few files or tiles much denser than the rest don't hold the whole run back: they are processed
188
+ after the others with fewer workers.
189
+
190
+ - **Memory per worker**: about (1.6 GB + bytes per point × the points in a tile with its buffer)
191
+ ÷ 0.6 of free memory, as the tools share 60% of the memory free when they start. The bytes per
192
+ point were measured for each tool: 260 for ground classification and IDW normalization, 160 for
193
+ the IDW DTM, up to 670 for the tools that triangulate the ground points (TIN DTM, TIN
194
+ normalization and hummock/hollow; less for data with less ground, which they sample before
195
+ planning; the table below is for all ground), 850 for the pit-free CHM/DSM, and about 120 plus 450 per raster cell for
196
+ the TIN CHM/DSM (see
197
+ [How all the tools behave](https://beratool.github.io/beratools/pc2products/technical/tool_behaviour/)).
198
+ Tiles are 100 to 500 m, chosen for each 500 m block from the density, so dense areas get small
199
+ tiles. Free memory needed per worker at the smallest tile (100 m, read with a 20 m buffer for
200
+ ground classification and 30 m for the other tools), with one thread:
201
+
202
+ | Point density | Typical data | Ground classification | IDW normalization | TIN tools | Pit-free CHM/DSM |
203
+ |---|---|---|---|---|---|
204
+ | 20 pts/m² | airborne LiDAR | 2.8 GB | 2.9 GB | 3.2 GB | 3.4 GB |
205
+ | 100 pts/m² | dense airborne LiDAR | 3.5 GB | 3.8 GB | 5.5 GB | 6.3 GB |
206
+ | 300 pts/m² | drone LiDAR | 5.2 GB | 6.0 GB | 11.2 GB | 13.5 GB |
207
+ | 700 pts/m² | photogrammetry point clouds | 8.6 GB | 10.4 GB | 22.7 GB | 28.1 GB |
208
+
209
+ - **RAM**: installed RAM ≈ workers × memory per worker + 5 to 6 GB for Windows and other
210
+ programs. For example, airborne LiDAR runs 2 to 4 workers with 16 GB; a 700 pts/m² point cloud
211
+ needs 32 GB for 2 workers with little else open, and 48 to 64 GB for 4 (for ground
212
+ classification; a TIN DTM of it needs about 32 GB for 1 worker). Close other programs
213
+ before a long run, as the tools plan for the memory free when they start.
214
+ - **CPU**: the `processes` allowed (all cores by default) are shared between the workers, so
215
+ when memory allows fewer workers than cores, each worker gets the spare cores as lidR threads
216
+ (about 0.2 GB more each). A worker is started only for every 20 million points of input, so
217
+ small jobs use one worker.
218
+ - **Disk**: a hard disk works; an SSD helps when several workers read LAZ files at once. Each
219
+ input file gets a `.lax` spatial index next to it (built once, see
220
+ [Build LiDAR Spatial Index](https://beratool.github.io/beratools/pc2products/user/lidar_index/)), so the
221
+ input folder must be writable for the fastest reading.
222
+ - **Memory limit**: each tool and its workers are limited to 80% of the free memory, so a tile
223
+ that needs more stops the tool with an error (`std::bad_alloc` or "cannot allocate") instead of
224
+ running the computer out of memory.
225
+ - **Resuming**: a run stops at the first tile that fails, or when you cancel it. Free memory, then
226
+ run the tool again with `skip_existing` set to `true` and the same parameters: the tiles whose
227
+ outputs are complete are skipped (each output is written as `<name>.partial.<ext>` and renamed
228
+ 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
229
+ saved next to its outputs (`tiles_<suffix>.csv`); the other blocks are tiled again for the
230
+ memory free now.
231
+ - **Kriging**: the memory figures were measured for ground classification. Kriging (DTM and
232
+ normalization) needs far more, over 7.8 GB for 14 million points, so use TIN or IDW on large
233
+ or dense data.
234
+ - **Uniform tiles**: tiled point cloud outputs (ground classification, normalization) vary in size
235
+ with the density, from 500 m down to 100 m, and the next tool processes them best as they are,
236
+ since each one fits in memory. To deliver them as uniform tiles, for example for GIS or to match
237
+ a tile index, run [Tile LiDAR Data](https://beratool.github.io/beratools/pc2products/user/lidar_tile/) on the
238
+ output folder once the chain of tools is done. Every tile size divides the 500 m blocks, so the
239
+ outputs combine into exact 500 m (or 1 km) tiles; the points are streamed, using little memory,
240
+ but each is read and written once more:
241
+
242
+ ```bash
243
+ bt tile --in_las_folder Classified_PC --out_folder Classified_PC_500m --tile_size 500 --buffer 0
244
+ ```
245
+
246
+ The raster tools don't need this: they also write one merged `Merged_*.tif`.
247
+
248
+ [How the LiDAR tools tile a point cloud](docs/files/technical/lidar_density_tiling.md)
249
+ explains the tiling with diagrams, and
250
+ [How all the tools behave](https://beratool.github.io/beratools/pc2products/technical/tool_behaviour/) has the
251
+ details of tiling, workers and progress.
252
+
253
+ ## Raster2Products Tools
254
+
255
+ The **Raster2Products** category makes rasters from other rasters, such as a DTM from
256
+ [Generate DTM from LiDAR Data](https://beratool.github.io/beratools/pc2products/user/dtm/). The tools run in
257
+ Python and need no R; they read large rasters in tiles and process each tile in parallel.
258
+
259
+ | Tool | `bt` subcommand |
260
+ |------|-----------------|
261
+ | [Normalized DTM from DTM Raster](https://beratool.github.io/beratools/raster2products/user/ndtm_fr_dtmraster/) | `ndtm_fr_dtmraster` |
262
+
263
+ ```bash
264
+ $ bt ndtm_fr_dtmraster --in_dtm Raster_Output/Merged_TIN_DTM.tif --out_folder NDTM --Smooth_by median --Min_ws 3
265
+ $ bt ndtm_fr_dtmraster --in_dtm Raster_Output --out_folder NDTM --Smooth_by median --Min_ws 3 # its DTM tiles, one output each
266
+ ```
267
+
268
+ ## Pipelines
269
+
270
+ The **Pipeline** tab, next to **Tool history** in the GUI, chains tools into steps that run one after
271
+ another. Drag tools in from the tool tree, set each step's parameters in the tool form, and link a
272
+ step's inputs to an earlier step's output. Each input links to the latest earlier step that makes what
273
+ it needs, for example the checked lines from **Check Seed Lines** into **Centerline**, and the
274
+ links are reset whenever a step is added, moved or removed.
275
+
276
+ ![BERA Tools Pipeline panel](docs/files/screenshots/bt_pipeline.png)
277
+
278
+ The example above chains the six mapping tools into a ground footprint workflow. Each step lists the
279
+ step it reads from (`← step 5`), and the selected step's linked inputs are shown under
280
+ **Inputs from earlier steps** and greyed out in the tool form. Use **Run Pipeline** to run all steps
281
+ in order.
282
+
283
+ Pipelines save as `.json` files and also run without the GUI:
284
+
285
+ ```bash
286
+ $ python -m beratools.core.pipeline my_pipeline.json --processes 4
287
+ ```
288
+
289
+ See [Building a pipeline](https://beratool.github.io/beratools/user_guide/#building-a-pipeline).
290
+
291
+ ## BERA Tools Guide
292
+
293
+ Check the online [BERA Tools Guide](https://beratool.github.io/beratools/) for user, developer and technical guides.
294
+
295
+ ## Sponsors
296
+
297
+ <table>
298
+ <tr>
299
+ <td align="center">
300
+ <a href="https://about.signpath.io/">
301
+ <img src="https://avatars.githubusercontent.com/u/34448643?s=48&amp;v=4" alt="SignPath logo" width="48">
302
+ </a>
303
+ </td>
304
+ <td>
305
+ Free code signing on Windows provided by <a href="https://about.signpath.io/">SignPath.io</a>, certificate by <a href="https://signpath.org/">SignPath Foundation</a>.
306
+ </td>
307
+ </tr>
308
+ </table>
309
+
310
+ ## Credits
311
+
312
+ <table>
313
+ <tr>
314
+ <td><img src="https://github.com/BERATool/beratools/raw/main/docs/files/icons/bera_logo.png" alt="Logos" width="80"></td>
315
+ <td>
316
+ <p>
317
+ This tool is part of the <strong><a href="http://www.beraproject.org/">Boreal Ecosystem Recovery & Assessment (BERA)</a></strong>.
318
+ It is actively developed by the <a href="https://www.appliedgrg.ca/"><strong>Applied Geospatial Research Group</strong></a>.
319
+ </p>
320
+ <p>
321
+ © 2026 Applied Geospatial Research Group. All rights reserved.
322
+ </p>
323
+ </td>
324
+ </tr>
325
+ </table>
@@ -0,0 +1,263 @@
1
+ # BERA Tools
2
+
3
+ BERA Tools is successor of [Forest Line Mapper](https://github.com/appliedgrg/flm). It is a toolset for enhanced delineation and attribution of linear disturbances in forests.
4
+
5
+ <div align="center">
6
+
7
+ [![Python Integration Tests](https://img.shields.io/github/actions/workflow/status/BERATool/beratools/python-integration-tests.yml?branch=main)](https://github.com/BERATool/beratools/actions/workflows/python-integration-tests.yml)
8
+ [![GitHub Pages](https://img.shields.io/github/deployments/BERATool/beratools/github-pages?label=docs)](https://beratool.github.io/beratools/)
9
+ [![Conda Version](https://img.shields.io/conda/v/bera_tools/beratools?cacheSeconds=3600)](https://anaconda.org/bera_tools/beratools)
10
+ [![PyPI](https://img.shields.io/pypi/v/BERATools?cacheSeconds=3600)](https://pypi.org/project/BERATools/)
11
+ [![Python Version](https://img.shields.io/badge/python-3.12--3.14-blue)](https://www.python.org/downloads/)
12
+ [![License: GPL-3.0](https://img.shields.io/badge/License-GPL%203.0-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
13
+
14
+ </div>
15
+
16
+ ## [Quick Start](https://beratool.github.io/beratools/)
17
+
18
+ Here are the ways to install BERA Tools:
19
+
20
+ - Windows installer
21
+ - Install with Anaconda.
22
+
23
+ ### Windows Installer
24
+
25
+ Windows installer is provided with releases. Check the [latest release](https://github.com/BERATool/beratools/releases/latest). 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](CODE_SIGNING_POLICY.md).
26
+
27
+ ### Install with Anaconda
28
+
29
+ Install with Anaconda works on Windows, macOS, and Linux.
30
+
31
+ - Install Miniconda. Download Miniconda from [Miniconda](https://docs.anaconda.com/miniconda/) and install on your machine.
32
+ - Download and save the file [environment.yml](https://raw.githubusercontent.com/BERATool/beratools/main/environment.yml).
33
+ - Launch **Anaconda Prompt** and **Change directory** to where environment.yml is saved.
34
+ - Run the command to install BERA Tools.
35
+
36
+ ```bash
37
+ $ conda env create -n bera -f environment.yml
38
+ ```
39
+
40
+ After the installation is done, a new environment named **bera** is created and BERA Tools is installed within it.
41
+ - Activate the **bera** environment and launch BERA Tools main GUI:
42
+
43
+ ```bash
44
+ $ conda activate bera
45
+ $ beratools gui
46
+ ```
47
+
48
+ ![BERA Tools Main GUI](beratools/gui/assets/BERA_GUI_Main.png)
49
+
50
+ - [Download latest example data](https://github.com/BERATool/beratools/releases/latest/download/test_data.zip) to try with BERA Tools.
51
+
52
+ For more information about installation, check the [BERA Tools Installation](https://beratool.github.io/beratools/user/installation/).
53
+
54
+ #### Troubleshooting: `CondaEnvException: Pip failed`
55
+
56
+ `environment.yml` installs `rpy2` with pip at the end of `conda env create`. If that step fails
57
+ (e.g. `Pip subprocess error`), create the environment without pip first, then install `rpy2` yourself:
58
+
59
+ 1. Open `environment.yml` and comment out the pip section:
60
+
61
+ ```yaml
62
+ # - pip:
63
+ # - rpy2
64
+ ```
65
+
66
+ 2. Create and activate the environment:
67
+
68
+ ```bash
69
+ $ conda env create -n bera -f environment.yml
70
+ $ conda activate bera
71
+ ```
72
+
73
+ 3. Set the R paths (Windows **Anaconda Prompt**):
74
+
75
+ ```bat
76
+ set "R_HOME=%CONDA_PREFIX%\Lib\R"
77
+ set "PATH=%R_HOME%\bin\x64;%PATH%"
78
+ ```
79
+
80
+ 4. Install `rpy2` with pip:
81
+
82
+ ```bash
83
+ $ python -m pip install rpy2
84
+ ```
85
+
86
+ If pip still fails, check that the environment's Python starts with `python -c "print('ok')"`. A
87
+ Python that does not start (e.g. "The file or directory is corrupted and unreadable") is the real
88
+ cause. Rebuild the environment with a different Python version.
89
+
90
+ ## PC2Products (LiDAR) Tools
91
+
92
+ The **PC2Products** (Point Cloud to Products) category turns LiDAR point clouds (`.las` / `.laz`) into
93
+ rasters such as a DTM, DSM, CHM and hummock/hollow maps. The tools run R and
94
+ [lidR](https://r-lidar.github.io/lidRbook/) through [rpy2](https://rpy2.github.io/); `environment.yml`
95
+ and `pixi.toml` include R, and the tools install the R packages they need the first time they run
96
+ (see [R for the PC2Products tools](https://beratool.github.io/beratools/user/installation/#r-for-the-pc2products-lidar-tools)).
97
+
98
+ | Tool | `bt` subcommand |
99
+ |------|-----------------|
100
+ | [LiDAR data info](https://beratool.github.io/beratools/pc2products/user/las_info/) | `las_info` |
101
+ | [Raster Cell size from LiDAR data](https://beratool.github.io/beratools/pc2products/user/cellsize/) | `cellsize` |
102
+ | [Build LiDAR Spatial Index](https://beratool.github.io/beratools/pc2products/user/lidar_index/) | `lidar_index` |
103
+ | [Tile LiDAR Data](https://beratool.github.io/beratools/pc2products/user/lidar_tile/) | `tile` |
104
+ | [Ground Classify Using CSF](https://beratool.github.io/beratools/pc2products/user/gnd_csf/) | `gnd_csf` |
105
+ | [Generate DTM from LiDAR Data](https://beratool.github.io/beratools/pc2products/user/dtm/) | `dtm` |
106
+ | [Normalize LiDAR Data](https://beratool.github.io/beratools/pc2products/user/normalize/) | `normalize` |
107
+ | [Generate CHM or DSM from LiDAR Data](https://beratool.github.io/beratools/pc2products/user/chm_dsm/) | `chm_dsm` |
108
+ | [Detect Hummock and Hollow from LiDAR Data](https://beratool.github.io/beratools/pc2products/user/hummock_hollow/) | `hh` |
109
+ | [Surface Water Mapping](https://beratool.github.io/beratools/pc2products/user/surface_water/) | `surface_water` |
110
+ | [Depth-to-Water from Surface Water](https://beratool.github.io/beratools/pc2products/user/dtw/) | `dtw` |
111
+ | [Seismic Line Disturbance Analysis](https://beratool.github.io/beratools/pc2products/user/seismic_line_analysis/) | `line_analysis` |
112
+
113
+ ```bash
114
+ $ beratools dtm --in_las_folder tests/data/LiDAR --out_folder tests/data/LiDAR/Raster_Output --style tin
115
+ ```
116
+
117
+ Sample tiles are in `tests/data/LiDAR/`, and `examples/` has two scripts that run the LiDAR tools in
118
+ sequence (see [examples/README.md](examples/README.md)).
119
+
120
+ ### Things to consider for running the R tools in parallel
121
+
122
+ Ground classification, DTM, normalization, CHM/DSM and hummock/hollow split the point cloud into
123
+ tiles and process them with several R workers. How many workers a computer runs depends mostly on
124
+ its **free memory** and the **point density**, as each worker must hold the densest tile it gets.
125
+ A few files or tiles much denser than the rest don't hold the whole run back: they are processed
126
+ after the others with fewer workers.
127
+
128
+ - **Memory per worker**: about (1.6 GB + bytes per point × the points in a tile with its buffer)
129
+ ÷ 0.6 of free memory, as the tools share 60% of the memory free when they start. The bytes per
130
+ point were measured for each tool: 260 for ground classification and IDW normalization, 160 for
131
+ the IDW DTM, up to 670 for the tools that triangulate the ground points (TIN DTM, TIN
132
+ normalization and hummock/hollow; less for data with less ground, which they sample before
133
+ planning; the table below is for all ground), 850 for the pit-free CHM/DSM, and about 120 plus 450 per raster cell for
134
+ the TIN CHM/DSM (see
135
+ [How all the tools behave](https://beratool.github.io/beratools/pc2products/technical/tool_behaviour/)).
136
+ Tiles are 100 to 500 m, chosen for each 500 m block from the density, so dense areas get small
137
+ tiles. Free memory needed per worker at the smallest tile (100 m, read with a 20 m buffer for
138
+ ground classification and 30 m for the other tools), with one thread:
139
+
140
+ | Point density | Typical data | Ground classification | IDW normalization | TIN tools | Pit-free CHM/DSM |
141
+ |---|---|---|---|---|---|
142
+ | 20 pts/m² | airborne LiDAR | 2.8 GB | 2.9 GB | 3.2 GB | 3.4 GB |
143
+ | 100 pts/m² | dense airborne LiDAR | 3.5 GB | 3.8 GB | 5.5 GB | 6.3 GB |
144
+ | 300 pts/m² | drone LiDAR | 5.2 GB | 6.0 GB | 11.2 GB | 13.5 GB |
145
+ | 700 pts/m² | photogrammetry point clouds | 8.6 GB | 10.4 GB | 22.7 GB | 28.1 GB |
146
+
147
+ - **RAM**: installed RAM ≈ workers × memory per worker + 5 to 6 GB for Windows and other
148
+ programs. For example, airborne LiDAR runs 2 to 4 workers with 16 GB; a 700 pts/m² point cloud
149
+ needs 32 GB for 2 workers with little else open, and 48 to 64 GB for 4 (for ground
150
+ classification; a TIN DTM of it needs about 32 GB for 1 worker). Close other programs
151
+ before a long run, as the tools plan for the memory free when they start.
152
+ - **CPU**: the `processes` allowed (all cores by default) are shared between the workers, so
153
+ when memory allows fewer workers than cores, each worker gets the spare cores as lidR threads
154
+ (about 0.2 GB more each). A worker is started only for every 20 million points of input, so
155
+ small jobs use one worker.
156
+ - **Disk**: a hard disk works; an SSD helps when several workers read LAZ files at once. Each
157
+ input file gets a `.lax` spatial index next to it (built once, see
158
+ [Build LiDAR Spatial Index](https://beratool.github.io/beratools/pc2products/user/lidar_index/)), so the
159
+ input folder must be writable for the fastest reading.
160
+ - **Memory limit**: each tool and its workers are limited to 80% of the free memory, so a tile
161
+ that needs more stops the tool with an error (`std::bad_alloc` or "cannot allocate") instead of
162
+ running the computer out of memory.
163
+ - **Resuming**: a run stops at the first tile that fails, or when you cancel it. Free memory, then
164
+ run the tool again with `skip_existing` set to `true` and the same parameters: the tiles whose
165
+ outputs are complete are skipped (each output is written as `<name>.partial.<ext>` and renamed
166
+ 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
167
+ saved next to its outputs (`tiles_<suffix>.csv`); the other blocks are tiled again for the
168
+ memory free now.
169
+ - **Kriging**: the memory figures were measured for ground classification. Kriging (DTM and
170
+ normalization) needs far more, over 7.8 GB for 14 million points, so use TIN or IDW on large
171
+ or dense data.
172
+ - **Uniform tiles**: tiled point cloud outputs (ground classification, normalization) vary in size
173
+ with the density, from 500 m down to 100 m, and the next tool processes them best as they are,
174
+ since each one fits in memory. To deliver them as uniform tiles, for example for GIS or to match
175
+ a tile index, run [Tile LiDAR Data](https://beratool.github.io/beratools/pc2products/user/lidar_tile/) on the
176
+ output folder once the chain of tools is done. Every tile size divides the 500 m blocks, so the
177
+ outputs combine into exact 500 m (or 1 km) tiles; the points are streamed, using little memory,
178
+ but each is read and written once more:
179
+
180
+ ```bash
181
+ bt tile --in_las_folder Classified_PC --out_folder Classified_PC_500m --tile_size 500 --buffer 0
182
+ ```
183
+
184
+ The raster tools don't need this: they also write one merged `Merged_*.tif`.
185
+
186
+ [How the LiDAR tools tile a point cloud](docs/files/technical/lidar_density_tiling.md)
187
+ explains the tiling with diagrams, and
188
+ [How all the tools behave](https://beratool.github.io/beratools/pc2products/technical/tool_behaviour/) has the
189
+ details of tiling, workers and progress.
190
+
191
+ ## Raster2Products Tools
192
+
193
+ The **Raster2Products** category makes rasters from other rasters, such as a DTM from
194
+ [Generate DTM from LiDAR Data](https://beratool.github.io/beratools/pc2products/user/dtm/). The tools run in
195
+ Python and need no R; they read large rasters in tiles and process each tile in parallel.
196
+
197
+ | Tool | `bt` subcommand |
198
+ |------|-----------------|
199
+ | [Normalized DTM from DTM Raster](https://beratool.github.io/beratools/raster2products/user/ndtm_fr_dtmraster/) | `ndtm_fr_dtmraster` |
200
+
201
+ ```bash
202
+ $ bt ndtm_fr_dtmraster --in_dtm Raster_Output/Merged_TIN_DTM.tif --out_folder NDTM --Smooth_by median --Min_ws 3
203
+ $ bt ndtm_fr_dtmraster --in_dtm Raster_Output --out_folder NDTM --Smooth_by median --Min_ws 3 # its DTM tiles, one output each
204
+ ```
205
+
206
+ ## Pipelines
207
+
208
+ The **Pipeline** tab, next to **Tool history** in the GUI, chains tools into steps that run one after
209
+ another. Drag tools in from the tool tree, set each step's parameters in the tool form, and link a
210
+ step's inputs to an earlier step's output. Each input links to the latest earlier step that makes what
211
+ it needs, for example the checked lines from **Check Seed Lines** into **Centerline**, and the
212
+ links are reset whenever a step is added, moved or removed.
213
+
214
+ ![BERA Tools Pipeline panel](docs/files/screenshots/bt_pipeline.png)
215
+
216
+ The example above chains the six mapping tools into a ground footprint workflow. Each step lists the
217
+ step it reads from (`← step 5`), and the selected step's linked inputs are shown under
218
+ **Inputs from earlier steps** and greyed out in the tool form. Use **Run Pipeline** to run all steps
219
+ in order.
220
+
221
+ Pipelines save as `.json` files and also run without the GUI:
222
+
223
+ ```bash
224
+ $ python -m beratools.core.pipeline my_pipeline.json --processes 4
225
+ ```
226
+
227
+ See [Building a pipeline](https://beratool.github.io/beratools/user_guide/#building-a-pipeline).
228
+
229
+ ## BERA Tools Guide
230
+
231
+ Check the online [BERA Tools Guide](https://beratool.github.io/beratools/) for user, developer and technical guides.
232
+
233
+ ## Sponsors
234
+
235
+ <table>
236
+ <tr>
237
+ <td align="center">
238
+ <a href="https://about.signpath.io/">
239
+ <img src="https://avatars.githubusercontent.com/u/34448643?s=48&amp;v=4" alt="SignPath logo" width="48">
240
+ </a>
241
+ </td>
242
+ <td>
243
+ Free code signing on Windows provided by <a href="https://about.signpath.io/">SignPath.io</a>, certificate by <a href="https://signpath.org/">SignPath Foundation</a>.
244
+ </td>
245
+ </tr>
246
+ </table>
247
+
248
+ ## Credits
249
+
250
+ <table>
251
+ <tr>
252
+ <td><img src="https://github.com/BERATool/beratools/raw/main/docs/files/icons/bera_logo.png" alt="Logos" width="80"></td>
253
+ <td>
254
+ <p>
255
+ This tool is part of the <strong><a href="http://www.beraproject.org/">Boreal Ecosystem Recovery & Assessment (BERA)</a></strong>.
256
+ It is actively developed by the <a href="https://www.appliedgrg.ca/"><strong>Applied Geospatial Research Group</strong></a>.
257
+ </p>
258
+ <p>
259
+ © 2026 Applied Geospatial Research Group. All rights reserved.
260
+ </p>
261
+ </td>
262
+ </tr>
263
+ </table>
@@ -0,0 +1,11 @@
1
+ __author__ = """Applied Geospatial Research Group"""
2
+ __email__ = 'appliedgrg@gmail.com'
3
+ # The one place the version is set: the packages, the GUI's About box and each module's
4
+ # requires_frame check read it. Bump it for each release (see the maintainer guide), and set
5
+ # "version" in every module's tools.json to the same (tests/test_registry.py checks it).
6
+ __version__ = "0.7.0"
7
+ __license__ = "GPL-3.0-or-later"
8
+ __copyright__ = "Copyright (c) AppliedGRG"
9
+ __status__ = "Pre-Alpha"
10
+ __url__ = "https://github.com/BERATool/beratools"
11
+ __all__ = ["tools", "gui"]