adapter.fiat_adapter
adapter.fiat_adapter
Classes
Name | Description |
---|---|
FiatAdapter | All the attributes of the template fiat model and the methods to adjust it according to the projection and strategy attributes. |
FiatAdapter
self, model_root, database_path) adapter.fiat_adapter.FiatAdapter(
All the attributes of the template fiat model and the methods to adjust it according to the projection and strategy attributes.
Methods
Name | Description |
---|---|
apply_economic_growth | Implement economic growth in the exposure of FIAT. |
apply_population_growth_existing | Implement population growth in the exposure of FIAT. |
apply_population_growth_new | Implement population growth in new development area. |
buyout_properties | Buyout properties by setting the “Max Potential Damage: {}” column to zero in the FIAT exposure file. |
close_files | Close all open files and clean up file handles. |
elevate_properties | Elevate properties by adjusting the “Ground Floor Height” column in the FIAT exposure file. |
floodproof_properties | Floodproof properties by creating new depth-damage functions and adding them in “Damage Function: {}” column in the FIAT exposure file. |
get_object_ids | Get ids of objects that are affected by the measure. |
apply_economic_growth
=[]) adapter.fiat_adapter.FiatAdapter.apply_economic_growth(economic_growth, ids
Implement economic growth in the exposure of FIAT.
This is only done for buildings. This is done by multiplying maximum potential damages of objects with the percentage increase.
Parameters
Name | Type | Description | Default |
---|---|---|---|
economic_growth | float | Percentage value of economic growth. | required |
ids | Optional[list[str]] | List of FIAT “Object ID” values to apply the economic growth on, by default None | [] |
apply_population_growth_existing
adapter.fiat_adapter.FiatAdapter.apply_population_growth_existing(
population_growth,=[],
ids )
Implement population growth in the exposure of FIAT.
This is only done for buildings. This is done by multiplying maximum potential damages of objects with the percentage increase.
Parameters
Name | Type | Description | Default |
---|---|---|---|
population_growth | float | Percentage value of population growth. | required |
ids | Optional[list[str]] | List of FIAT “Object ID” values to apply the population growth on, by default None | [] |
apply_population_growth_new
adapter.fiat_adapter.FiatAdapter.apply_population_growth_new(
population_growth,
ground_floor_height,
elevation_type,
area_path,=None,
ground_elevation=None,
aggregation_areas=None,
attribute_names=None,
label_names )
Implement population growth in new development area.
Parameters
Name | Type | Description | Default |
---|---|---|---|
population_growth | float | percentage of the existing population (value of assets) to use for the new area | required |
ground_floor_height | float | height of the ground floor to be used for the objects in the new area | required |
elevation_type | str | “floodmap” or “datum” | required |
area_path | str | path to geometry file with new development areas | required |
buyout_properties
=[]) adapter.fiat_adapter.FiatAdapter.buyout_properties(buyout, ids
Buyout properties by setting the “Max Potential Damage: {}” column to zero in the FIAT exposure file.
Parameters
Name | Type | Description | Default |
---|---|---|---|
buyout | Buyout | this is an “buyout” impact measure object | required |
ids | Optional[list[str]] | List of FIAT “Object ID” values to apply the population growth on, by default None | [] |
close_files
adapter.fiat_adapter.FiatAdapter.close_files()
Close all open files and clean up file handles.
elevate_properties
=[]) adapter.fiat_adapter.FiatAdapter.elevate_properties(elevate, ids
Elevate properties by adjusting the “Ground Floor Height” column in the FIAT exposure file.
Parameters
Name | Type | Description | Default |
---|---|---|---|
elevate | Elevate | this is an “elevate” impact measure object | required |
ids | Optional[list[str]] | List of FIAT “Object ID” values to elevate, by default None | [] |
floodproof_properties
=[]) adapter.fiat_adapter.FiatAdapter.floodproof_properties(floodproof, ids
Floodproof properties by creating new depth-damage functions and adding them in “Damage Function: {}” column in the FIAT exposure file.
Parameters
Name | Type | Description | Default |
---|---|---|---|
floodproof | FloodProof | this is an “floodproof” impact measure object | required |
ids | Optional[list[str]] | List of FIAT “Object ID” values to apply the population growth on, by default None | [] |
get_object_ids
adapter.fiat_adapter.FiatAdapter.get_object_ids(measure)
Get ids of objects that are affected by the measure.
Returns
Name | Type | Description |
---|---|---|
list[Any] | list of ids |