Skip to content

Commit

Permalink
flow-aware hillshade modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
trchudley committed Jun 8, 2024
1 parent cba0429 commit 8794ef0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
18 changes: 9 additions & 9 deletions notebooks/flow_aware_hillshade.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/pdemtools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

from ._accessor import DemAccessor

__version__ = "0.8.0"
__version__ = "0.8.1"

__all__ = ["search", "DemAccessor"]
2 changes: 2 additions & 0 deletions src/pdemtools/_geomorphometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ def slope(p_arr, q_arr):

def aspect(p_arr, q_arr):
"""outputs in radians"""

return np.arctan2(p_arr, q_arr) + np.pi

# return np.deg2rad(
# -90 * (1 - np.sign(q_arr)) * (1 - np.abs(np.sign(p_arr)))
# + 180 * (1 + np.sign(p_arr))
Expand Down

0 comments on commit 8794ef0

Please sign in to comment.