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
Chris Leaman
976ecc8ebb
Rename notebook
6 years ago
Chris Leaman
ebd8ef3ffa
Update commands and README
6 years ago
Chris Leaman
e6bb50c00e
Fix bug when calculating R_high lat/lon geojson
6 years ago
Chris Leaman
faa843ce21
Fix formatting
6 years ago
Chris Leaman
3443062d85
Update notebook and QGIS file
6 years ago
Chris Leaman
9755810f40
Refactor PYTHON_CLI command
6 years ago
Chris Leaman
2d22734bfa
Fix position of R_high in geojson to be closest to dune face
6 years ago