hydromt.gis_utils.create_vrt#
- hydromt.gis_utils.create_vrt(vrt_path: str, file_list_path: Optional[str] = None, files_path: Optional[str] = None)[source]#
Creates a .vrt file from a list op raster datasets by 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 vrt
file_list_path (str, optional) – Path to the text file containing the paths to the raster files
files_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: emp’
- Raises:
ValueError – A Path is needed, either file_list_path or files_path