Geographic#

class hydromodpy.watershed.geographic.Geographic(dem_path: str = None, bottom_path: str = None, cell_size: int = None, x_outlet: float = None, y_outlet: float = None, snap_dist: int = None, buff_percent: int = None, crs_proj: str = None, out_path: str = None, stable_folder: int = None, simulations_folder: int = None, calibration_folder: int = None, from_lib: str = None, from_dem: list = None, from_shp: list = None, from_xyv: list = None, reg_fold: str = None)[source]#

Bases: object

Class to initialize the model domain object (watershed).

Parameters#

dem_pathstr

Path of the initial Digital Elevation Model.

bottom_pathstr, optional

Path of a raster representing the bottom elevation. The default is None.

cell_size:

Resolution of the DEM. To change the initial resolution

x_outlet:

x coordinate of the watershed outlet.

y_outlet:

y coordinate of the watershed outlet.

snap_dist:

Maximum distance where the outlet can be moved.

buffer_size:

buffer distance in percentage of the model domain (value in percent).

crs_projstr

Projection label of the workflow (ex: ‘EPSG:2454’).

out_pathstr

Path of the HydroModPy outputs.

stable_folderstr

Path of the stable results about the model domain or watershed.

simulations_folderstr

Path of the simulation results from modeling operations.

calibration_folderstr

Path of the calibration results from modeling operations.

from_libstr, optional

Path of the watershed librairies. If None : method not used. The default is None.

from_demlist, optional

List with two parameters: [path, cell_size]

from_shplist, optional

List of tow parameters: [path, buffer_size]

from_xyvlist, optional

List of four parameters: [x, y, snap_distance, buffer_size]

reg_foldstr, None

Path of the folder with regional data/results. If informed, the regional results will not be created, just loaded from folder. The default is None.

model_from_dem()[source]#

Function activated if the model domain is directly defined by a DEM. Allow to build conceptual model from a conceptual raster.

post_processing_dem()[source]#

Add and/or modify the projection of generated files.

processing()[source]#

Prepare, initialize and generate files of the model domain from geospatial functions.