diff --git a/city_metrix/layers/__init__.py b/city_metrix/layers/__init__.py index 3ece2ef..bef56c3 100644 --- a/city_metrix/layers/__init__.py +++ b/city_metrix/layers/__init__.py @@ -15,3 +15,4 @@ from .average_net_building_height import AverageNetBuildingHeight from .open_buildings import OpenBuildings from .tree_canopy_hight import TreeCanopyHeight +from .alos_dsm import AlosDSM diff --git a/tests/layers.py b/tests/layers.py index fb8aa50..ce9fc3f 100644 --- a/tests/layers.py +++ b/tests/layers.py @@ -1,6 +1,6 @@ import ee -from city_metrix.layers import LandsatCollection2, Albedo, LandSurfaceTemperature, EsaWorldCover, EsaWorldCoverClass, TreeCover, AverageNetBuildingHeight, OpenStreetMap, OpenStreetMapClass, UrbanLandUse, OpenBuildings, TreeCanopyHeight +from city_metrix.layers import LandsatCollection2, Albedo, LandSurfaceTemperature, EsaWorldCover, EsaWorldCoverClass, TreeCover, AverageNetBuildingHeight, OpenStreetMap, OpenStreetMapClass, UrbanLandUse, OpenBuildings, TreeCanopyHeight, AlosDSM from city_metrix.layers.layer import get_image_collection from .conftest import MockLayer, MockMaskLayer, ZONES, LARGE_ZONES, MockLargeLayer @@ -93,4 +93,8 @@ def test_openbuildings(): def test_tree_canopy_hight(): count = TreeCanopyHeight().get_data(SAMPLE_BBOX).count() - assert count \ No newline at end of file + assert count + +def test_AlosDSM(): + mean = AlosDSM().get_data(SAMPLE_BBOX).mean() + assert mean