forked from TopoToolbox/pytopotoolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Evansslope to GridObject (TopoToolbox#119)
This pull request adds the evansslope function to the GridObject. There are a few differences to the Matlab implementation: - removed removenans argument, since scipy.ndimage.convolve needs NaNs to be removed (so it's always replacing NaNs with nearest neighbor) - padval is renamed mode, to better reflect the underlying scipy function. - Added partial_derivitives argument to provide the option to return fx and fy like in Matlab - removed a bunch of code used for padding the DEM, since the padding is handled in the convolution function
- Loading branch information
Showing
2 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,4 +50,5 @@ disable = [ | |
"duplicate-code", | ||
"cyclic-import", | ||
"too-many-positional-arguments", | ||
"too-many-lines", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters