Skip to content

Commit

Permalink
Add output min and max metadata to slope algorithm (#1089)
Browse files Browse the repository at this point in the history
* Add output min and max metadata to slope algorithm

* Update changelog
  • Loading branch information
tayden authored Jan 31, 2025
1 parent 9dff048 commit e1feb41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release Notes

## Unreleased

### titiler.core

* add `output_min` and `output_max` metadata attributes to `slope` algorithm (@tayden, https://github.com/developmentseed/titiler/pull/1089)

## 0.21.1 (2025-01-29)

### titiler.core
Expand Down
2 changes: 2 additions & 0 deletions src/titiler/core/titiler/core/algorithm/dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ class Slope(BaseAlgorithm):
input_nbands: int = 1
output_nbands: int = 1
output_dtype: str = "float32"
output_min: float = 0
output_max: float = 90

def __call__(self, img: ImageData) -> ImageData:
"""Calculate degrees slope from DEM dataset."""
Expand Down

0 comments on commit e1feb41

Please sign in to comment.