95 Commits (557c15df1f7a67a8e16b2ebc13e396b195a45196)

Author SHA1 Message Date
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 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 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 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 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 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 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 d8353bd635 Add Nielsen & Hanslow 1991 runup parameterization 6 years ago
Chris Leaman 4e5b0ce81c Fix formatting 6 years ago
Chris Leaman 0adbf68635 Add Holman 1986 to list of runup functions 6 years ago
Chris Leaman d00a9d8c21 Add TODOs for getting observed storm impacts 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 2d22734bfa Fix position of R_high in geojson to be closest to dune face 6 years ago
Chris Leaman 3af90601ef Refactor overwriting dune crest/toes and impacts
Uses one, central .csv file contained in ./data/raw/profile_features_chris_leaman
6 years ago
Chris Leaman e1d95a1752 Improve performance by replacing .query with .loc 6 years ago
Chris Leaman 6912c50a49 Use dune crest for mean slope calculation if no dune toe 6 years ago
Chris Leaman c7090a43b9 Change log level to info 6 years ago
Chris Leaman a6ab8b8354 Clean up cli 6 years ago
Chris Leaman 79d46c0433 Refactor crossings and lat/lon conversion functions 6 years ago
Chris Leaman 6f215da826 Refactor crossings and lat/lon conversion functions 6 years ago
Chris Leaman a94fdd2dfb Refactor logging configuration 6 years ago
Chris Leaman e50fadb35c Rename csv_to_shp to csv_to_geojson 6 years ago
Chris Leaman 3f2cfa50aa Update functions to output geojson for QGIS 6 years ago
Chris Leaman daad9c5b82 Remove other packages from logging 6 years ago
Chris Leaman 4b9e69f2f0 Add override of profile features 6 years ago
Chris Leaman 12070a1acf Plot site .shp as line instead of points 6 years ago
Chris Leaman 91a0d8327e Rename data shape function 6 years ago
Chris Leaman b7704c2d35 Fix formatting 6 years ago
Chris Leaman 947d2093bd Take post-storm profile based on isgood parameter in .mat file 6 years ago
Chris Leaman 3a1a3dddf1 Update Stockdon 2006 runup function to accept either a list or a float
This is an improvement over having two separate functions, depending on the parameter type. Other runup functions should be written in a similar style.
6 years ago
Chris Leaman 836873b3f3 Fix formatting 6 years ago
Chris Leaman 4592cb858e Remove profile_type from impacts.csv 6 years ago
Chris Leaman 9f1b801687 Add function for estimating twl exceedence time 6 years ago
Chris Leaman 5f59c8f8ee Update slope function to accept top x coordinate
Needed to ensure correctly mean slope is calculated. If only inputting dune toe z coordinates, sometimes the function can chose the wrong x coordinate if there are multiple crossings of the z coordinate.
6 years ago
Chris Leaman b8ead25cd5 Disable numpy futurewarnings when running from CLI 6 years ago