Skip to content

Commit

Permalink
Update tile retreival ahn.py (#371)
Browse files Browse the repository at this point in the history
* Update tile retreival ahn.py

- On the eclipse server: Skip tile retreival if the link does not exist.
- Legacy server: Rasterio merge returned only zero's since 17 sept. All the merging is now done within xarray.

* Pleasing codacy

* Revert changes to legacy functions
  • Loading branch information
bdestombe authored Sep 24, 2024
1 parent fd39b8c commit dc85c48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nlmod/read/ahn.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,8 @@ def _get_ahn_ellipsis(extent, identifier="AHN5_5M_M", **kwargs):
das = []
for tile in tqdm(tiles.index, desc=f"Downloading tiles of {identifier}"):
url = tiles.at[tile, identifier]
if url == "nan":
continue
if url.endswith(".zip"):
path = url.split("/")[-1].replace(".zip", ".TIF")
if path.lower().endswith(".tif.tif"):
Expand Down

0 comments on commit dc85c48

Please sign in to comment.