hydromt_fiat.components.VulnerabilityComponent.setup#
- VulnerabilityComponent.setup(vulnerability_fname: Path | str, vulnerability_linking_fname: Path | str | None = None, *, unit: str = 'm', index_name: str = 'water depth', **select) None[source]#
 Set up the vulnerability from a data source.
Warning
The datasets (vulnerability_fname and vulnerability_linking_fname) need to have a ‘type’ column.
- Parameters:
 vulnerability_fname (Path | str) – Path to vulnerability dataset file or an entry in the data catalog that points to the vulnerability dataset file.
vulnerability_linking_fname (Path | str, optional) – Path or data catalog entry of the vulnerability linking table. If not provided, it is assumed that the ‘type’ in the vulnerability dataset is correct, by default None.
unit (str, optional) – The unit which the vulnerability index is in, by default “m”.
index_name (str, optional) – The output name of the index column, by default “water depth”.
**select (dict, optional) – Keyword arguments to select data from the ‘vulnerability_fname’ data source.