Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepare release v059 #57

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Change Log
in development
**************

0.6.0 (19-12-2024)
0.5.9 (19-12-2024)
********************
* Fixed numpy 2.0 compatibility issues
* Fixed bug in strahler stream order method when more than two streams meet.
Expand Down
25 changes: 20 additions & 5 deletions pyflwdir/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
"""Fast methods to work with hydro- and topography data in pure Python."""

# version number without 'v' at start
__version__ = "0.5.8"
__version__ = "0.5.9"

# submodules
from .flwdir import *
from .pyflwdir import *
from .dem import *
from .core_nextxy import *
from . import gis_utils, regions

# public functions
from .core_nextxy import read_nextxy
from .dem import fill_depressions, slope
from .flwdir import Flwdir, from_dataframe
from .pyflwdir import FlwdirRaster, from_array, from_dem

__all__ = [
"Flwdir",
"FlwdirRaster",
"from_array",
"from_dataframe",
"from_dem",
"read_nextxy",
"gis_utils",
"regions",
"slope",
"fill_depressions",
]
4 changes: 2 additions & 2 deletions pyflwdir/dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ def slope(elevtn, nodata=-9999.0, latlon=False, transform=gis_utils.IDENTITY):
"""Returns the local gradient

The slope is calculated on the basis of the dem in a 3 x 3 cell window, using 2nd order partial derivatives.
The slope [m/m] is given as the increase in height per distance in horizontal direction.
The slope [m/m] is given as the increase in height per distance in horizontal direction.

Parameters
----------
elevnt : 1D array of float
Expand Down
Loading