From 88a149590ffa7447c2a02252e9559babe66e3545 Mon Sep 17 00:00:00 2001 From: Chris Leaman Date: Tue, 20 Nov 2018 16:08:35 +1100 Subject: [PATCH] Add function for creating profile_features.csv --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d0c690c..1dbf142 100644 --- a/Makefile +++ b/Makefile @@ -68,11 +68,20 @@ process-mat: ./data/interim/sites.csv ./data/interim/waves.csv ./data/interim/pr --sites-csv "./data/interim/sites.csv" \ --output-file "./data/interim/tides.csv" -./data/interim/sites.shp : ./data/interim/sites.csv +# Creates a .shp of our sites to load into QGis +./data/interim/sites.shp: ./data/interim/sites.csv pipenv run python ./src/data/csv_to_shp.py sites-csv-to-shp \ --input-csv "./data/interim/sites.csv" \ --output-shp "./data/interim/sites.shp" +./data/interim/profile_features.csv: ./data/raw/profile_features/dune_crests.shp ./data/raw/profile_features/dune_toes.shp ./data/interim/sites.csv ./data/interim/profiles.csv + pipenv run python ./src/data/profile_features.py create-profile-features \ + --dune-crest-shp "./data/raw/profile_features/dune_crests.shp" \ + --dune-toe-shp "./data/raw/profile_features/dune_toes.shp" \ + --sites-csv "./data/interim/sites.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --output-csv "./data/interim/profile_features.csv" + ################################################################################# # PROJECT RULES # #################################################################################