Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LULC v2 #52

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading