floodresilience.dynamic_boundary_conditions.rainfall.rainfall_sites
Fetch rainfall sites data from the HIRDS website and store it in the database.
Attributes
Functions
| 
 | Generate a set of HTTP headers for making requests to HIRDS. | 
| 
 | Get rainfall sites data from the HIRDS website. | 
| 
 | Get rainfall sites data from the HIRDS website and transform it into a GeoDataFrame. | 
| 
 | Store rainfall sites data from the HIRDS website in the database. | 
Module Contents
- floodresilience.dynamic_boundary_conditions.rainfall.rainfall_sites.log
- floodresilience.dynamic_boundary_conditions.rainfall.rainfall_sites.get_hirds_headers() requests.structures.CaseInsensitiveDict
- Generate a set of HTTP headers for making requests to HIRDS. - Returns:
- A dictionary containing HTTP headers required for requests to HIRDS. 
- Return type:
- CaseInsensitiveDict 
 
- floodresilience.dynamic_boundary_conditions.rainfall.rainfall_sites.get_rainfall_sites_data() str
- Get rainfall sites data from the HIRDS website. - Returns:
- The rainfall sites data as a string. 
- Return type:
- str 
 
- floodresilience.dynamic_boundary_conditions.rainfall.rainfall_sites.get_rainfall_sites_in_df() geopandas.GeoDataFrame
- Get rainfall sites data from the HIRDS website and transform it into a GeoDataFrame. - Returns:
- A GeoDataFrame containing the rainfall sites data. 
- Return type:
- gpd.GeoDataFrame 
 
- floodresilience.dynamic_boundary_conditions.rainfall.rainfall_sites.rainfall_sites_to_db(engine: sqlalchemy.engine.Engine) None
- Store rainfall sites data from the HIRDS website in the database. - Parameters:
- engine (Engine) – The engine used to connect to the database.