hydromodpy.core.io.raster_io#

Raster I/O: loading, clipping, reprojecting, and exporting GeoTIFF/NetCDF.

Functions

clip_tif(tif_path, shp_path, out_path, ...)

Clip a raster by a shapefile polygon using the supplied Whitebox backend.

export_tif(base_dem_path, data_to_tif, ...)

Export a 2-D array as GeoTIFF using base_dem_path as spatial reference.

load_to_numpy(file[, src_crs, base_path, ...])

Load a raster or vector file into a NumPy array aligned to base_path.

load_to_xarray(file[, src_crs, main_var, ...])

Load a raster/NetCDF into an xarray Dataset, optionally reprojected.

mask_by_dem(target_data, mask_data, ...)

Return a masked array based on cond_symb applied to mask_data.

reproject_tif(raw_dem_path, wgs_dem_path, ...)

Reproject a raster from its source CRS to WGS-84 then to local UTM.