Flood Adapt v1.1.13
FloodAdapt
Class that contains the main functionality of FloodAdapt.
| FloodAdapt |
Setup and configuration
Configuration settings for FloodAdapt.
| Settings | The configuration settings for the FloodAdapt database and integrator. |
| Site | The expected variables and data types of attributes of the Site class. |
Site configuration models
The pydantic models that make up the FloodAdapt site configuration. These are the building blocks of the Site object, describing the SFINCS flood model, the Delft-FIAT impact model, the GUI, and the hazard configuration.
| SiteBuilder | Pydantic model that reads the site configuration file and builds the site model. |
| StandardObjectModel | The accepted input for the variable standard_object in Site. |
| SfincsModel | The expected variables and data types of attributes of the Sfincs class. |
| SfincsConfigModel | The expected variables and data types of attributes of the SfincsConfig class. |
| FiatModel | The expected variables and data types of attributes of the Fiat class. |
| FiatConfigModel | Configuration settings for the FIAT model. |
| FloodModel | The accepted input for the variable overland_model and offshore_model in Site. |
| Cstype | The accepted input for the variable cstype in Site. |
| AsciiStr | |
| Scstype | |
| WaterlevelReferenceModel | The accepted input for the variable water_level in Site. |
| DatumModel | The accepted input for the variable datums in WaterlevelReferenceModel. |
| DemModel | The accepted input for the variable dem in Site. |
| SlrScenariosModel | The accepted input for the variable slr_scenarios. |
| CycloneTrackDatabaseModel | The accepted input for the variable cyclone_track_database in Site. |
| FloodFrequencyModel | The accepted input for the variable flood_frequency in Site. |
| ObsPointModel | The accepted input for the variable obs_point in Site. |
| RiverModel | Model that describes the accepted input for the variable river in Site. |
| SCSModel | Class describing the accepted input for the variable scs. |
| RiskModel | The accepted input for the variable risk in Site. |
| FloodmapType | The accepted input for the variable floodmap in Site. |
| BenefitsModel | The accepted input for the variable benefits in Site. |
| AggregationModel | The accepted input for the variable aggregation in Site. |
| BFEModel | The accepted input for the variable bfe in Site. |
| EquityModel | The accepted input for the variable equity in Site. |
| NoFootprintsModel | The configuration on the how to show objects with no footprints. |
| SVIModel | The accepted input for the variable svi in Site. |
| GuiModel | The accepted input for the variable gui in Site. |
| GuiUnitModel | The unit system used in the GUI. |
| OutputLayers | The configuration of the mapbox layers in the gui. |
| VisualizationLayers | The configuration of the layers you might want to visualize in the gui. |
| VisualizationLayer | The configuration of a layer to visualize in the gui. |
| PlottingModel | The configuration of the plotting in the gui. |
| Layer | Base class for layers in the GUI. |
| SyntheticTideModel | Configuration for the synthetic tide. |
| AggregationDmgLayer | |
| BenefitsLayer | |
| FloodMapLayer | |
| FootprintsDmgLayer |
Object models
Object models in FloodAdapt are the components that are saved in the database. They define the configuration, input and output of the model kernels. The database stores Objects, and returns Objects when queried.
| Object | Base class for FloodAdapt objects. |
Measures
Various flood protection and mitigation measures available that can interact with the models. Can be impact measures or a hazard measures, where impact measures do not affect the hazard model at all, and hazard measures do.
| Measure | The expected variables and data types of attributes common to all measures. |
| MeasureType | Class describing the accepted input for the variable ‘type’ in Measure. |
| SelectionType | Class describing the accepted input for the variable ‘selection_type’ in Measures. |
| FloodWall | The expected variables and data types of the “floodwall” hazard measure. |
| GreenInfrastructure | The expected variables and data types of the “green infrastructure” hazard measure. |
| Pump | The expected variables and data types of the “pump” hazard measure. |
| Buyout | The expected variables and data types of the “buyout” impact measure. |
| Elevate | The expected variables and data types of the “elevate” impact measure. |
| FloodProof | The expected variables and data types of the “floodproof” impact measure. |
Strategies
A collection of measures that can be used to define a strategy for flood risk management.
| Strategy | Class representing a strategy in FloodAdapt. |
Events
Event types including historical, synthetic, and hurricane events.
| Event | The accepted input for an event in FloodAdapt. |
| SyntheticEvent | BaseModel describing the expected variables and data types for parameters of Synthetic that extend the parent class Event. |
| HistoricalEvent | BaseModel describing the expected variables and data types for parameters of HistoricalEvent that extend the parent class Event. |
| HurricaneEvent | BaseModel describing the expected variables and data types for parameters of HurricaneEvent that extend the parent class Event. |
| EventSet | BaseModel describing the expected variables and data types for parameters of EventSet. |
| TimeFrame | Class representing a time frame for a simulation. |
| IForcing | BaseModel describing the expected variables and data types for forcing parameters of hazard model. |
| ForcingType | Enum class for the different types of forcing parameters. |
| Template | Class describing the accepted input for the variable template in Event. |
| Mode | Class describing the accepted input for the variable mode in Event. |
| SubEventModel | The accepted input for a sub event in FloodAdapt. |
Projections
Climate and socio-economic projections for future scenario analysis.
| Projection | The accepted input for a projection in FloodAdapt. |
| PhysicalProjection | The accepted input for a physical projection in FloodAdapt. |
| SocioEconomicChange | The accepted input for socio-economic change in FloodAdapt. |
Scenarios
Scenario modeling for assessing different flood risk management approaches. Scenarios consist of a combination of event, projection, and strategy.
| Scenario | BaseModel describing the expected variables and data types of a scenario. |
Benefits
Benefit calculation for different flood risk management strategies. Benefits can be used to perform cost benefit analysis on a strategy, which is calculated based on the impact of the event on the population and infrastructure.
| Benefit | BaseModel describing the expected variables and data types of a Benefit analysis object. |
| CurrentSituationModel | The accepted input for a current situation in FloodAdapt. |
Unit system
Unit system for FloodAdapt. The unit system is used to convert between different units of measurement, and to define the units of the input and output of the models.
| unit_system | |
| ValueUnitPair | Represents a value with associated units. |
| UnitfulLength | Combination of length and unit. |
| UnitfulHeight | Combination of height and unit. |
| UnitfulArea | Combination of area and unit. |
| UnitfulVelocity | Combination of velocity and unit. |
| UnitfulDirection | Combination of direction and unit. |
| UnitfulDischarge | Combination of discharge and unit. |
| UnitfulIntensity | Combination of intensity and unit. |
| UnitfulVolume | Combination of volume and unit. |
| UnitfulTime | Combination of time and unit. |
| UnitfulLengthRefValue | Combination of length and unit with a reference value. |
| UnitTypesLength | Units of length. |
| UnitTypesArea | Units of area. |
| UnitTypesVolume | Units of volume. |
| UnitTypesVelocity | Units of velocity. |
| UnitTypesDirection | Units of direction. |
| UnitTypesTime | Units of time. |
| UnitTypesDischarge | Units of discharge. |
| UnitTypesIntensity | Units of intensity. |
| VerticalReference | Vertical reference for height. |
Database Builder
Database builder for FloodAdapt. The database builder is used to create the database schema and to populate the database with data.
| create_database | Create a new database from a configuration file or ConfigModel. |
| ConfigModel | Represents the configuration model for FloodAdapt. |
| UnitSystems | Enumeration for accepted values for the unit_system field. |
| GuiConfigModel | Represents a GUI model for FloodAdapt. |
| SpatialJoinModel | Represents a spatial join model. |
| FootprintsOptions | Enumeration for accepted values for the building_footprints field. |
| SviConfigModel | Represents a model for the Social Vulnerability Index (SVI). |
| Basins | Enumeration class representing different basins. |
| TideGaugeConfigModel | Represents a tide gauge model. |
| TideGaugeSource | The accepted input for the variable source in tide_gauge. |
Exceptions
Exceptions raised by the FloodAdapt API, for example when interacting with the database.
| FloodAdaptError | Base class for all exceptions in the FloodAdapt module. |
| DatabaseError | Base class for exceptions raised in any database related files. |
| IsStandardObjectError | Raised when an operation is attempted on a standard object. |
| AlreadyExistsError | Raised when an attempt is made to create an object that already exists. |
| DoesNotExistError | Raised when an attempt is made to access an object that does not exist. |
| IsUsedInError | Raised when an attempt is made to delete or modify an object that is in use / referenced by another object. |
| ConfigError | Raised when optional configuration, usually in the site, is missing or invalid. |