output_section
base.adapters.output.continu_inzicht_postgresql.output_section
Data adapters voor het schrijven naar de Continu Inzicht database
Functions
Name | Description |
---|---|
get_failuremechanisms | Ophalen lijst met faalmechanismes uit de Continu Inzicht database |
get_parameters | Ophalen lijst met parameters uit de Continu Inzicht database |
output_ci_postgresql_section | Schrijft secties naar de Continu Inzicht database (tabel: sections). |
output_ci_postgresql_section_load_to_data | Schrijft data voor dijkvakken de belasting naar Continu Inzicht database (tabel: data) |
output_ci_postgresql_section_to_data | Schrijft data naar Continu Inzicht database |
output_ci_postgresql_section_to_states | Schrijft state naar Continu Inzicht database |
output_ci_postgresql_sectionfractions | Schrijft (interpolatie)fracties van meetlocatie per sectie naar de Continu Inzicht database (tabel: sectionfractions). |
get_failuremechanisms
base.adapters.output.continu_inzicht_postgresql.output_section.get_failuremechanisms(
engine,
schema, )
Ophalen lijst met faalmechanismes uit de Continu Inzicht database
Faalmechanismes:
- code: naam
- COMB: Combinatie faalmechanismen
- GEKB: Overloop en overslag dijken
- STPH: Opbarsten en piping dijken
- STBI: Stabiliteit binnenwaarts dijken
- HTKW: Overloop en overslag langsconstructies
- STKWl: Stabiliteit langsconstructies
- PKW: Piping langsconstructies
get_parameters
base.adapters.output.continu_inzicht_postgresql.output_section.get_parameters(
engine,
schema, )
Ophalen lijst met parameters uit de Continu Inzicht database
Faalmechanismes:
- code: naam
- H10: Gemeten waterstand
- H10V: Voorspelde waterstand
- H10EH: Voorspelde waterstand ensemble hoog
- H10EL: Voorspelde waterstand ensemble laag
- PF: Faalkans
- BO: Beheerdersoordeel
- MR: Maatregel
- RSCH: Risico verwachte schade
- RSL: Risico verwachte slachtoffers
- RGETR: Risico getroffenen
- RPLPF: Risico plaatsgebonden overstromingskans
- PFT: Faalkans technical
- PFM: Faalkans measure
- PFEJ: Faalkans expert judgement
output_ci_postgresql_section
base.adapters.output.continu_inzicht_postgresql.output_section.output_ci_postgresql_section(
output_config,
df, )
Schrijft secties naar de Continu Inzicht database (tabel: sections).
Yaml example:
type: ci_postgresql_section
database: "continuinzicht"
schema: "continuinzicht_demo_whatif"
Args:
output_config (dict): configuratie opties df (DataFrame):
- id: int64: id van de sectie
- segmentid: int64: id van het segment waartoe de sectie behoort
- name: str: naam van de sectie
- geometry: geom: geometrie (ligging) van de sectie (let op projectie altijd EPSG4326!)
Opmerking:
In de .env
environment bestand moeten de volgende parameters staan:
- postgresql_user (str): inlog gebruikersnaam van de Continu Inzicht database
- postgresql_password (str): inlog wachtwoord van de Continu Inzicht database
- postgresql_host (str): servernaam/ ip adres van de Continu Inzicht databaseserver
- postgresql_port (str): poort van de Continu Inzicht databaseserver
In de ‘yaml’ config moeten de volgende parameters staan:
- database (str): database van de Continu Inzicht
- schema (str): schema van de Continu Inzicht
output_ci_postgresql_section_load_to_data
base.adapters.output.continu_inzicht_postgresql.output_section.output_ci_postgresql_section_load_to_data(
output_config,
df, )
Schrijft data voor dijkvakken de belasting naar Continu Inzicht database (tabel: data)
Yaml example:
type: ci_postgresql_section_load_to_data
database: "continuinzicht"
schema: "continuinzicht_demo_realtime"
unit_conversion_factor: 0.01
Args:
output_config (dict): configuratie opties
df (DataFrame):
- measurement_location_id: int64
- date_time: datetime64[ns, UTC]
- value: float64
- value_type: str
Opmerking:
In de .env
environment bestand moeten de volgende parameters staan:
- postgresql_user (str): inlog gebruikersnaam van de Continu Inzicht database
- postgresql_password (str): inlog wachtwoord van de Continu Inzicht database
- postgresql_host (str): servernaam/ ip adres van de Continu Inzicht databaseserver
- postgresql_port (str): poort van de Continu Inzicht databaseserver
In de ‘yaml’ config moeten de volgende parameters staan:
- database (str): database van de Continu Inzicht
- schema (str): schema van de Continu Inzicht
output_ci_postgresql_section_to_data
base.adapters.output.continu_inzicht_postgresql.output_section.output_ci_postgresql_section_to_data(
output_config,
df, )
Schrijft data naar Continu Inzicht database
Args:
output_config (dict):
Opmerking:
In de .env
environment bestand moeten de volgende parameters staan:
- postgresql_user (str):
- postgresql_password (str):
- postgresql_host (str):
- postgresql_port (str):
In de ‘yaml’ config moeten de volgende parameters staan:
- database (str):
- schema (str):
Returns:
pd.Dataframe
output_ci_postgresql_section_to_states
base.adapters.output.continu_inzicht_postgresql.output_section.output_ci_postgresql_section_to_states(
output_config,
df, )
Schrijft state naar Continu Inzicht database
Args:
output_config (dict):
Opmerking:
In de .env
environment bestand moeten de volgende parameters staan:
- postgresql_user (str):
- postgresql_password (str):
- postgresql_host (str):
- postgresql_port (str):
In de ‘yaml’ config moeten de volgende parameters staan:
- database (str):
- schema (str):
Returns:
pd.Dataframe
output_ci_postgresql_sectionfractions
base.adapters.output.continu_inzicht_postgresql.output_section.output_ci_postgresql_sectionfractions(
output_config,
df, )
Schrijft (interpolatie)fracties van meetlocatie per sectie naar de Continu Inzicht database (tabel: sectionfractions).
Yaml example:
type: ci_postgresql_sectionfractions
database: "continuinzicht"
schema: "continuinzicht_demo_whatif"
Args:
output_config (dict): configuratie opties
df (DataFrame): - sectionid: int64 : id van de sectie - idup: int64 : id van het meetlocatie (measuringlocation), stroomopwaarst gelegen (indien van toepassing) - iddown: int64 : id van het meetlocatie (measuringlocation), stroomafwaarst gelegen (indien van toepassing) - fractionup: float64 : fractie van de belasting gebruikt voor interpolatie belasting bij sectie stroomopwaarst gelegen (indien van toepassing) - fractiondown: float64 : fractie van de belasting gebruikt voor interpolatie belasting bij sectie stroomafwaarst gelegen (indien van toepassing) - parameters: XXXXXX : OPTIONEEL lijst van (belasting)parameters (ROLF VRAGEN)
Opmerking:
In de .env
environment bestand moeten de volgende parameters staan:
- postgresql_user (str): inlog gebruikersnaam van de Continu Inzicht database
- postgresql_password (str): inlog wachtwoord van de Continu Inzicht database
- postgresql_host (str): servernaam/ ip adres van de Continu Inzicht databaseserver
- postgresql_port (str): poort van de Continu Inzicht databaseserver
In de ‘yaml’ config moeten de volgende parameters staan:
- database (str): database van de Continu Inzicht
- schema (str): schema van de Continu Inzicht