Commit 9fcb8eb9 authored by Jordi Inglada's avatar Jordi Inglada
Browse files

STYLE: unused imports and minor edits

parent 419b0ca3
......@@ -126,9 +126,9 @@ SRTM tiles.
return self.get_dem_from_tiles(srtm_tiles)
def get_dem_for_bbox(self, bbox: BoundingBox) -> DEM:
"""Build a DEM (elevation, slope and aspect) for a bounding box with the
union of the intersecting SRTM tiles. It keeps CRS and extent of the
SRTM tiles.
"""Build a DEM (elevation, slope and aspect) for a bounding box
with the union of the intersecting SRTM tiles. It keeps CRS and extent
of the SRTM tiles.
"""
srtm_tiles = srtm_tiles_from_bbox(bbox)
......
import numpy as np
import pytest
import rasterio as rio
import src.sensorsio.srtm as srtm
from src.sensorsio import sentinel2, utils
from src.sensorsio import sentinel2
def test_srtm_id_to_name():
......@@ -67,8 +66,8 @@ def test_dem_on_s2_tile():
from rasterio.warp import Resampling, reproject
RESOLUTION = 10
s2_ds = sentinel2.Sentinel2(
'/datalake/S2-L2A-THEIA/31TDH/2019/05/31/SENTINEL2B_20190531-105916-927_L2A_T31TDH_C_V2-2/'
)
'/datalake/S2-L2A-THEIA/31TDH/2019/05/31/'
'SENTINEL2B_20190531-105916-927_L2A_T31TDH_C_V2-2/')
xrds = s2_ds.read_as_xarray([sentinel2.Sentinel2.B12],
resolution=RESOLUTION)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment