hydromt.gis_utils.create_vrt#
- hydromt.gis_utils.create_vrt(vrt_path: str, file_list_path: str | None = None, files_path: str | None = None)[source]#
Create a .vrt file from a list op raster datasets.
Either passing the list directly (file_list_path) or by inferring it by passing a path containing wildcards (files_path) of the location(s) of the raster datasets.
- Parameters:
vrt_path (
str
) – Path of the output vrtfile_list_path (
str
, optional) – Path to the text file containing the paths to the raster filesfiles_path (
str
, optional) – Unix style path containing a pattern using wildcards (*) n.b. this is without an extension e.g. c:\temp\*\*.tif for all tif files in subfolders of ‘c:temp’
- Raises:
ValueError – A Path is needed, either file_list_path or files_path