Skip to content

Commit

Permalink
force image dataset to iagecollection
Browse files Browse the repository at this point in the history
  • Loading branch information
tedw0ng committed Aug 28, 2024
1 parent 31c3b49 commit b4c5860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion city_metrix/layers/impervious_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(self, **kwargs):

def get_data(self, bbox):
# load impervious_surface
dataset = ee.Image("Tsinghua/FROM-GLC/GAIA/v10").gt(0) # change_year_index is zero if permeable as of 2018
dataset = ee.ImageCollection(ee.Image("Tsinghua/FROM-GLC/GAIA/v10").gt(0)) # change_year_index is zero if permeable as of 2018
imperv_surf = ee.ImageCollection(dataset
.filterBounds(ee.Geometry.BBox(*bbox))
.select('change_year_index')
Expand Down

0 comments on commit b4c5860

Please sign in to comment.