Add make commands for geojsons

develop
Chris Leaman 6 years ago
parent a6ab8b8354
commit ac06165b07

@ -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

Loading…
Cancel
Save