From ac06165b070ec77ee907adf6b3cc49253c495ebe Mon Sep 17 00:00:00 2001 From: Chris Leaman Date: Tue, 18 Dec 2018 14:45:42 +1100 Subject: [PATCH] Add make commands for geojsons --- Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Makefile b/Makefile index 08fc6ad..b4cff9e 100644 --- a/Makefile +++ b/Makefile @@ -167,6 +167,32 @@ impacts: ./data/interim/impacts_forecasted_foreshore_slope_sto06.csv ./data/inte # --output-file "./data/interim/impacts_forecasted_poststorm_mean_slope_sto06.csv" +./data/interim/impacts_forecasted_mean_slope_sto06.geojson: ./data/interim/impacts_forecasted_mean_slope_sto06.csv + activate ./.venv && python ./src/cli.py impacts-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --observed-impacts-csv "./data/interim/impacts_observed.csv" \ + --forecast-impacts-csv "./data/interim/impacts_forecasted_mean_slope_sto06.csv" \ + --output-geojson "./data/interim/impacts_forecasted_mean_slope_sto06.geojson" + +./data/interim/impacts_forecasted_mean_slope_sto06_R_high.geojson: ./data/interim/impacts_forecasted_mean_slope_sto06.csv + activate ./.venv && python ./src/cli.py R-high-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --profile-csv "./data/interim/profiles.csv" \ + --impacts-csv "./data/interim/impacts_forecasted_mean_slope_sto06" \ + --output-geojson "./data/interim/impacts_forecasted_mean_slope_sto06_R_high.geojson" + +./data/interim/profile_features.geojson: ./data/interim/profile_features.csv + activate ./.venv && python ./src/cli.py R-high-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --profile-features-csv "./data/interim/profile_features.csv" \ + --output-geojson "./data/interim/profile_features.geojson" + +./data/interim/sites.geojson: ./data/interim/sites.csv + activate ./.venv && python ./src/cli.py sites-csv-to-geojson \ + --input-csv "./data/interim/sites.csv" \ + --output-geojson "./data/interim/sites.geojson" + + ############################### # Misc commands format: ./src/*.py ##@misc Check python file formatting