Skip to content
Sam Vente edited this page Aug 6, 2024 · 1 revision

static

``

Functions

Name Description
get_aggregation_areas Get the aggregations areas that are used for the site and fiat.
get_buildings Get the buildings exposure that are used in Fiat.
get_event_templates
get_hazard_measure_types
get_impact_measure_types
get_model_boundary
get_model_grid Get the model grid that is used in SFINCS.
get_obs_points Get the observation points specified in the site.toml.
get_property_types
get_static_map Get a static map from the database.
get_svi_map Get the SVI map that are used in Fiat.
read_database Given a path and a site name returns a IDatabase object.

get_aggregation_areas

get_aggregation_areas()

Get the aggregations areas that are used for the site and fiat.

Parameters

Name Type Description Default
database IDatabase required

Returns

Type Description
list[GeoDataFrame] list of GeoDataFrames with the aggregation areas

get_buildings

get_buildings()

Get the buildings exposure that are used in Fiat.

Parameters

Name Type Description Default
database IDatabase required

Returns

Type Description
GeoDataFrame GeoDataFrames with the buildings from FIAT exposure

get_event_templates

get_event_templates()

get_hazard_measure_types

get_hazard_measure_types()

get_impact_measure_types

get_impact_measure_types()

get_model_boundary

get_model_boundary()

get_model_grid

get_model_grid()

Get the model grid that is used in SFINCS.

Parameters

Name Type Description Default
database IDatabase required

Returns

Type Description
QuadtreeGrid QuadtreeGrid with the model grid

get_obs_points

get_obs_points()

Get the observation points specified in the site.toml.

These are also added to the flood hazard model. They are used as marker locations to plot water level time series in the output tab.

Parameters

Name Type Description Default
database IDatabase required

Returns

Type Description
GeoDataFrame GeoDataFrame with observation points from the site.toml.

get_property_types

get_property_types()

get_static_map

get_static_map(path)

Get a static map from the database.

Parameters

Name Type Description Default
database IDatabase database object required
path Union[str, Path] path to the static map required

Returns

Type Description
gpd.GeoDataFrame GeoDataFrame with the static map

get_svi_map

get_svi_map()

Get the SVI map that are used in Fiat.

Parameters

Name Type Description Default
database IDatabase required

Returns

Type Description
GeoDataFrame GeoDataFrames with the SVI map, None if not available

read_database

read_database(database_path, site_name)

Given a path and a site name returns a IDatabase object.

Parameters

Name Type Description Default
database_path Union[str, os.PathLike] path to database required
site_name str name of the site required

Returns

Type Description
IDatabase