@ -48,36 +48,43 @@ impacts: ./data/interim/impacts_forecasted_foreshore_slope_sto06.csv ./data/inte
./data/raw/processed_shorelines/orientations.mat : ./data /raw /processed_shorelines /profiles .mat
./data/raw/processed_shorelines/orientations.mat : ./data /raw /processed_shorelines /profiles .mat
$( MATLAB_PATH) -nosplash -r " cd $( CURRENT_DIR) ; run('./src/data/beach_orientations.m'); quit "
$( MATLAB_PATH) -nosplash -r " cd $( CURRENT_DIR) ; run('./src/data/beach_orientations.m'); quit "
# # Produces a .csv of sites where our beach cross-sections are located
# ./data/interim/sites.csv ./data/interim/profiles.csv: ./data/raw/processed_shorelines/profiles.mat
# activate ./.venv && python ./src/data/parse_mat.py create-sites-and-profiles-csv \
# --profiles-mat "./data/raw/processed_shorelines/profiles.mat" \
# --profiles-output-file "./data/interim/profiles.csv" \
# --sites-output-file "./data/interim/sites.csv"
# Produces a .csv of sites where our beach cross-sections are located
# Produces a .csv of sites where our beach cross-sections are located
./data/interim/sites.csv ./data/interim/profiles.csv : ./data /raw /processed_shorelines /profiles .mat
./data/interim/sites.csv ./data/interim/profiles.csv : ./data /raw /processed_shorelines /profiles .mat
activate ./.venv && python ./src/data/parse_mat.py create-sites-and-profiles-csv \
activate ./.venv && python ./src/cli .py create-sites-and-profiles-csv \
--profiles-mat "./data/raw/processed_shorelines/profiles.mat" \
--profiles-mat "./data/raw/processed_shorelines/profiles.mat" \
--profiles-output-file "./data/interim/profiles.csv" \
--profiles-output-file "./data/interim/profiles.csv" \
--sites-output-file "./data/interim/sites.csv"
--sites-output-file "./data/interim/sites.csv"
# Produces a .csv of waves for each site
# Produces a .csv of waves for each site
./data/interim/waves.csv : ./data /interim /sites .csv ./data /raw /processed_shorelines /waves .mat
./data/interim/waves.csv : ./data /interim /sites .csv ./data /raw /processed_shorelines /waves .mat
activate ./.venv && python ./src/data/parse_mat .py create-waves-csv \
activate ./.venv && python ./src/cli .py create-waves-csv \
--waves-mat "./data/raw/processed_shorelines/waves.mat" \
--waves-mat "./data/raw/processed_shorelines/waves.mat" \
--sites-csv "./data/interim/sites.csv" \
--sites-csv "./data/interim/sites.csv" \
--output-file "./data/interim/waves.csv"
--output-file "./data/interim/waves.csv"
# Produces a .csv of tides for each site
# Produces a .csv of tides for each site
./data/interim/tides.csv : ./data /interim /sites .csv ./data /raw /processed_shorelines /tides .mat
./data/interim/tides.csv : ./data /interim /sites .csv ./data /raw /processed_shorelines /tides .mat
activate ./.venv && python ./src/data/parse_mat .py create-tides-csv \
activate ./.venv && python ./src/cli .py create-tides-csv \
--tides-mat "./data/raw/processed_shorelines/tides.mat" \
--tides-mat "./data/raw/processed_shorelines/tides.mat" \
--sites-csv "./data/interim/sites.csv" \
--sites-csv "./data/interim/sites.csv" \
--output-file "./data/interim/tides.csv"
--output-file "./data/interim/tides.csv"
# Creates a .shp of our sites to load into QGis
# Creates a .shp of our sites to load into QGis
./data/interim/sites.shp : ./data /interim /sites .csv
./data/interim/sites.shp : ./data /interim /sites .csv
activate ./.venv && python ./src/data/csv_to_shp .py sites-csv-to-shp \
activate ./.venv && python ./src/cli .py sites-csv-to-shp \
--input-csv "./data/interim/sites.csv" \
--input-csv "./data/interim/sites.csv" \
--output-shp "./data/interim/sites.shp"
--output-shp "./data/interim/sites.shp"
# Creates a .csv of our dune toe and crest profile features
# Creates a .csv of our dune toe and crest profile features
./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
./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
activate ./.venv && python ./src/data/profile_features .py create-profile-features \
activate ./.venv && python ./src/cli .py create-profile-features \
--dune-crest-shp "./data/raw/profile_features/dune_crests.shp" \
--dune-crest-shp "./data/raw/profile_features/dune_crests.shp" \
--dune-toe-shp "./data/raw/profile_features/dune_toes.shp" \
--dune-toe-shp "./data/raw/profile_features/dune_toes.shp" \
--sites-csv "./data/interim/sites.csv" \
--sites-csv "./data/interim/sites.csv" \
@ -86,7 +93,7 @@ impacts: ./data/interim/impacts_forecasted_foreshore_slope_sto06.csv ./data/inte
# Creates a forecast of twl using sto06 and prestorm time varying prestorm foreshore slope
# Creates a forecast of twl using sto06 and prestorm time varying prestorm foreshore slope
./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 .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 .csv
activate ./.venv && python ./src/analysis/fore cast_tw l.py create-twl-forecast \
activate ./.venv && python ./src/cli .py create-twl-forecast \
--waves-csv "./data/interim/waves.csv" \
--waves-csv "./data/interim/waves.csv" \
--tides-csv "./data/interim/tides.csv" \
--tides-csv "./data/interim/tides.csv" \
--profiles-csv "./data/interim/profiles.csv" \
--profiles-csv "./data/interim/profiles.csv" \
@ -96,7 +103,7 @@ impacts: ./data/interim/impacts_forecasted_foreshore_slope_sto06.csv ./data/inte
--output-file "./data/interim/twl_foreshore_slope_sto06.csv"
--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 .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 .csv
activate ./.venv && python ./src/analysis/fore cast_tw l.py create-twl-forecast \
activate ./.venv && python ./src/cli .py create-twl-forecast \
--waves-csv "./data/interim/waves.csv" \
--waves-csv "./data/interim/waves.csv" \
--tides-csv "./data/interim/tides.csv" \
--tides-csv "./data/interim/tides.csv" \
--profiles-csv "./data/interim/profiles.csv" \
--profiles-csv "./data/interim/profiles.csv" \
@ -106,19 +113,19 @@ impacts: ./data/interim/impacts_forecasted_foreshore_slope_sto06.csv ./data/inte
--output-file "./data/interim/twl_mean_slope_sto06.csv"
--output-file "./data/interim/twl_mean_slope_sto06.csv"
./data/interim/impacts_observed.csv : ./data /interim /profiles .csv ./data /interim /profile_features .csv
./data/interim/impacts_observed.csv : ./data /interim /profiles .csv ./data /interim /profile_features .csv
activate ./.venv && python ./src/analysis/observed_storm_impacts .py create-observed-impacts \
activate ./.venv && python ./src/cli .py create-observed-impacts \
--profiles-csv "./data/interim/profiles.csv" \
--profiles-csv "./data/interim/profiles.csv" \
--profile-features-csv "./data/interim/profile_features.csv" \
--profile-features-csv "./data/interim/profile_features.csv" \
--output-file "./data/interim/impacts_observed.csv"
--output-file "./data/interim/impacts_observed.csv"
./data/interim/impacts_forecasted_mean_slope_sto06.csv : ./data /interim /profile_features .csv ./data /interim /twl_mean_slope_sto 06.csv
./data/interim/impacts_forecasted_mean_slope_sto06.csv : ./data /interim /profile_features .csv ./data /interim /twl_mean_slope_sto 06.csv
activate ./.venv && python ./src/analysis/forecasted_storm_impacts .py create-forecasted-impacts \
activate ./.venv && python ./src/cli .py create-forecasted-impacts \
--profile-features-csv "./data/interim/profile_features.csv" \
--profile-features-csv "./data/interim/profile_features.csv" \
--forecasted-twl-csv "./data/interim/twl_mean_slope_sto06.csv" \
--forecasted-twl-csv "./data/interim/twl_mean_slope_sto06.csv" \
--output-file "./data/interim/impacts_forecasted_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 .csv ./data /interim /twl_foreshore_slope_sto 06.csv
./data/interim/impacts_forecasted_foreshore_slope_sto06.csv : ./data /interim /profile_features .csv ./data /interim /twl_foreshore_slope_sto 06.csv
activate ./.venv && python ./src/analysis/forecasted_storm_impacts .py create-forecasted-impacts \
activate ./.venv && python ./src/cli .py create-forecasted-impacts \
--profile-features-csv "./data/interim/profile_features.csv" \
--profile-features-csv "./data/interim/profile_features.csv" \
--forecasted-twl-csv "./data/interim/twl_foreshore_slope_sto06.csv" \
--forecasted-twl-csv "./data/interim/twl_foreshore_slope_sto06.csv" \
--output-file "./data/interim/impacts_forecasted_foreshore_slope_sto06.csv"
--output-file "./data/interim/impacts_forecasted_foreshore_slope_sto06.csv"