catchment#

Delineate catchments and basin maps for mHM/mRM setups.

The module builds hydrologic grids from flow direction or DEM data, supports global and local domains, single- and multi-gauge delineation, outlet matching by area or shape, and writes basin ID, idgauges, mask, gauge metadata, and basin shape outputs.

Authors#

  • Simon Lüdke

Classes#

Catchment(ds, var_name[, var, ftype, ...])

Catchment class deliniating catchmetns with pyflowdir.

Gauge([gauge_id, lat, lon, area, id])

Class to hold gauge information.

Functions#

create_catchment(input_file, output_path, ...)

Delineate global or local catchments from flow direction/DEM data.

create_cell_area(ds[, lat_name, lon_name])

Create a cell area data array in km2.

get_transformation_matrix_nc(ds, var_name)

Get Transformation Matrix from input file dimensions and resolution.

is_data_global(ds, coordinate_slice)

Check if the longitude data is global.

merge_catchment(path1, path2, out_path)

Merge the rolled and non-rolled file.

write_gauges_out(gauges, output_target)

Write gauge information to CSV and NetCDF files.

write_gauges_to_csv(gauges, output_target[, ...])

Write gauge information to a CSV file.

write_gauges_to_nc(gauges, output_target[, ...])

Write gauge information to a NetCDF file with CF-style station metadata.