hydromt_sfincs.utils.read_sfincs_map_results#

hydromt_sfincs.utils.read_sfincs_map_results(fn_map: str | ~pathlib.Path, ds_like: ~xarray.core.dataset.Dataset, chunksize: int = 100, drop: ~typing.List[str] = ['crs', 'sfincsgrid'], logger=<Logger hydromt_sfincs.utils (WARNING)>, **kwargs) Tuple[Dataset][source]#

Read sfincs_map.nc staggered grid netcdf files and parse to two hydromt.RasterDataset objects: one with face and one with edge variables.

Parameters:
  • fn_map (str, Path) – Path to sfincs_map.nc file

  • ds_like (xr.Dataset) – Dataset with grid information to use for parsing.

  • chunksize (int, optional) – chunk size along time dimension, by default 100

  • drop (List[str], optional) – Variables to drop from reading, by default [“crs”, “sfincsgrid”]

Returns:

ds_face, ds_edge – Parsed SFINCS output map file

Return type:

hydromt.RasterDataset