Commit 3d0b80cd authored by Jordi Inglada's avatar Jordi Inglada
Browse files

BUG: correct SRTM file name construction

parent 4b3ef8b9
......@@ -87,5 +87,7 @@ class SRTM:
def build_hgt(
self, tiles: List[SRTMTileId]
) -> Tuple[np.ndarray, rio.transform.Affine]:
file_names = [f"{self.base_dir}/{t}.hgt" for t in tiles]
return rio.merge(file_names) # type: ignore
file_names = [
f"{self.base_dir}/{srtm_id_to_name(t)}.hgt" for t in tiles
]
return merge(file_names) # type: ignore
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