Skip to content

Commit

Permalink
make all ndsm threshold to variable
Browse files Browse the repository at this point in the history
  • Loading branch information
anikaweinmann committed Apr 5, 2024
1 parent 3e4b4e4 commit 4a58f8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def main():
)
rm_rasters.append("trees_object_ndsmmax")
grass.mapcalc(
"trees_object_ndsm = if(trees_object_ndsmmax < 3, null(), trees_object_all)"
f"trees_object_ndsm = if(trees_object_ndsmmax < {ndsm_threshold}, null(), trees_object_all)"
)
rm_rasters.append("trees_object_ndsm")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def main():
)
rm_rasters.append("trees_ml_object_ndsmmax")
grass.mapcalc(
"trees_ml_object_ndsm = if(trees_ml_object_ndsmmax < 3, null(), trees_ml_object_all)"
f"trees_ml_object_ndsm = if(trees_ml_object_ndsmmax < {ndsm_threshold}, null(), trees_ml_object_all)"
)
rm_rasters.append("trees_ml_object_ndsm")

Expand Down

0 comments on commit 4a58f8b

Please sign in to comment.