-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
443 additions
and
5 deletions.
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
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from geopandas import GeoDataFrame, GeoSeries | ||
|
||
from city_metrix.layers import AlosDSM | ||
from exactextract import exact_extract | ||
|
||
def max_dsm(zones: GeoDataFrame) -> GeoSeries: | ||
""" | ||
Get max AlosDSM. | ||
:param zones: GeoDataFrame with geometries to collect zonal stats on | ||
:return: Pandas Series of hights | ||
""" | ||
max_height = exact_extract(AlosDSM(), zones, ["max"]) | ||
|
||
return max_height |
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 |
---|---|---|
|
@@ -21,3 +21,4 @@ dependencies: | |
- pip=23.3.1 | ||
- pip: | ||
- cartoframes==1.2.5 | ||
- git+https://github.com/isciences/exactextract |
Oops, something went wrong.