Skip to content

Commit

Permalink
Merge pull request #9 from GeoscienceAustralia/create-vrt
Browse files Browse the repository at this point in the history
Minor update to create dem vrt
  • Loading branch information
caitlinadams authored Jan 16, 2025
2 parents 3afdc48 + 6384713 commit 07e0707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sar_antarctica/nci/preparation/create_dem_vrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ def build_vrt(tiles: Generator[Path, None, None] | list[Path], vrt_path: str | o

os.remove("temp.txt")

def build_tileindex(tiles: Generator[Path, None, None], tindex_path: str | os.PathLike, run: bool = True):
def build_tileindex(tiles: Generator[Path, None, None] | list[Path], tindex_path: str | os.PathLike, run: bool = True):
"""Generic function for building a tile index from a generator of tile paths
Parameters
----------
tiles : Generator[Path, None, None]
A generator that yeilds `Path` objects for tiles
A generator (or list) that provides `Path` objects for tiles
e.g. /path/to/DEM_folder/DEM_file.tif
vrt_path : str | os.PathLike
Where to write the tile index to, ending in .gpkg
Expand Down

0 comments on commit 07e0707

Please sign in to comment.