From 82f22df8902e5fb3344887e7189c7748f031079e Mon Sep 17 00:00:00 2001 From: chrisd Date: Fri, 8 Nov 2019 15:46:24 +1100 Subject: [PATCH 1/5] Update 'README.md' --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a9abbb2..fc253e1 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ python las_outputs.py param-files/survey-1*.yaml param-files/survey-2*.yaml Example usage: ``` -C:/Python27/ArcGIS10.4/python generate_heatmaps.py param-files/survey-2*.yaml +C:\Python27\ArcGIS10.4\python generate_heatmaps.py param-files\survey-2*.yaml ``` @@ -76,5 +76,5 @@ C:/Python27/ArcGIS10.4/python generate_heatmaps.py param-files/survey-2*.yaml Example usage: ``` -C:/Python27/ArcGIS10.4/python plot_heatmaps.py param-files/survey-2-avoca.yaml +C:\Python27\ArcGIS10.4\python plot_heatmaps.py param-files\survey-2-avoca.yaml ``` From 993296cef8422df7257662909e95e9ff62d06205 Mon Sep 17 00:00:00 2001 From: chrisd Date: Thu, 13 Feb 2020 21:28:16 +1100 Subject: [PATCH 2/5] Update 'README.md' --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fc253e1..7778abd 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ python las_outputs.py param-files/survey-1*.yaml param-files/survey-2*.yaml Example usage: ``` -C:\Python27\ArcGIS10.4\python generate_heatmaps.py param-files\survey-2*.yaml +C:\Python27\ArcGIS10.5\python generate_heatmaps.py param-files\survey-2*.yaml ``` From 3220cf60ad402d8b481bc923de96e86c9ddb5d88 Mon Sep 17 00:00:00 2001 From: chrisd Date: Thu, 13 Feb 2020 21:28:38 +1100 Subject: [PATCH 3/5] Update 'README.md' --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7778abd..f53e353 100644 --- a/README.md +++ b/README.md @@ -76,5 +76,5 @@ C:\Python27\ArcGIS10.5\python generate_heatmaps.py param-files\survey-2*.yaml Example usage: ``` -C:\Python27\ArcGIS10.4\python plot_heatmaps.py param-files\survey-2-avoca.yaml +C:\Python27\ArcGIS10.5\python plot_heatmaps.py param-files\survey-2-avoca.yaml ``` From e59f3aedd1d5ebf1eb2c618c28e07a7c12a2e88f Mon Sep 17 00:00:00 2001 From: chrisd Date: Thu, 13 Feb 2020 21:41:01 +1100 Subject: [PATCH 4/5] Update 'README.md' Added extract_contours to readme --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index f53e353..46f442e 100644 --- a/README.md +++ b/README.md @@ -78,3 +78,11 @@ Example usage: ``` C:\Python27\ArcGIS10.5\python plot_heatmaps.py param-files\survey-2-avoca.yaml ``` + +### 7. Export 0.7 m contour for DSAS trend analysis +`extract_contours.py` extracts a predefined contour (say 0.7 m AHD) and outputs it in a format suitable for DSAS shoreline trend analysis. + +Example usage: +``` +python extract_contours.py +``` \ No newline at end of file From 4a31ae3f3406c133494cdf0786c062b5d659cc88 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Mon, 17 Feb 2020 14:56:11 +1100 Subject: [PATCH 5/5] Add 'heatmap' or 'DEM' suffix to output tif files --- generate_heatmaps.py | 6 +++--- las_outputs.py | 2 +- plot_heatmaps.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/generate_heatmaps.py b/generate_heatmaps.py index 888d794..60f6809 100644 --- a/generate_heatmaps.py +++ b/generate_heatmaps.py @@ -72,10 +72,10 @@ def process(yaml_name): raise ValueError('No previous survey date provided') # Set paths for raster files - current_raster = os.path.join(input_tif_dir, base_name + '.tif') + current_raster = os.path.join(input_tif_dir, base_name + '_DEM.tif') previous_base_name = re.sub('\d+', previous_date, base_name) - previous_raster = os.path.join(input_tif_dir, previous_base_name + '.tif') - heatmap_raster = os.path.join(output_tif_dir, base_name + '.tif') + previous_raster = os.path.join(input_tif_dir, previous_base_name + '_DEM.tif') + heatmap_raster = os.path.join(output_tif_dir, base_name + '_heatmap.tif') print('processing {}'.format(beach)) diff --git a/las_outputs.py b/las_outputs.py index fb62c7a..d1d7f8b 100644 --- a/las_outputs.py +++ b/las_outputs.py @@ -262,7 +262,7 @@ def process(yaml_file): # Make a raster from point cloud print('Creating heat map raster...') - tif_name = os.path.join(output_tif_dir, las_basename + '.tif') + tif_name = os.path.join(output_tif_dir, las_basename + '_DEM.tif') call_lastools('las2dem', input=las_data, output=tif_name, args=['-step', 1, '-keep_class', 2], verbose=False) # IF THIS STEP ISN'T WORKING: diff --git a/plot_heatmaps.py b/plot_heatmaps.py index d1c0422..2c89382 100644 --- a/plot_heatmaps.py +++ b/plot_heatmaps.py @@ -70,7 +70,7 @@ def process(yaml_name): raise ValueError('No previous survey date provided') # Set paths for raster files - heatmap_raster = os.path.join(input_tif_dir, base_name + '.tif') + heatmap_raster = os.path.join(input_tif_dir, base_name + '_heatmap.tif') print('processing {}'.format(beach)) mxd = arcpy.mapping.MapDocument(mxd_name)