Skip to content

Commit

Permalink
lulc v2
Browse files Browse the repository at this point in the history
  • Loading branch information
chrowe committed Jul 2, 2024
1 parent 30a057a commit 0485af5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions city_metrix/layers/urban_land_use.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@


class UrbanLandUse(Layer):
def __init__(self, band='lulc', **kwargs):
def __init__(self, band='b1', **kwargs):
super().__init__(**kwargs)
self.band = band

def get_data(self, bbox):
dataset = ee.ImageCollection("projects/wri-datalab/cities/urban_land_use/V1")
dataset = ee.ImageCollection("projects/wri-datalab/cities/SSC/LULC_V2")
# ImageCollection didn't cover the globe
if dataset.filterBounds(ee.Geometry.BBox(*bbox)).size().getInfo() == 0:
ulu = ee.ImageCollection(ee.Image.constant(0)
Expand All @@ -27,6 +27,6 @@ def get_data(self, bbox):
.rename('lulc')
)

data = get_image_collection(ulu, bbox, 5, "urban land use").lulc
data = get_image_collection(ulu, bbox, 1, "urban land use v2").lulc

return data

0 comments on commit 0485af5

Please sign in to comment.