hydromt_fiat.workflows.exposure_grid_setup#

hydromt_fiat.workflows.exposure_grid_setup(grid_like: Dataset | None, exposure_data: dict[str, DataArray], vulnerability: DataFrame, exposure_linking: DataFrame | None = None) Dataset[source]#

Read and transform exposure grid data.

Parameters:
  • grid_like (xr.Dataset | None) – Xarray dataset that is used to transform exposure data with. If set to None, the first data array in exposure_data is used to transform the data.

  • exposure_data (dict[str, xr.DataArray]) – Dictionary containing name of exposure file and associated data

  • vulnerability (pd.DataFrame) – A Table containing valid vulnerability curve id’s an their presumed link to the exposure.

  • exposure_linking (pd.DataFrame, optional) – Table containing the names of the exposure files and corresponding vulnerability curves.

Returns:

Transformed and unified exposure grid.

Return type:

xr.Dataset