hydromt_sfincs.workflows.cog.create_index_cog#

hydromt_sfincs.workflows.cog.create_index_cog(model: SfincsModel, filename: str | Path, filename_topobathy: str | Path, nrmax: int = 2000, nodata: int = 2147483647)[source]#

Make a Cloud Optimized GeoTIFF (COG) file with the corresponding indices of the SFINCS grid cells to the high-resolution DEM COG.

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

  • filename (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.

  • filename_topobathy (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 for pixels outside the active grid, by default 2147483647 (the maximum value of a signed 32-bit integer). The output dtype is uint32.

  • also (See)

  • ----------

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

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