Model Processes#

Grid#

processes.grid.create_grid_from_region(region, *)

Create a 2D regular grid or reads an existing grid.

processes.grid.create_rotated_grid_from_geom(...)

Create a rotated grid based on a geometry.

processes.grid.grid_from_constant(grid_like, ...)

Prepare a grid based on a constant value.

processes.grid.grid_from_rasterdataset(...)

Prepare data by resampling ds to grid_like.

processes.grid.grid_from_raster_reclass(...)

Prepare data variable(s) resampled to grid_like object by reclassifying the data in da based on reclass_table.

processes.grid.grid_from_geodataframe(...[, ...])

Prepare data variable(s) resampled to grid_like object by rasterizing the data from gdf.

processes.grid.rotated_grid(pol, res[, ...])

Return the origin (x0, y0), shape (mmax, nmax) and rotation of the rotated grid.

Mesh#

processes.mesh.create_mesh2d_from_region(...)

HYDROMT CORE METHOD: Create an 2D unstructured mesh or reads an existing 2D mesh according UGRID conventions.

processes.mesh.create_mesh2d_from_mesh(uds, ...)

Create a 2D mesh from another mesh.

processes.mesh.create_mesh2d_from_geom(geom, ...)

Create a regular 2D mesh from a boundary geometry.

processes.mesh.mesh2d_from_rasterdataset(ds, ...)

Resamples data in ds to mesh2d.

processes.mesh.mesh2d_from_raster_reclass(da, ...)

Resample data to mesh2d grid by reclassifying the data in da based on df_vars.

Region#

processes.region.parse_region_basin(region, ...)

Parse a basin /subbasin / interbasin region and return the GeoDataFrame.

processes.region.parse_region_bbox(region, *)

Parse a region of kind bbox and return the GeoDataFrame.

processes.region.parse_region_geom(region, *)

Parse a region and return the GeoDataFrame.

processes.region.parse_region_grid(region, *)

Parse a region of kind grid and return the corresponding xarray object.

processes.region.parse_region_other_model(region)

Parse a region with a model path and return that whole Model in read mode.

processes.region.parse_region_mesh(region)

Parse a region with a mesh path and return that mesh in read mode.

Basin mask#

processes.basin_mask.get_basin_geometry(ds)

Return a geometry of the (sub)(inter)basin(s).

River bathymetry#

processes.rivers.river_width(gdf_stream, ...)

Return average river width along a segment based on a river mask raster.

processes.rivers.river_depth(data, method[, ...])

Derive river depth estimates based bankfull discharge.

Meteo#

processes.meteo.precip(precip, da_like[, ...])

Return the lazy reprojection of precipitation to model.

processes.meteo.temp(temp, dem_model[, ...])

Return lazy reprojection of temperature to model grid.

processes.meteo.press(press, dem_model[, ...])

Return lazy reprojection of pressure to model grid.

processes.meteo.pet(ds, temp, dem_model[, ...])

Determine reference evapotranspiration.

processes.meteo.wind(da_model[, wind, ...])

Return lazy reprojection of wind speed to model grid.

processes.meteo.press_correction(dem_model)

Pressure correction based on elevation lapse_rate.

processes.meteo.temp_correction(dem[, ...])

Temperature correction based on elevation data.

processes.meteo.resample_time(da, freq[, ...])

Resample data to destination frequency.

processes.meteo.delta_freq(da_or_freq, ...)

Return relative difference between dataset mean timestep and destination freq.

processes.meteo.pet_debruin(temp, press, ...)

Determine De Bruin (2016) reference evapotranspiration.

processes.meteo.pet_makkink(temp, press, k_in)

Determnines Makkink reference evapotranspiration.

processes.meteo.pm_fao56(temp, temp_max, ...)

Estimate daily reference evapotranspiration (ETo).