diff --git a/Makefile b/Makefile index b936b08..df05d12 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,7 @@ pull-data: ##@data Copies data from data backup directory to ./data/ # Command for activating our virtual environment and calling the CLI entry point PYTHON_CLI = activate ./.venv && python ./src/cli.py -impacts: ./data/interim/impacts_forecasted_foreshore_slope_sto06.csv ./data/interim/impacts_forecasted_mean_slope_sto06.csv ./data/interim/impacts_observed.csv ##@products makes obsered and forecasted impacts +impacts: ./data/interim/impacts_forecasted_foreshore_slope_sto06.csv ./data/interim/impacts_forecasted_premean_slope_sto06.csv ./data/interim/impacts_observed.csv ##@products makes obsered and forecasted impacts ### Parses raw matfiles @@ -94,6 +94,24 @@ impacts: ./data/interim/impacts_forecasted_foreshore_slope_sto06.csv ./data/inte ### TWLs +twls: ./data/interim/twl_foreshore_slope_sto06.csv +twls: ./data/interim/twl_premean_slope_sto06.csv +twls: ./data/interim/twl_premean_slope_hol86.csv +twls: ./data/interim/twl_premean_slope_nie91.csv +twls: ./data/interim/twl_premean_slope_pow18.csv +twls: ./data/interim/twl_postmean_slope_sto06.csv +twls: ./data/interim/twl_postmean_slope_hol86.csv +twls: ./data/interim/twl_postmean_slope_nie91.csv +twls: ./data/interim/twl_postmean_slope_pow18.csv +twls: ./data/interim/twl_preintertidal_slope_sto06.csv +twls: ./data/interim/twl_preintertidal_slope_hol86.csv +twls: ./data/interim/twl_preintertidal_slope_nie91.csv +twls: ./data/interim/twl_preintertidal_slope_pow18.csv +twls: ./data/interim/twl_postintertidal_slope_sto06.csv +twls: ./data/interim/twl_postintertidal_slope_hol86.csv +twls: ./data/interim/twl_postintertidal_slope_nie91.csv +twls: ./data/interim/twl_postintertidal_slope_pow18.csv + ./data/interim/twl_foreshore_slope_sto06.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv $(PYTHON_CLI) create-twl-forecast \ --waves-csv "./data/interim/waves.csv" \ @@ -106,7 +124,7 @@ impacts: ./data/interim/impacts_forecasted_foreshore_slope_sto06.csv ./data/inte --profile-type "prestorm" \ --output-file "./data/interim/twl_foreshore_slope_sto06.csv" -./data/interim/twl_mean_slope_sto06.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv +./data/interim/twl_premean_slope_sto06.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv $(PYTHON_CLI) create-twl-forecast \ --waves-csv "./data/interim/waves.csv" \ --tides-csv "./data/interim/tides.csv" \ @@ -116,9 +134,9 @@ impacts: ./data/interim/impacts_forecasted_foreshore_slope_sto06.csv ./data/inte --runup-function "sto06" \ --slope "mean" \ --profile-type "prestorm" \ - --output-file "./data/interim/twl_mean_slope_sto06.csv" + --output-file "./data/interim/twl_premean_slope_sto06.csv" -./data/interim/twl_mean_slope_hol86.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv +./data/interim/twl_premean_slope_hol86.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv $(PYTHON_CLI) create-twl-forecast \ --waves-csv "./data/interim/waves.csv" \ --tides-csv "./data/interim/tides.csv" \ @@ -128,9 +146,9 @@ impacts: ./data/interim/impacts_forecasted_foreshore_slope_sto06.csv ./data/inte --runup-function "hol86" \ --slope "mean" \ --profile-type "prestorm" \ - --output-file "./data/interim/twl_mean_slope_hol86.csv" + --output-file "./data/interim/twl_premean_slope_hol86.csv" -./data/interim/twl_mean_slope_nie91.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv +./data/interim/twl_premean_slope_nie91.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv $(PYTHON_CLI) create-twl-forecast \ --waves-csv "./data/interim/waves.csv" \ --tides-csv "./data/interim/tides.csv" \ @@ -140,9 +158,57 @@ impacts: ./data/interim/impacts_forecasted_foreshore_slope_sto06.csv ./data/inte --runup-function "nie91" \ --slope "mean" \ --profile-type "prestorm" \ - --output-file "./data/interim/twl_mean_slope_nie91.csv" + --output-file "./data/interim/twl_premean_slope_nie91.csv" + +./data/interim/twl_premean_slope_pow18.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv + $(PYTHON_CLI) create-twl-forecast \ + --waves-csv "./data/interim/waves.csv" \ + --tides-csv "./data/interim/tides.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --grain-size-csv "./data/interim/sites_grain_size.csv" \ + --runup-function "pow18" \ + --slope "mean" \ + --profile-type "prestorm" \ + --output-file "./data/interim/twl_premean_slope_pow18.csv" + +./data/interim/twl_postmean_slope_sto06.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv + $(PYTHON_CLI) create-twl-forecast \ + --waves-csv "./data/interim/waves.csv" \ + --tides-csv "./data/interim/tides.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --grain-size-csv "./data/interim/sites_grain_size.csv" \ + --runup-function "sto06" \ + --slope "mean" \ + --profile-type "poststorm" \ + --output-file "./data/interim/twl_postmean_slope_sto06.csv" + +./data/interim/twl_postmean_slope_hol86.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv + $(PYTHON_CLI) create-twl-forecast \ + --waves-csv "./data/interim/waves.csv" \ + --tides-csv "./data/interim/tides.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --grain-size-csv "./data/interim/sites_grain_size.csv" \ + --runup-function "hol86" \ + --slope "mean" \ + --profile-type "poststorm" \ + --output-file "./data/interim/twl_postmean_slope_hol86.csv" + +./data/interim/twl_postmean_slope_nie91.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv + $(PYTHON_CLI) create-twl-forecast \ + --waves-csv "./data/interim/waves.csv" \ + --tides-csv "./data/interim/tides.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --grain-size-csv "./data/interim/sites_grain_size.csv" \ + --runup-function "nie91" \ + --slope "mean" \ + --profile-type "poststorm" \ + --output-file "./data/interim/twl_postmean_slope_nie91.csv" -./data/interim/twl_mean_slope_pow18.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv +./data/interim/twl_postmean_slope_pow18.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv $(PYTHON_CLI) create-twl-forecast \ --waves-csv "./data/interim/waves.csv" \ --tides-csv "./data/interim/tides.csv" \ @@ -151,11 +217,128 @@ impacts: ./data/interim/impacts_forecasted_foreshore_slope_sto06.csv ./data/inte --grain-size-csv "./data/interim/sites_grain_size.csv" \ --runup-function "pow18" \ --slope "mean" \ + --profile-type "poststorm" \ + --output-file "./data/interim/twl_postmean_slope_pow18.csv" + +./data/interim/twl_preintertidal_slope_sto06.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv + $(PYTHON_CLI) create-twl-forecast \ + --waves-csv "./data/interim/waves.csv" \ + --tides-csv "./data/interim/tides.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --grain-size-csv "./data/interim/sites_grain_size.csv" \ + --runup-function "sto06" \ + --slope "intertidal" \ + --profile-type "prestorm" \ + --output-file "./data/interim/twl_preintertidal_slope_sto06.csv" + +./data/interim/twl_preintertidal_slope_hol86.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv + $(PYTHON_CLI) create-twl-forecast \ + --waves-csv "./data/interim/waves.csv" \ + --tides-csv "./data/interim/tides.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --grain-size-csv "./data/interim/sites_grain_size.csv" \ + --runup-function "hol86" \ + --slope "intertidal" \ + --profile-type "prestorm" \ + --output-file "./data/interim/twl_preintertidal_slope_hol86.csv" + +./data/interim/twl_preintertidal_slope_nie91.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv + $(PYTHON_CLI) create-twl-forecast \ + --waves-csv "./data/interim/waves.csv" \ + --tides-csv "./data/interim/tides.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --grain-size-csv "./data/interim/sites_grain_size.csv" \ + --runup-function "nie91" \ + --slope "intertidal" \ + --profile-type "prestorm" \ + --output-file "./data/interim/twl_preintertidal_slope_nie91.csv" + +./data/interim/twl_preintertidal_slope_pow18.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv + $(PYTHON_CLI) create-twl-forecast \ + --waves-csv "./data/interim/waves.csv" \ + --tides-csv "./data/interim/tides.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --grain-size-csv "./data/interim/sites_grain_size.csv" \ + --runup-function "pow18" \ + --slope "intertidal" \ --profile-type "prestorm" \ - --output-file "./data/interim/twl_mean_slope_pow18.csv" + --output-file "./data/interim/twl_preintertidal_slope_pow18.csv" + +./data/interim/twl_postintertidal_slope_sto06.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv + $(PYTHON_CLI) create-twl-forecast \ + --waves-csv "./data/interim/waves.csv" \ + --tides-csv "./data/interim/tides.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --grain-size-csv "./data/interim/sites_grain_size.csv" \ + --runup-function "sto06" \ + --slope "intertidal" \ + --profile-type "poststorm" \ + --output-file "./data/interim/twl_postintertidal_slope_sto06.csv" + +./data/interim/twl_postintertidal_slope_hol86.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv + $(PYTHON_CLI) create-twl-forecast \ + --waves-csv "./data/interim/waves.csv" \ + --tides-csv "./data/interim/tides.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --grain-size-csv "./data/interim/sites_grain_size.csv" \ + --runup-function "hol86" \ + --slope "intertidal" \ + --profile-type "poststorm" \ + --output-file "./data/interim/twl_postintertidal_slope_hol86.csv" + +./data/interim/twl_postintertidal_slope_nie91.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv + $(PYTHON_CLI) create-twl-forecast \ + --waves-csv "./data/interim/waves.csv" \ + --tides-csv "./data/interim/tides.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --grain-size-csv "./data/interim/sites_grain_size.csv" \ + --runup-function "nie91" \ + --slope "intertidal" \ + --profile-type "poststorm" \ + --output-file "./data/interim/twl_postintertidal_slope_nie91.csv" + +./data/interim/twl_postintertidal_slope_pow18.csv: ./data/interim/waves.csv ./data/interim/tides.csv ./data/interim/profiles.csv ./data/interim/sites.csv ./data/interim/profile_features_crest_toes.csv + $(PYTHON_CLI) create-twl-forecast \ + --waves-csv "./data/interim/waves.csv" \ + --tides-csv "./data/interim/tides.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --grain-size-csv "./data/interim/sites_grain_size.csv" \ + --runup-function "pow18" \ + --slope "intertidal" \ + --profile-type "poststorm" \ + --output-file "./data/interim/twl_postintertidal_slope_pow18.csv" + ### IMPACTS +impacts: ./data/interim/impacts_observed.csv +impacts: ./data/interim/impacts_forecasted_foreshore_slope_sto06.csv +impacts: ./data/interim/impacts_forecasted_premean_slope_sto06.csv +impacts: ./data/interim/impacts_forecasted_premean_slope_hol86.csv +impacts: ./data/interim/impacts_forecasted_premean_slope_nie91.csv +impacts: ./data/interim/impacts_forecasted_premean_slope_pow18.csv +impacts: ./data/interim/impacts_forecasted_postmean_slope_sto06.csv +impacts: ./data/interim/impacts_forecasted_postmean_slope_hol86.csv +impacts: ./data/interim/impacts_forecasted_postmean_slope_nie91.csv +impacts: ./data/interim/impacts_forecasted_postmean_slope_pow18.csv +impacts: ./data/interim/impacts_forecasted_preintertidal_slope_sto06.csv +impacts: ./data/interim/impacts_forecasted_preintertidal_slope_hol86.csv +impacts: ./data/interim/impacts_forecasted_preintertidal_slope_nie91.csv +impacts: ./data/interim/impacts_forecasted_preintertidal_slope_pow18.csv +impacts: ./data/interim/impacts_forecasted_postintertidal_slope_sto06.csv +impacts: ./data/interim/impacts_forecasted_postintertidal_slope_hol86.csv +impacts: ./data/interim/impacts_forecasted_postintertidal_slope_nie91.csv +impacts: ./data/interim/impacts_forecasted_postintertidal_slope_pow18.csv + + ./data/interim/impacts_observed.csv: ./data/interim/profiles.csv ./data/interim/profile_features_crest_toes.csv ./data/raw/profile_features_chris_leaman/profile_features_chris_leaman.csv $(PYTHON_CLI) create-observed-impacts \ --profiles-csv "./data/interim/profiles.csv" \ @@ -163,85 +346,368 @@ impacts: ./data/interim/impacts_forecasted_foreshore_slope_sto06.csv ./data/inte --raw-profile-features-csv "./data/raw/profile_features_chris_leaman/profile_features_chris_leaman.csv" \ --output-file "./data/interim/impacts_observed.csv" -./data/interim/impacts_forecasted_mean_slope_sto06.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_mean_slope_sto06.csv - $(PYTHON_CLI) create-forecasted-impacts \ - --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ - --forecasted-twl-csv "./data/interim/twl_mean_slope_sto06.csv" \ - --output-file "./data/interim/impacts_forecasted_mean_slope_sto06.csv" - ./data/interim/impacts_forecasted_foreshore_slope_sto06.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_foreshore_slope_sto06.csv $(PYTHON_CLI) create-forecasted-impacts \ --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ --forecasted-twl-csv "./data/interim/twl_foreshore_slope_sto06.csv" \ --output-file "./data/interim/impacts_forecasted_foreshore_slope_sto06.csv" -./data/interim/impacts_forecasted_mean_slope_hol86.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_mean_slope_hol86.csv +./data/interim/impacts_forecasted_premean_slope_sto06.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_premean_slope_sto06.csv + $(PYTHON_CLI) create-forecasted-impacts \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --forecasted-twl-csv "./data/interim/twl_premean_slope_sto06.csv" \ + --output-file "./data/interim/impacts_forecasted_premean_slope_sto06.csv" + +./data/interim/impacts_forecasted_premean_slope_hol86.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_premean_slope_hol86.csv + $(PYTHON_CLI) create-forecasted-impacts \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --forecasted-twl-csv "./data/interim/twl_premean_slope_hol86.csv" \ + --output-file "./data/interim/impacts_forecasted_premean_slope_hol86.csv" + +./data/interim/impacts_forecasted_premean_slope_nie91.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_premean_slope_nie91.csv + $(PYTHON_CLI) create-forecasted-impacts \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --forecasted-twl-csv "./data/interim/twl_premean_slope_nie91.csv" \ + --output-file "./data/interim/impacts_forecasted_premean_slope_nie91.csv" + +./data/interim/impacts_forecasted_premean_slope_pow18.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_premean_slope_pow18.csv + $(PYTHON_CLI) create-forecasted-impacts \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --forecasted-twl-csv "./data/interim/twl_premean_slope_pow18.csv" \ + --output-file "./data/interim/impacts_forecasted_premean_slope_pow18.csv" + +./data/interim/impacts_forecasted_postmean_slope_sto06.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_postmean_slope_sto06.csv + $(PYTHON_CLI) create-forecasted-impacts \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --forecasted-twl-csv "./data/interim/twl_postmean_slope_sto06.csv" \ + --output-file "./data/interim/impacts_forecasted_postmean_slope_sto06.csv" + +./data/interim/impacts_forecasted_postmean_slope_hol86.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_postmean_slope_hol86.csv + $(PYTHON_CLI) create-forecasted-impacts \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --forecasted-twl-csv "./data/interim/twl_postmean_slope_hol86.csv" \ + --output-file "./data/interim/impacts_forecasted_postmean_slope_hol86.csv" + +./data/interim/impacts_forecasted_postmean_slope_nie91.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_postmean_slope_nie91.csv + $(PYTHON_CLI) create-forecasted-impacts \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --forecasted-twl-csv "./data/interim/twl_postmean_slope_nie91.csv" \ + --output-file "./data/interim/impacts_forecasted_postmean_slope_nie91.csv" + +./data/interim/impacts_forecasted_postmean_slope_pow18.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_postmean_slope_pow18.csv $(PYTHON_CLI) create-forecasted-impacts \ --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ - --forecasted-twl-csv "./data/interim/twl_mean_slope_hol86.csv" \ - --output-file "./data/interim/impacts_forecasted_mean_slope_hol86.csv" + --forecasted-twl-csv "./data/interim/twl_postmean_slope_pow18.csv" \ + --output-file "./data/interim/impacts_forecasted_postmean_slope_pow18.csv" + +./data/interim/impacts_forecasted_preintertidal_slope_sto06.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_preintertidal_slope_sto06.csv + $(PYTHON_CLI) create-forecasted-impacts \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --forecasted-twl-csv "./data/interim/twl_preintertidal_slope_sto06.csv" \ + --output-file "./data/interim/impacts_forecasted_preintertidal_slope_sto06.csv" + +./data/interim/impacts_forecasted_preintertidal_slope_hol86.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_preintertidal_slope_hol86.csv + $(PYTHON_CLI) create-forecasted-impacts \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --forecasted-twl-csv "./data/interim/twl_preintertidal_slope_hol86.csv" \ + --output-file "./data/interim/impacts_forecasted_preintertidal_slope_hol86.csv" + +./data/interim/impacts_forecasted_preintertidal_slope_nie91.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_preintertidal_slope_nie91.csv + $(PYTHON_CLI) create-forecasted-impacts \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --forecasted-twl-csv "./data/interim/twl_preintertidal_slope_nie91.csv" \ + --output-file "./data/interim/impacts_forecasted_preintertidal_slope_nie91.csv" + +./data/interim/impacts_forecasted_preintertidal_slope_pow18.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_preintertidal_slope_pow18.csv + $(PYTHON_CLI) create-forecasted-impacts \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --forecasted-twl-csv "./data/interim/twl_preintertidal_slope_pow18.csv" \ + --output-file "./data/interim/impacts_forecasted_preintertidal_slope_pow18.csv" + +./data/interim/impacts_forecasted_postintertidal_slope_sto06.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_postintertidal_slope_sto06.csv + $(PYTHON_CLI) create-forecasted-impacts \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --forecasted-twl-csv "./data/interim/twl_postintertidal_slope_sto06.csv" \ + --output-file "./data/interim/impacts_forecasted_postintertidal_slope_sto06.csv" + +./data/interim/impacts_forecasted_postintertidal_slope_hol86.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_postintertidal_slope_hol86.csv + $(PYTHON_CLI) create-forecasted-impacts \ + --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ + --forecasted-twl-csv "./data/interim/twl_postintertidal_slope_hol86.csv" \ + --output-file "./data/interim/impacts_forecasted_postintertidal_slope_hol86.csv" -./data/interim/impacts_forecasted_mean_slope_nie91.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_mean_slope_nie91.csv +./data/interim/impacts_forecasted_postintertidal_slope_nie91.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_postintertidal_slope_nie91.csv $(PYTHON_CLI) create-forecasted-impacts \ --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ - --forecasted-twl-csv "./data/interim/twl_mean_slope_nie91.csv" \ - --output-file "./data/interim/impacts_forecasted_mean_slope_nie91.csv" + --forecasted-twl-csv "./data/interim/twl_postintertidal_slope_nie91.csv" \ + --output-file "./data/interim/impacts_forecasted_postintertidal_slope_nie91.csv" -./data/interim/impacts_forecasted_mean_slope_pow18.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_mean_slope_pow18.csv +./data/interim/impacts_forecasted_postintertidal_slope_pow18.csv: ./data/interim/profile_features_crest_toes.csv ./data/interim/twl_postintertidal_slope_pow18.csv $(PYTHON_CLI) create-forecasted-impacts \ --profile-features-csv "./data/interim/profile_features_crest_toes.csv" \ - --forecasted-twl-csv "./data/interim/twl_mean_slope_pow18.csv" \ - --output-file "./data/interim/impacts_forecasted_mean_slope_pow18.csv" + --forecasted-twl-csv "./data/interim/twl_postintertidal_slope_pow18.csv" \ + --output-file "./data/interim/impacts_forecasted_postintertidal_slope_pow18.csv" ### GEOJSONs -geojsons: ./data/interim/impacts_forecasted_mean_slope_nie91.geojson ./data/interim/impacts_forecasted_mean_slope_nie91_R_high.geojson ./data/interim/impacts_forecasted_mean_slope_hol86.geojson ./data/interim/impacts_forecasted_mean_slope_hol86_R_high.geojson ./data/interim/impacts_forecasted_mean_slope_sto06.geojson ./data/interim/impacts_forecasted_mean_slope_sto06_R_high.geojson ./data/interim/profile_features_crest_toes.geojson ./data/interim/sites.geojson +geojsons: ./data/interim/impacts_forecasted_premean_slope_pow18.geojson ./data/interim/impacts_forecasted_premean_slope_pow18_R_high.geojson +geojsons: ./data/interim/impacts_forecasted_premean_slope_nie91.geojson ./data/interim/impacts_forecasted_premean_slope_nie91_R_high.geojson +geojsons: ./data/interim/impacts_forecasted_premean_slope_hol86.geojson ./data/interim/impacts_forecasted_premean_slope_hol86_R_high.geojson +geojsons: ./data/interim/impacts_forecasted_premean_slope_sto06.geojson ./data/interim/impacts_forecasted_premean_slope_sto06_R_high.geojson +geojsons: ./data/interim/impacts_forecasted_postmean_slope_pow18.geojson ./data/interim/impacts_forecasted_postmean_slope_pow18_R_high.geojson +geojsons: ./data/interim/impacts_forecasted_postmean_slope_nie91.geojson ./data/interim/impacts_forecasted_postmean_slope_nie91_R_high.geojson +geojsons: ./data/interim/impacts_forecasted_postmean_slope_hol86.geojson ./data/interim/impacts_forecasted_postmean_slope_hol86_R_high.geojson +geojsons: ./data/interim/impacts_forecasted_postmean_slope_sto06.geojson ./data/interim/impacts_forecasted_postmean_slope_sto06_R_high.geojson +geojsons: ./data/interim/impacts_forecasted_preintertidal_slope_pow18.geojson ./data/interim/impacts_forecasted_preintertidal_slope_pow18_R_high.geojson +geojsons: ./data/interim/impacts_forecasted_preintertidal_slope_nie91.geojson ./data/interim/impacts_forecasted_preintertidal_slope_nie91_R_high.geojson +geojsons: ./data/interim/impacts_forecasted_preintertidal_slope_hol86.geojson ./data/interim/impacts_forecasted_preintertidal_slope_hol86_R_high.geojson +geojsons: ./data/interim/impacts_forecasted_preintertidal_slope_sto06.geojson ./data/interim/impacts_forecasted_preintertidal_slope_sto06_R_high.geojson +geojsons: ./data/interim/impacts_forecasted_postintertidal_slope_pow18.geojson ./data/interim/impacts_forecasted_postintertidal_slope_pow18_R_high.geojson +geojsons: ./data/interim/impacts_forecasted_postintertidal_slope_nie91.geojson ./data/interim/impacts_forecasted_postintertidal_slope_nie91_R_high.geojson +geojsons: ./data/interim/impacts_forecasted_postintertidal_slope_hol86.geojson ./data/interim/impacts_forecasted_postintertidal_slope_hol86_R_high.geojson +geojsons: ./data/interim/impacts_forecasted_postintertidal_slope_sto06.geojson ./data/interim/impacts_forecasted_postintertidal_slope_sto06_R_high.geojson +geojsons: ./data/interim/profile_features_crest_toes.geojson ./data/interim/sites.geojson + +./data/interim/impacts_forecasted_premean_slope_sto06.geojson: ./data/interim/impacts_forecasted_premean_slope_sto06.csv ./data/interim/impacts_observed.csv + $(PYTHON_CLI) impacts-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --observed-impacts-csv "./data/interim/impacts_observed.csv" \ + --forecast-impacts-csv "./data/interim/impacts_forecasted_premean_slope_sto06.csv" \ + --output-geojson "./data/interim/impacts_forecasted_premean_slope_sto06.geojson" + +./data/interim/impacts_forecasted_premean_slope_sto06_R_high.geojson: ./data/interim/impacts_forecasted_premean_slope_sto06.csv + $(PYTHON_CLI) r-high-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --crest-toes-csv "./data/interim/profile_features_crest_toes.csv" \ + --impacts-csv "./data/interim/impacts_forecasted_premean_slope_sto06.csv" \ + --output-geojson "./data/interim/impacts_forecasted_premean_slope_sto06_R_high.geojson" + +./data/interim/impacts_forecasted_premean_slope_hol86.geojson: ./data/interim/impacts_forecasted_premean_slope_hol86.csv ./data/interim/impacts_observed.csv + $(PYTHON_CLI) impacts-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --observed-impacts-csv "./data/interim/impacts_observed.csv" \ + --forecast-impacts-csv "./data/interim/impacts_forecasted_premean_slope_hol86.csv" \ + --output-geojson "./data/interim/impacts_forecasted_premean_slope_hol86.geojson" + +./data/interim/impacts_forecasted_premean_slope_hol86_R_high.geojson: ./data/interim/impacts_forecasted_premean_slope_hol86.csv + $(PYTHON_CLI) r-high-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --crest-toes-csv "./data/interim/profile_features_crest_toes.csv" \ + --impacts-csv "./data/interim/impacts_forecasted_premean_slope_hol86.csv" \ + --output-geojson "./data/interim/impacts_forecasted_premean_slope_hol86_R_high.geojson" + +./data/interim/impacts_forecasted_premean_slope_nie91.geojson: ./data/interim/impacts_forecasted_premean_slope_nie91.csv ./data/interim/impacts_observed.csv + $(PYTHON_CLI) impacts-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --observed-impacts-csv "./data/interim/impacts_observed.csv" \ + --forecast-impacts-csv "./data/interim/impacts_forecasted_premean_slope_nie91.csv" \ + --output-geojson "./data/interim/impacts_forecasted_premean_slope_nie91.geojson" + +./data/interim/impacts_forecasted_premean_slope_nie91_R_high.geojson: ./data/interim/impacts_forecasted_premean_slope_nie91.csv + $(PYTHON_CLI) r-high-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --crest-toes-csv "./data/interim/profile_features_crest_toes.csv" \ + --impacts-csv "./data/interim/impacts_forecasted_premean_slope_nie91.csv" \ + --output-geojson "./data/interim/impacts_forecasted_premean_slope_nie91_R_high.geojson" + +./data/interim/impacts_forecasted_premean_slope_pow18.geojson: ./data/interim/impacts_forecasted_premean_slope_pow18.csv ./data/interim/impacts_observed.csv + $(PYTHON_CLI) impacts-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --observed-impacts-csv "./data/interim/impacts_observed.csv" \ + --forecast-impacts-csv "./data/interim/impacts_forecasted_premean_slope_pow18.csv" \ + --output-geojson "./data/interim/impacts_forecasted_premean_slope_pow18.geojson" + +./data/interim/impacts_forecasted_premean_slope_pow18_R_high.geojson: ./data/interim/impacts_forecasted_premean_slope_pow18.csv + $(PYTHON_CLI) r-high-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --crest-toes-csv "./data/interim/profile_features_crest_toes.csv" \ + --impacts-csv "./data/interim/impacts_forecasted_premean_slope_pow18.csv" \ + --output-geojson "./data/interim/impacts_forecasted_premean_slope_pow18_R_high.geojson" + +./data/interim/impacts_forecasted_postmean_slope_sto06.geojson: ./data/interim/impacts_forecasted_postmean_slope_sto06.csv ./data/interim/impacts_observed.csv + $(PYTHON_CLI) impacts-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --observed-impacts-csv "./data/interim/impacts_observed.csv" \ + --forecast-impacts-csv "./data/interim/impacts_forecasted_postmean_slope_sto06.csv" \ + --output-geojson "./data/interim/impacts_forecasted_postmean_slope_sto06.geojson" + +./data/interim/impacts_forecasted_postmean_slope_sto06_R_high.geojson: ./data/interim/impacts_forecasted_postmean_slope_sto06.csv + $(PYTHON_CLI) r-high-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --crest-toes-csv "./data/interim/profile_features_crest_toes.csv" \ + --impacts-csv "./data/interim/impacts_forecasted_postmean_slope_sto06.csv" \ + --output-geojson "./data/interim/impacts_forecasted_postmean_slope_sto06_R_high.geojson" + +./data/interim/impacts_forecasted_postmean_slope_hol86.geojson: ./data/interim/impacts_forecasted_postmean_slope_hol86.csv ./data/interim/impacts_observed.csv + $(PYTHON_CLI) impacts-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --observed-impacts-csv "./data/interim/impacts_observed.csv" \ + --forecast-impacts-csv "./data/interim/impacts_forecasted_postmean_slope_hol86.csv" \ + --output-geojson "./data/interim/impacts_forecasted_postmean_slope_hol86.geojson" + +./data/interim/impacts_forecasted_postmean_slope_hol86_R_high.geojson: ./data/interim/impacts_forecasted_postmean_slope_hol86.csv + $(PYTHON_CLI) r-high-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --crest-toes-csv "./data/interim/profile_features_crest_toes.csv" \ + --impacts-csv "./data/interim/impacts_forecasted_postmean_slope_hol86.csv" \ + --output-geojson "./data/interim/impacts_forecasted_postmean_slope_hol86_R_high.geojson" + +./data/interim/impacts_forecasted_postmean_slope_nie91.geojson: ./data/interim/impacts_forecasted_postmean_slope_nie91.csv ./data/interim/impacts_observed.csv + $(PYTHON_CLI) impacts-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --observed-impacts-csv "./data/interim/impacts_observed.csv" \ + --forecast-impacts-csv "./data/interim/impacts_forecasted_postmean_slope_nie91.csv" \ + --output-geojson "./data/interim/impacts_forecasted_postmean_slope_nie91.geojson" + +./data/interim/impacts_forecasted_postmean_slope_nie91_R_high.geojson: ./data/interim/impacts_forecasted_postmean_slope_nie91.csv + $(PYTHON_CLI) r-high-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --crest-toes-csv "./data/interim/profile_features_crest_toes.csv" \ + --impacts-csv "./data/interim/impacts_forecasted_postmean_slope_nie91.csv" \ + --output-geojson "./data/interim/impacts_forecasted_postmean_slope_nie91_R_high.geojson" + +./data/interim/impacts_forecasted_postmean_slope_pow18.geojson: ./data/interim/impacts_forecasted_postmean_slope_pow18.csv ./data/interim/impacts_observed.csv + $(PYTHON_CLI) impacts-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --observed-impacts-csv "./data/interim/impacts_observed.csv" \ + --forecast-impacts-csv "./data/interim/impacts_forecasted_postmean_slope_pow18.csv" \ + --output-geojson "./data/interim/impacts_forecasted_postmean_slope_pow18.geojson" + +./data/interim/impacts_forecasted_postmean_slope_pow18_R_high.geojson: ./data/interim/impacts_forecasted_postmean_slope_pow18.csv + $(PYTHON_CLI) r-high-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --crest-toes-csv "./data/interim/profile_features_crest_toes.csv" \ + --impacts-csv "./data/interim/impacts_forecasted_postmean_slope_pow18.csv" \ + --output-geojson "./data/interim/impacts_forecasted_postmean_slope_pow18_R_high.geojson" + +./data/interim/impacts_forecasted_preintertidal_slope_sto06.geojson: ./data/interim/impacts_forecasted_preintertidal_slope_sto06.csv ./data/interim/impacts_observed.csv + $(PYTHON_CLI) impacts-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --observed-impacts-csv "./data/interim/impacts_observed.csv" \ + --forecast-impacts-csv "./data/interim/impacts_forecasted_preintertidal_slope_sto06.csv" \ + --output-geojson "./data/interim/impacts_forecasted_preintertidal_slope_sto06.geojson" + +./data/interim/impacts_forecasted_preintertidal_slope_sto06_R_high.geojson: ./data/interim/impacts_forecasted_preintertidal_slope_sto06.csv + $(PYTHON_CLI) r-high-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --crest-toes-csv "./data/interim/profile_features_crest_toes.csv" \ + --impacts-csv "./data/interim/impacts_forecasted_preintertidal_slope_sto06.csv" \ + --output-geojson "./data/interim/impacts_forecasted_preintertidal_slope_sto06_R_high.geojson" + +./data/interim/impacts_forecasted_preintertidal_slope_hol86.geojson: ./data/interim/impacts_forecasted_preintertidal_slope_hol86.csv ./data/interim/impacts_observed.csv + $(PYTHON_CLI) impacts-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --observed-impacts-csv "./data/interim/impacts_observed.csv" \ + --forecast-impacts-csv "./data/interim/impacts_forecasted_preintertidal_slope_hol86.csv" \ + --output-geojson "./data/interim/impacts_forecasted_preintertidal_slope_hol86.geojson" -./data/interim/impacts_forecasted_mean_slope_sto06.geojson: ./data/interim/impacts_forecasted_mean_slope_sto06.csv ./data/interim/impacts_observed.csv +./data/interim/impacts_forecasted_preintertidal_slope_hol86_R_high.geojson: ./data/interim/impacts_forecasted_preintertidal_slope_hol86.csv + $(PYTHON_CLI) r-high-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --crest-toes-csv "./data/interim/profile_features_crest_toes.csv" \ + --impacts-csv "./data/interim/impacts_forecasted_preintertidal_slope_hol86.csv" \ + --output-geojson "./data/interim/impacts_forecasted_preintertidal_slope_hol86_R_high.geojson" + +./data/interim/impacts_forecasted_preintertidal_slope_nie91.geojson: ./data/interim/impacts_forecasted_preintertidal_slope_nie91.csv ./data/interim/impacts_observed.csv $(PYTHON_CLI) 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" + --forecast-impacts-csv "./data/interim/impacts_forecasted_preintertidal_slope_nie91.csv" \ + --output-geojson "./data/interim/impacts_forecasted_preintertidal_slope_nie91.geojson" -./data/interim/impacts_forecasted_mean_slope_sto06_R_high.geojson: ./data/interim/impacts_forecasted_mean_slope_sto06.csv +./data/interim/impacts_forecasted_preintertidal_slope_nie91_R_high.geojson: ./data/interim/impacts_forecasted_preintertidal_slope_nie91.csv $(PYTHON_CLI) r-high-to-geojson \ --sites-csv "./data/interim/sites.csv" \ --profiles-csv "./data/interim/profiles.csv" \ --crest-toes-csv "./data/interim/profile_features_crest_toes.csv" \ - --impacts-csv "./data/interim/impacts_forecasted_mean_slope_sto06.csv" \ - --output-geojson "./data/interim/impacts_forecasted_mean_slope_sto06_R_high.geojson" + --impacts-csv "./data/interim/impacts_forecasted_preintertidal_slope_nie91.csv" \ + --output-geojson "./data/interim/impacts_forecasted_preintertidal_slope_nie91_R_high.geojson" -./data/interim/impacts_forecasted_mean_slope_hol86.geojson: ./data/interim/impacts_forecasted_mean_slope_hol86.csv ./data/interim/impacts_observed.csv +./data/interim/impacts_forecasted_preintertidal_slope_pow18.geojson: ./data/interim/impacts_forecasted_preintertidal_slope_pow18.csv ./data/interim/impacts_observed.csv $(PYTHON_CLI) 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_hol86.csv" \ - --output-geojson "./data/interim/impacts_forecasted_mean_slope_hol86.geojson" + --forecast-impacts-csv "./data/interim/impacts_forecasted_preintertidal_slope_pow18.csv" \ + --output-geojson "./data/interim/impacts_forecasted_preintertidal_slope_pow18.geojson" -./data/interim/impacts_forecasted_mean_slope_hol86_R_high.geojson: ./data/interim/impacts_forecasted_mean_slope_hol86.csv +./data/interim/impacts_forecasted_preintertidal_slope_pow18_R_high.geojson: ./data/interim/impacts_forecasted_preintertidal_slope_pow18.csv $(PYTHON_CLI) r-high-to-geojson \ --sites-csv "./data/interim/sites.csv" \ --profiles-csv "./data/interim/profiles.csv" \ --crest-toes-csv "./data/interim/profile_features_crest_toes.csv" \ - --impacts-csv "./data/interim/impacts_forecasted_mean_slope_hol86.csv" \ - --output-geojson "./data/interim/impacts_forecasted_mean_slope_hol86_R_high.geojson" + --impacts-csv "./data/interim/impacts_forecasted_preintertidal_slope_pow18.csv" \ + --output-geojson "./data/interim/impacts_forecasted_preintertidal_slope_pow18_R_high.geojson" -./data/interim/impacts_forecasted_mean_slope_nie91.geojson: ./data/interim/impacts_forecasted_mean_slope_nie91.csv ./data/interim/impacts_observed.csv +./data/interim/impacts_forecasted_postintertidal_slope_sto06.geojson: ./data/interim/impacts_forecasted_postintertidal_slope_sto06.csv ./data/interim/impacts_observed.csv $(PYTHON_CLI) 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_nie91.csv" \ - --output-geojson "./data/interim/impacts_forecasted_mean_slope_nie91.geojson" + --forecast-impacts-csv "./data/interim/impacts_forecasted_postintertidal_slope_sto06.csv" \ + --output-geojson "./data/interim/impacts_forecasted_postintertidal_slope_sto06.geojson" -./data/interim/impacts_forecasted_mean_slope_nie91_R_high.geojson: ./data/interim/impacts_forecasted_mean_slope_nie91.csv +./data/interim/impacts_forecasted_postintertidal_slope_sto06_R_high.geojson: ./data/interim/impacts_forecasted_postintertidal_slope_sto06.csv $(PYTHON_CLI) r-high-to-geojson \ --sites-csv "./data/interim/sites.csv" \ --profiles-csv "./data/interim/profiles.csv" \ --crest-toes-csv "./data/interim/profile_features_crest_toes.csv" \ - --impacts-csv "./data/interim/impacts_forecasted_mean_slope_nie91.csv" \ - --output-geojson "./data/interim/impacts_forecasted_mean_slope_nie91_R_high.geojson" + --impacts-csv "./data/interim/impacts_forecasted_postintertidal_slope_sto06.csv" \ + --output-geojson "./data/interim/impacts_forecasted_postintertidal_slope_sto06_R_high.geojson" +./data/interim/impacts_forecasted_postintertidal_slope_hol86.geojson: ./data/interim/impacts_forecasted_postintertidal_slope_hol86.csv ./data/interim/impacts_observed.csv + $(PYTHON_CLI) impacts-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --observed-impacts-csv "./data/interim/impacts_observed.csv" \ + --forecast-impacts-csv "./data/interim/impacts_forecasted_postintertidal_slope_hol86.csv" \ + --output-geojson "./data/interim/impacts_forecasted_postintertidal_slope_hol86.geojson" + +./data/interim/impacts_forecasted_postintertidal_slope_hol86_R_high.geojson: ./data/interim/impacts_forecasted_postintertidal_slope_hol86.csv + $(PYTHON_CLI) r-high-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --crest-toes-csv "./data/interim/profile_features_crest_toes.csv" \ + --impacts-csv "./data/interim/impacts_forecasted_postintertidal_slope_hol86.csv" \ + --output-geojson "./data/interim/impacts_forecasted_postintertidal_slope_hol86_R_high.geojson" + +./data/interim/impacts_forecasted_postintertidal_slope_nie91.geojson: ./data/interim/impacts_forecasted_postintertidal_slope_nie91.csv ./data/interim/impacts_observed.csv + $(PYTHON_CLI) impacts-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --observed-impacts-csv "./data/interim/impacts_observed.csv" \ + --forecast-impacts-csv "./data/interim/impacts_forecasted_postintertidal_slope_nie91.csv" \ + --output-geojson "./data/interim/impacts_forecasted_postintertidal_slope_nie91.geojson" + +./data/interim/impacts_forecasted_postintertidal_slope_nie91_R_high.geojson: ./data/interim/impacts_forecasted_postintertidal_slope_nie91.csv + $(PYTHON_CLI) r-high-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --crest-toes-csv "./data/interim/profile_features_crest_toes.csv" \ + --impacts-csv "./data/interim/impacts_forecasted_postintertidal_slope_nie91.csv" \ + --output-geojson "./data/interim/impacts_forecasted_postintertidal_slope_nie91_R_high.geojson" + +./data/interim/impacts_forecasted_postintertidal_slope_pow18.geojson: ./data/interim/impacts_forecasted_postintertidal_slope_pow18.csv ./data/interim/impacts_observed.csv + $(PYTHON_CLI) impacts-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --observed-impacts-csv "./data/interim/impacts_observed.csv" \ + --forecast-impacts-csv "./data/interim/impacts_forecasted_postintertidal_slope_pow18.csv" \ + --output-geojson "./data/interim/impacts_forecasted_postintertidal_slope_pow18.geojson" + +./data/interim/impacts_forecasted_postintertidal_slope_pow18_R_high.geojson: ./data/interim/impacts_forecasted_postintertidal_slope_pow18.csv + $(PYTHON_CLI) r-high-to-geojson \ + --sites-csv "./data/interim/sites.csv" \ + --profiles-csv "./data/interim/profiles.csv" \ + --crest-toes-csv "./data/interim/profile_features_crest_toes.csv" \ + --impacts-csv "./data/interim/impacts_forecasted_postintertidal_slope_pow18.csv" \ + --output-geojson "./data/interim/impacts_forecasted_postintertidal_slope_pow18_R_high.geojson" +# Site specific properties ./data/interim/profile_features_crest_toes.geojson: ./data/interim/profile_features_crest_toes.csv $(PYTHON_CLI) profile-features-crest-toes-to-geojson \ --sites-csv "./data/interim/sites.csv" \ diff --git a/src/analysis/forecast_twl.py b/src/analysis/forecast_twl.py index 42957be..5db6888 100644 --- a/src/analysis/forecast_twl.py +++ b/src/analysis/forecast_twl.py @@ -77,6 +77,32 @@ def forecast_twl( ) df_twl["beta"] = pd.concat(results) + elif slope == "intertidal": + + logger.info("Calculating intertidal slopes") + top_z = 1.15 # m AHD = HAT from MHL annual ocean tides summary report + btm_z = -0.9 # m AHD = HAT from MHL annual ocean tides summary report + + # Calculate slopes for each profile + df_slopes = ( + df_profiles.xs(profile_type, level="profile_type") + .dropna(subset=["z"]) + .groupby("site_id") + .apply( + lambda x: slope_from_profile( + profile_x=x.index.get_level_values("x").tolist(), + profile_z=x.z.tolist(), + top_elevation=top_z, + btm_elevation=max(min(x.z), btm_z), + method="least_squares", + ) + ) + .rename("beta") + .to_frame() + ) + + # Merge calculated slopes onto each twl timestep + df_twl = df_twl.merge(df_slopes, left_index=True, right_index=True) # Estimate runup R2, setup, S_total, S_inc, S_ig = runup_function( @@ -311,6 +337,7 @@ def slope_from_profile( return -(z_top - z_btm) / (x_top - x_btm) elif method == "least_squares": + profile_mask = [ True if end_points["top"]["x"] < pts < end_points["btm"]["x"] else False for pts in profile_x @@ -333,7 +360,10 @@ def slope_from_profile( type=click.Choice(["sto06", "hol86", "nie91", "pow18"]), ) @click.option( - "--slope", required=True, help="", type=click.Choice(["foreshore", "mean"]) + "--slope", + required=True, + help="", + type=click.Choice(["foreshore", "mean", "intertidal"]), ) @click.option( "--profile-type",