src.dynamic_boundary_conditions.rainfall.rainfall_sites

Fetch rainfall sites data from the HIRDS website and store it in the database.

Attributes

log

Functions

get_rainfall_sites_data(→ str)

Get rainfall sites data from the HIRDS website.

get_rainfall_sites_in_df(→ geopandas.GeoDataFrame)

Get rainfall sites data from the HIRDS website and transform it into a GeoDataFrame.

rainfall_sites_to_db(→ None)

Store rainfall sites data from the HIRDS website in the database.

Module Contents

src.dynamic_boundary_conditions.rainfall.rainfall_sites.log
src.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

src.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

src.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.

Returns:

This function does not return any value.

Return type:

None