Skip to content

Commit

Permalink
update environment file and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
weiqi-tori committed Jun 5, 2024
1 parent db1dd00 commit 74f5c0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions city_metrix/layers/tree_canopy_height.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class TreeCanopyHeight(Layer):
name = "tree_canopy_hight"
name = "tree_canopy_height"
NO_DATA_VALUE = 0

def __init__(self, **kwargs):
Expand All @@ -18,6 +18,6 @@ def get_data(self, bbox):
# aggregate time series into a single image
canopy_ht = canopy_ht.reduce(ee.Reducer.mean()).rename("cover_code")

data = get_image_collection(ee.ImageCollection(canopy_ht), bbox, 1, "tree canopy hight")
data = get_image_collection(ee.ImageCollection(canopy_ht), bbox, 1, "tree canopy height")

return data.cover_code
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies:
- geemap=0.32.0
- s3fs=2024.5.0
- pip=23.3.1
- pickleshare=0.7.5
- scikit-learn=1.5.0
- pip:
- cartoframes==1.2.5
- git+https://github.com/isciences/exactextract
2 changes: 1 addition & 1 deletion tests/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def test_tree_canopy_hight():
count = TreeCanopyHeight().get_data(SAMPLE_BBOX).count()
assert count

def test_AlosDSM():
def test_alos_dsm():
mean = AlosDSM().get_data(SAMPLE_BBOX).mean()
assert mean

Expand Down

0 comments on commit 74f5c0c

Please sign in to comment.