Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Julien Michel
sensorsio
Commits
22ffb5fb
Commit
22ffb5fb
authored
Dec 24, 2021
by
Jordi Inglada
Browse files
ENH: return DEM as a 3 channel numpy array
parent
78e1588d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sensorsio/srtm.py
View file @
22ffb5fb
...
...
@@ -60,7 +60,11 @@ class DEM:
elevation
:
np
.
ndarray
slope
:
np
.
ndarray
aspect
:
np
.
ndarray
transform
:
rio
.
transform
.
Affine
crs
:
Optional
[
str
]
transform
:
Optional
[
rio
.
transform
.
Affine
]
def
as_stack
(
self
):
return
np
.
stack
([
self
.
elevation
,
self
.
slope
,
self
.
aspect
],
axis
=
0
)
@
dataclass
(
frozen
=
True
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment