hydromt_sfincs.workflows.downscale_floodmap_webmercator#

hydromt_sfincs.workflows.downscale_floodmap_webmercator(zsmax: array | DataArray, index_path: str, topobathy_path: str, floodmap_path: str, hmin: float = 0.05, zoom_range: int | List[int] = [0, 13], fmt_in: str = 'bin', fmt_out: str = 'png', merge: bool = True)[source]#

Create a downscaled floodmap for (model) region in webmercator tile format

Parameters:
  • zsmax (Union[np.array, xr.DataArray]) – DataArray with maximum water level (m) for each cell

  • index_path (str) – Directory with index files

  • topobathy_path (str) – Directory with topobathy files

  • floodmap_path (str) – Directory where floodmap files will be stored

  • hmin (float, optional) – Minimum water depth considered as “flooded”, by default 0.05 m

  • zoom_range (Union[int, List[int]], optional) – Range of zoom levels, by default [0, 13]

  • fmt_in (str, optional) – Format of the index and topobathy tiles, by default “bin”

  • fmt_out (str, optional) – Format of the floodmap tiles to be created, by default “png”

  • merge (bool, optional) – Merge floodmap tiles with existing floodmap tiles (this could for example happen when there is overlap between models), by default True