BERATools 0.2.3__py3-none-any.whl → 0.2.5__py3-none-any.whl
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.
- beratools/__init__.py +8 -3
- beratools/core/{algo_footprint_rel.py → algo_canopy_footprint_exp.py} +176 -139
- beratools/core/algo_centerline.py +61 -77
- beratools/core/algo_common.py +48 -57
- beratools/core/algo_cost.py +18 -25
- beratools/core/algo_dijkstra.py +37 -45
- beratools/core/algo_line_grouping.py +100 -100
- beratools/core/algo_merge_lines.py +40 -8
- beratools/core/algo_split_with_lines.py +289 -304
- beratools/core/algo_vertex_optimization.py +25 -46
- beratools/core/canopy_threshold_relative.py +755 -0
- beratools/core/constants.py +8 -9
- beratools/{tools → core}/line_footprint_functions.py +411 -258
- beratools/core/logger.py +18 -2
- beratools/core/tool_base.py +17 -75
- beratools/gui/assets/BERALogo.ico +0 -0
- beratools/gui/assets/BERA_Splash.gif +0 -0
- beratools/gui/assets/BERA_WizardImage.png +0 -0
- beratools/gui/assets/beratools.json +475 -2171
- beratools/gui/bt_data.py +585 -234
- beratools/gui/bt_gui_main.py +129 -91
- beratools/gui/main.py +4 -7
- beratools/gui/tool_widgets.py +530 -354
- beratools/tools/__init__.py +0 -7
- beratools/tools/{line_footprint_absolute.py → canopy_footprint_absolute.py} +81 -56
- beratools/tools/canopy_footprint_exp.py +113 -0
- beratools/tools/centerline.py +30 -37
- beratools/tools/check_seed_line.py +127 -0
- beratools/tools/common.py +65 -586
- beratools/tools/{line_footprint_fixed.py → ground_footprint.py} +140 -117
- beratools/tools/line_footprint_relative.py +64 -35
- beratools/tools/tool_template.py +48 -40
- beratools/tools/vertex_optimization.py +20 -34
- beratools/utility/env_checks.py +53 -0
- beratools/utility/spatial_common.py +210 -0
- beratools/utility/tool_args.py +138 -0
- beratools-0.2.5.dist-info/METADATA +134 -0
- beratools-0.2.5.dist-info/RECORD +50 -0
- {beratools-0.2.3.dist-info → beratools-0.2.5.dist-info}/WHEEL +1 -1
- beratools-0.2.5.dist-info/entry_points.txt +3 -0
- beratools-0.2.5.dist-info/licenses/LICENSE +674 -0
- beratools/core/algo_tiler.py +0 -428
- beratools/gui/__init__.py +0 -11
- beratools/gui/batch_processing_dlg.py +0 -513
- beratools/gui/map_window.py +0 -162
- beratools/tools/Beratools_r_script.r +0 -1120
- beratools/tools/Ht_metrics.py +0 -116
- beratools/tools/batch_processing.py +0 -136
- beratools/tools/canopy_threshold_relative.py +0 -672
- beratools/tools/canopycostraster.py +0 -222
- beratools/tools/fl_regen_csf.py +0 -428
- beratools/tools/forest_line_attributes.py +0 -408
- beratools/tools/line_grouping.py +0 -45
- beratools/tools/ln_relative_metrics.py +0 -615
- beratools/tools/r_cal_lpi_elai.r +0 -25
- beratools/tools/r_generate_pd_focalraster.r +0 -101
- beratools/tools/r_interface.py +0 -80
- beratools/tools/r_point_density.r +0 -9
- beratools/tools/rpy_chm2trees.py +0 -86
- beratools/tools/rpy_dsm_chm_by.py +0 -81
- beratools/tools/rpy_dtm_by.py +0 -63
- beratools/tools/rpy_find_cellsize.py +0 -43
- beratools/tools/rpy_gnd_csf.py +0 -74
- beratools/tools/rpy_hummock_hollow.py +0 -85
- beratools/tools/rpy_hummock_hollow_raster.py +0 -71
- beratools/tools/rpy_las_info.py +0 -51
- beratools/tools/rpy_laz2las.py +0 -40
- beratools/tools/rpy_lpi_elai_lascat.py +0 -466
- beratools/tools/rpy_normalized_lidar_by.py +0 -56
- beratools/tools/rpy_percent_above_dbh.py +0 -80
- beratools/tools/rpy_points2trees.py +0 -88
- beratools/tools/rpy_vegcoverage.py +0 -94
- beratools/tools/tiler.py +0 -48
- beratools/tools/zonal_threshold.py +0 -144
- beratools-0.2.3.dist-info/METADATA +0 -108
- beratools-0.2.3.dist-info/RECORD +0 -74
- beratools-0.2.3.dist-info/entry_points.txt +0 -2
- beratools-0.2.3.dist-info/licenses/LICENSE +0 -22
beratools/core/constants.py
CHANGED
|
@@ -12,25 +12,25 @@ Description:
|
|
|
12
12
|
|
|
13
13
|
The purpose of this script is to provide common constants.
|
|
14
14
|
"""
|
|
15
|
-
import enum
|
|
16
15
|
|
|
17
|
-
import
|
|
16
|
+
import enum
|
|
18
17
|
|
|
19
|
-
NADDatum = [
|
|
18
|
+
NADDatum = ["NAD83 Canadian Spatial Reference System", "North American Datum 1983"]
|
|
20
19
|
|
|
21
20
|
ASSETS_PATH = "assets"
|
|
22
21
|
BT_DEBUGGING = False
|
|
23
|
-
BT_UID =
|
|
24
|
-
BT_GROUP = "
|
|
22
|
+
BT_UID = "BT_UID"
|
|
23
|
+
BT_GROUP = "BT_GROUP"
|
|
25
24
|
|
|
26
|
-
BT_EPSILON = np.finfo(float).eps
|
|
27
|
-
BT_NODATA_COST =
|
|
25
|
+
BT_EPSILON = 2.220446049250313e-16 # np.finfo(float).eps
|
|
26
|
+
BT_NODATA_COST = float('inf')
|
|
28
27
|
BT_NODATA = -9999
|
|
29
28
|
|
|
30
29
|
LP_SEGMENT_LENGTH = 500
|
|
31
30
|
FP_CORRIDOR_THRESHOLD = 2.5
|
|
32
31
|
SMALL_BUFFER = 1e-3
|
|
33
32
|
|
|
33
|
+
|
|
34
34
|
class CenterlineFlags(enum.Flag):
|
|
35
35
|
"""Flags for the centerline algorithm."""
|
|
36
36
|
|
|
@@ -38,6 +38,7 @@ class CenterlineFlags(enum.Flag):
|
|
|
38
38
|
DELETE_HOLES = True
|
|
39
39
|
SIMPLIFY_POLYGON = True
|
|
40
40
|
|
|
41
|
+
|
|
41
42
|
@enum.unique
|
|
42
43
|
class ParallelMode(enum.IntEnum):
|
|
43
44
|
"""Defines the parallel mode for the algorithms."""
|
|
@@ -47,6 +48,4 @@ class ParallelMode(enum.IntEnum):
|
|
|
47
48
|
CONCURRENT = 3
|
|
48
49
|
DASK = 4
|
|
49
50
|
SLURM = 5
|
|
50
|
-
# RAY = 6
|
|
51
51
|
|
|
52
|
-
PARALLEL_MODE = ParallelMode.MULTIPROCESSING
|