hydromt_sfincs.workflows.downscaling.make_index_cog#

hydromt_sfincs.workflows.downscaling.make_index_cog(model: SfincsModel, indices_fn: str | Path, topobathy_fn: str | Path, nrmax: int = 2000, nodata: int = 2147483647)[source]#

Make a Cloud Optimzied Geotiff (COG) file with the correspodning indices of the SFINCS grid cells to the high-resolution DEM COG.

Parameters:
  • model (SfincsModel) – The SfincsModel instance containing the grid information.

  • indices_fn (Union[str, Path]) – The filename for the output COG file containing the indices. Note that this file only works for this SFINCS model and the topobathy file provided.

  • topobathy_fn (Union[str, Path]) – The filename of the topobathy file from which to read the coordinates.

  • nrmax (int, optional) – The maximum number of cells in a block, by default 2000.

  • nodata (int, optional) – The nodata value to use in the output COG file, by default 2147483647 (which is the maximum value for a 32-bit unsigned integer).

  • also (See)

  • ----------

  • hydromt_sfincs.utils.build_overviews (Function to build overviews for the COG file.)

  • hydromt_sfincs.workflows.downscaling.downscale_floodmap (Workflow to downscale flood maps)