hydromodpy.tools#

Helper routines used across the notebooks for filesystem handling, raster processing, and plotting presets.

Toolbox overview#

create_folder

If not exist, create a new empty folder.

efficiency_criteria

Compute [RMSE, nRMSE, NSE, NSElog, BAL, MARE, KGE] on two 1D arrays, doing pair‑wise deletion of NaNs in obs.

date_range

Generate timestamp from datetime.

export_tif

Export tif from 2D matrix data following raster reference.

reproject_tif

Reproject raster from WGS to UTM projection.

reproject_coord

Reproject coordinate points WGS to UTM.

reproject_shp

Reproject shapefile with defined UTM crs.

basin_area

Calculate the area of a masked raster.

clip_tif

Clip a raster from a shapefile polygon.

mask_by_dem

Mask raster from different conditions

plot_params

Change options for plots.