Chris Leaman
a293d5d691
Fix incorrect calculation of pre/post change point
...
If pre and post storm profiles returned to similar elevations within the sampled profile length, the change point detection would select the most seaward point and incorrectly calculate the swash zone volumes. This change looks at the slope of the difference between the two profiles and assumes that the difference between the two profiles should be increasing at the location of the change point.
6 years ago
Chris Leaman
c17051788c
Fix formatting
6 years ago
Chris Leaman
34ada7c12f
Add checking of inputs early in slope_from_profile
...
This allows us to exit early and suppresses the annoying warnings.
6 years ago
Chris Leaman
708606391f
Update QGIS and notebooks
6 years ago
Chris Leaman
ecd1d66dd2
Fix typos
6 years ago
Chris Leaman
7e09b9a084
Add new notebook for examining variables
...
Want to find relationships between explanatory variables.
6 years ago
Chris Leaman
7069c3b627
Extract slope & width change for observed impacts
6 years ago
Chris Leaman
217e633ffc
Extract function for getting slopes
...
This is so it can be called from observed_storm_impacts.py. It might be better to put these in a slope_utils.py function?
6 years ago
Chris Leaman
cb090d1a41
Use default line length for black formatter
6 years ago
Chris Leaman
557c15df1f
Enable observed impacts to be overwritten with NaN
...
This is useful where we have a structure or rock wall and want to specify that we don't know what the observed storm regime is. In this case, we'll put a 'unknown' string in the ./data/raw/profile_features observed storm impact csv field and overwrite it with a NaN in our pandas dataframe.
6 years ago
Chris Leaman
ba9b3244f3
Ignore vscode settings
6 years ago
Chris Leaman
e1dc57ead6
Fix formatting
6 years ago
Chris Leaman
1774c15e89
Fix finding z elevation of dune toe/crests
...
If the x-coordinate specified for the toe/crest does not exist for the profile type, this fixes an issue where the z-elevation of the other profile type was not being correctly calculated. Also, some commented out code is removed.
6 years ago
Chris Leaman
16ca2aa482
Fix volume difference percent when difference equal to zero
6 years ago
Chris Leaman
bc1778c473
Fix dependency in Makefile
6 years ago
Chris Leaman
cdca489e4a
Fix dune toe TWL exceedence hours
...
Dune toe TWL exceedence hours were being left as zero if the profile didn't have a dune toe (technically correct). In these cases it's more useful to calculate the exceedence hours of the dune crest level.
6 years ago
Chris Leaman
1fca122276
Ensure float precision is limited when outputting csv
...
Without this change, interim .csv files were being recorded with 9 decimal places, greatly increasing the file size. This keeps the number of decimals limited to a practical amount.
6 years ago
Chris Leaman
9e3716480a
Fix hard-coded file names in create_observed_impacts
6 years ago
Chris Leaman
bf61116efb
Remove R_low requirement when forecasting overwash
...
Some runup parameterizations only give R_high, but not R_low. In these cases, let's just classify the profile as overwash if R_high > D_high.
6 years ago
Chris Leaman
86c2e0e763
Update README.md
6 years ago
Chris Leaman
bbe86b231a
Fix swash regime not detected if there is no dune toe
6 years ago
Chris Leaman
cbfd69c852
Fix typo in comment
6 years ago
Chris Leaman
1e45675611
Optimize calculation of profile volume difference
6 years ago
Chris Leaman
95f525ef00
Add better error detection when calculating slope from profile
6 years ago
Chris Leaman
48f2142708
Change default slope calculation to least squares
...
Rather than end points
6 years ago
Chris Leaman
a9a5e02933
Improve performance of TWL forecasting function
...
Use faster pandas indexing instead of .query function
6 years ago
Chris Leaman
25a26d9e46
Add intertidal slope option to TWL forecasts
6 years ago
Chris Leaman
66c7b25cc4
Update notebooks
6 years ago
Chris Leaman
6ffdd2611d
Allow crossing to return empty list if all values are masked
6 years ago
Chris Leaman
36256514b5
Allow crossing function to detect crossings at end points
6 years ago
Chris Leaman
46589da736
Update notebooks
6 years ago
Chris Leaman
6efae1c0da
Add Power et al. (2018) runup model
6 years ago
Chris Leaman
4ea435a814
Add grain size as required runup parameter
...
Used by Power et al. (2018), but not required for other models
6 years ago
Chris Leaman
1830d06e40
Fix Makefile command for waves.csv
6 years ago
Chris Leaman
f649c3adc7
Update README.md for error when using Qt5Agg/PyCharm
6 years ago
Chris Leaman
821e5c34cf
Include grain size inputs
6 years ago
Chris Leaman
6c13fc389c
Parse cumulative wave power and energy from mat file into .csv
6 years ago
Chris Leaman
d4995266c9
Create new notebook for comparing models
6 years ago
Chris Leaman
3bfb13e9d6
Rename notebooks
6 years ago
Chris Leaman
d8353bd635
Add Nielsen & Hanslow 1991 runup parameterization
6 years ago
Chris Leaman
4e5b0ce81c
Fix formatting
6 years ago
Chris Leaman
43e85224e8
Remove pre-commit
6 years ago
Chris Leaman
0adbf68635
Add Holman 1986 to list of runup functions
6 years ago
Chris Leaman
7526ab1f3c
Add pre-commit hooks to ensure code formatting
6 years ago
Chris Leaman
0713a1302a
Update environment
6 years ago
Chris Leaman
5850871c14
Update notebooks
6 years ago
Chris Leaman
1bad6f6dd7
Update .gitignore
6 years ago
Chris Leaman
bb17d6c786
Update notebooks
6 years ago
Chris Leaman
01fe1a80c8
Add automatic nbstripout to jupyter notebooks
...
Automatically removes output from notebooks for easier version control.
6 years ago
Chris Leaman
d00a9d8c21
Add TODOs for getting observed storm impacts
6 years ago