From 4b37909d462f26e7a155e3f1b89bfaa69a616846 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Tue, 24 Jul 2018 10:06:16 +1000 Subject: [PATCH] Only save ground in heatmap tif --- las_outputs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/las_outputs.py b/las_outputs.py index 11cf21d..a778533 100644 --- a/las_outputs.py +++ b/las_outputs.py @@ -231,8 +231,8 @@ def main(): # Make a raster from point cloud print('Creating heat map raster...') tif_name = os.path.join(output_tif_dir, las_basename + '.tif') - call_lastools('blast2dem', input=las_data, output=tif_name, - args=['-step', 0.2], verbose=False) + call_lastools('las2dem', input=las_data, output=tif_name, + args=['-step', 0.2, '-keep_class', 2], verbose=False) # Extract elevations along profiles from triangulated surface print('Extracting profile elevations...')