Skip to content

Commit

Permalink
re-added imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kcartier-wri committed Dec 19, 2024
1 parent 86cda0c commit 21b3d15
Show file tree
Hide file tree
Showing 17 changed files with 52 additions and 13 deletions.
5 changes: 4 additions & 1 deletion city_metrix/layers/albedo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import ee
import xarray
from dask.diagnostics import ProgressBar

from .layer import Layer, get_utm_zone_epsg, get_image_collection

from .layer import Layer, get_image_collection

class Albedo(Layer):
"""
Expand Down
3 changes: 3 additions & 0 deletions city_metrix/layers/alos_dsm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import ee
import xee
import xarray as xr


from .layer import Layer, get_image_collection

Expand Down
5 changes: 4 additions & 1 deletion city_metrix/layers/average_net_building_height.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from dask.diagnostics import ProgressBar
import xarray as xr
import xee
import ee

from .layer import Layer, get_image_collection
from .layer import Layer, get_utm_zone_epsg, get_image_collection


class AverageNetBuildingHeight(Layer):
Expand Down
5 changes: 4 additions & 1 deletion city_metrix/layers/built_up_height.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from dask.diagnostics import ProgressBar
import xarray as xr
import xee
import ee

from .layer import Layer, get_image_collection
from .layer import Layer, get_utm_zone_epsg, get_image_collection


class BuiltUpHeight(Layer):
Expand Down
6 changes: 4 additions & 2 deletions city_metrix/layers/esa_world_cover.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from dask.diagnostics import ProgressBar
from enum import Enum
import xarray as xr
import ee

from enum import Enum
from .layer import Layer, get_image_collection
from .layer import Layer, get_utm_zone_epsg, get_image_collection


class EsaWorldCoverClass(Enum):
Expand Down
2 changes: 1 addition & 1 deletion city_metrix/layers/glad_lulc.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import xarray as xr
import ee

from .layer import Layer, get_image_collection
from .layer import Layer, get_utm_zone_epsg, get_image_collection


class LandCoverGlad(Layer):
Expand Down
8 changes: 4 additions & 4 deletions city_metrix/layers/high_land_surface_temperature.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import datetime
import ee

from shapely.geometry import box
from .landsat_collection_2 import LandsatCollection2
from .land_surface_temperature import LandSurfaceTemperature
from .layer import Layer
from shapely.geometry import box
import datetime
import ee

class HighLandSurfaceTemperature(Layer):
"""
Expand Down
5 changes: 4 additions & 1 deletion city_metrix/layers/impervious_surface.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from dask.diagnostics import ProgressBar
import xarray as xr
import xee
import ee

from .layer import Layer, get_image_collection
from .layer import Layer, get_utm_zone_epsg, get_image_collection


class ImperviousSurface(Layer):
Expand Down
6 changes: 4 additions & 2 deletions city_metrix/layers/land_surface_temperature.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from .landsat_collection_2 import LandsatCollection2
from .layer import Layer, get_utm_zone_epsg, get_image_collection
from dask.diagnostics import ProgressBar
import ee

from .layer import Layer, get_image_collection
import xarray

class LandSurfaceTemperature(Layer):
"""
Expand Down
1 change: 1 addition & 0 deletions city_metrix/layers/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from abc import abstractmethod
from typing import Union, Tuple
from uuid import uuid4
# This osgeo import is essential for proper functioning. Do not remove.
from osgeo import gdal

import ee
Expand Down
2 changes: 2 additions & 0 deletions city_metrix/layers/nasa_dem.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import ee
import xee
import xarray as xr

from .layer import Layer, get_image_collection

Expand Down
1 change: 1 addition & 0 deletions city_metrix/layers/natural_areas.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import xarray as xr
from xrspatial.classify import reclassify

from .layer import Layer
Expand Down
2 changes: 2 additions & 0 deletions city_metrix/layers/smart_surface_lulc.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import xarray as xr
import numpy as np
import pandas as pd
import geopandas as gpd
from shapely.geometry import CAP_STYLE, JOIN_STYLE
from shapely.geometry import box
from exactextract import exact_extract
from geocube.api.core import make_geocube
import warnings
Expand Down
4 changes: 4 additions & 0 deletions city_metrix/layers/tree_canopy_height.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
from .layer import Layer, get_utm_zone_epsg, get_image_collection
from dask.diagnostics import ProgressBar
import xarray as xr
import xee
import ee

from .layer import Layer, get_image_collection
Expand Down
4 changes: 4 additions & 0 deletions city_metrix/layers/tree_cover.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
from .layer import Layer, get_utm_zone_epsg, get_image_collection
from dask.diagnostics import ProgressBar
import xarray as xr
import xee
import ee

from .layer import Layer, get_image_collection
Expand Down
3 changes: 3 additions & 0 deletions city_metrix/layers/urban_land_use.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from dask.diagnostics import ProgressBar
import xarray as xr
import xee
import ee

from .layer import Layer, get_image_collection
Expand Down
3 changes: 3 additions & 0 deletions city_metrix/layers/world_pop.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from dask.diagnostics import ProgressBar
import xarray as xr
import xee
import ee

from .layer import Layer, get_image_collection
Expand Down

0 comments on commit 21b3d15

Please sign in to comment.