hydromt_fiat.workflows.hazard_grid#
- hydromt_fiat.workflows.hazard_grid(grid_like: Dataset | None, hazard_data: dict[str, DataArray], hazard_type: str, *, return_periods: list[int] | None = None, risk: bool = False, unit: str = 'm') Dataset[source]#
 Parse hazard data files to xarray dataset.
- Parameters:
 grid_like (xr.Dataset | None) – Grid dataset that serves as an example dataset for transforming the input data.
hazard_data (dict[str, xr.DataArray]) – The hazard data in a dictionary with the names of the datasets as keys.
hazard_type (str) – Type of hazard.
return_periods (list[int], optional) – List of return periods, by default None.
risk (bool, optional) – Designate hazard files for risk analysis, by default False.
unit (str, optional) – The unit which the hazard data is in, by default ‘m’.
- Returns:
 Unified xarray dataset containing the hazard data.
- Return type:
 xr.Dataset