Exemplo n.º 1
0
    def test_dem(self):
        task = SentinelHubDemTask(resolution=10,
                                  feature=(FeatureType.DATA_TIMELESS, 'DEM'),
                                  max_threads=3)

        eopatch = task.execute(bbox=self.bbox)
        dem = eopatch.data_timeless['DEM']

        width, height = self.size
        self.assertTrue(dem.shape == (height, width, 1))
Exemplo n.º 2
0
    def test_dem_cop(self):
        task = SentinelHubDemTask(
            data_collection=DataCollection.DEM_COPERNICUS_30,
            resolution=10,
            feature=(FeatureType.DATA_TIMELESS, 'DEM_30'),
            max_threads=3)
        eopatch = task.execute(bbox=self.bbox)
        dem = eopatch.data_timeless['DEM_30']

        width, height = self.size
        self.assertTrue(dem.shape == (height, width, 1))