hydromt_fiat.workflows.exposure_setup#
- hydromt_fiat.workflows.exposure_setup(exposure_data: GeoDataFrame, exposure_type_column: str, *, exposure_linking: DataFrame | None = None, exposure_type_fill: str | None = None) GeoDataFrame[source]#
 Prep the raw exposure data for later fuctions/ methods.
Here the exposure type can be mapped for better linking later on.
- Parameters:
 exposure_data (gpd.GeoDataFrame) – The raw exposure data.
exposure_type_column (str) – The name of column that specifies the exposure type, e.g. occupancy type.
exposure_linking (pd.DataFrame, optional) – A custom mapping to table to first translate the exposure types in order to better link with the vulnerability data. A translation layer really. By default None
exposure_type_fill (str, optional) – Value to which missing entries in the exposure type column will be mapped to, if provided. By default None
- Returns:
 The resulting exposure data.
- Return type:
 gpd.GeoDataFrame