-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/smart cities lulc #20
Conversation
…/smart_cities_lulc
…/smart_cities_lulc
…ities-cif into feature/smart_cities_lulc
To Test:
|
# ESA reclass and upsample | ||
esa_world_cover = EsaWorldCover().get_data(bbox) | ||
|
||
reclass_map = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you define this in a couple places, could you define it all in one layer?
|
||
clf.fit(buildings_sample[['ULU', 'ANBH', 'Area_m']], buildings_sample['Slope_encoded']) | ||
|
||
# plt.figure(figsize=(20, 10)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove commented out code
…/smart_cities_lulc
…ties-cif into feature/smart_cities_lulc
…i/cities-cif into feature/smart_cities_lulc
…i/cities-cif into feature/smart_cities_lulc
…/smart_cities_lulc
…s-cif into feature/smart_cities_lulc
…/smart_cities_lulc
…/smart_cities_lulc
…/smart_cities_lulc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good for the most part, just had questions about those two files
@@ -0,0 +1,303 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You typically don't want to check in large data files like this, it will blow up the size of the git history. Could this be stored in S3 and downloaded?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is only 184 KB so not very large. I like having it here since it is the basis for the model. If we start needing to use more training data in the future, we should find a better solution probably.
@@ -0,0 +1,197 @@ | |||
import xarray as xr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this file just a duplicate of the .py file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the .py file.
…/smart_cities_lulc
…/smart_cities_lulc
Create models folder and move building_classifier files into it. |
Description: Add python version of layer for https://github.com/wri/cities-heat/blob/main/LULC_grid_V2.R
JIRA ticket is https://gfw.atlassian.net/browse/CIF-124
Test by running
pytest layers.py::test_smart_surface_lulc