Preprocessing
Compute elevation bands
- class hydrobricks.preprocessing.catchment.Catchment(outline=None)[source]
Bases:
object
Creation of catchment-related data
- extract_dem(dem_path) bool [source]
Extract the DEM data for the catchment. Does not handle change in coordinates.
- Parameters:
dem_path (str|Path) – Path of the DEM file.
- Return type:
True if successful, False otherwise.
- get_elevation_bands(method='isohypse', number=100, distance=50)[source]
Construction of the elevation bands based on the chosen method.
- Parameters:
method (str) – The method to build the elevation bands: ‘isohypse’ = fixed contour intervals (provide the ‘distance’ parameter) ‘quantiles’ = quantiles of the catchment area (same surface; provide the ‘number’ parameter)
number (int) – Number of bands to create when using the ‘quantiles’ method.
distance (int) – Distance (m) between the contour lines when using the ‘isohypse’ method.
- Return type:
A dataframe with the elevation bands.