clip_tif#

hydromodpy.tools.toolbox.clip_tif(tif_path, shp_path, out_path, maintain_dimensions)[source]#

Clip a raster from a shapefile polygon.

Parameters#

tif_pathstr

Raster path.

shp_pathstr

Shapefile path.

out_pathstr

Ouput result path.

maintain_dimensionsbool

Maintain the raster dimension or not.